Role

Front End Developer

Timeline

1 week

Skills

Javascript, Jquery HTML, CSS

Tools

VSCode

Avoid the Asteroid

an interactive game designed to sharpen your reflexes, test your strategy, and save the world!

The game simulates an unpredictable space environment where asteroids of varying sizes and speeds threaten the player’s spaceship. The objective is to survive for as long as possible by dodging incoming asteroids while managing limited resources like fuel and shields. Players must make rapid decisions, anticipate asteroid trajectories, and optimize resource usage to avoid destruction.

DEMO

Reflections on making this game

Creative Growth!

Developing this game gave me a unique opportunity to blend my technical coding skills with creative problem-solving, particularly in the realms of gameplay mechanics and visual design. Prior to this project, most of my experience had been rooted in more abstract or functional coding challenges, so transitioning to a project with a strong visual component was both exciting and demanding. It pushed me to think beyond the logic and structure of code and focus on creating an immersive, engaging experience for players.

Problem Solving Takes Iterations

Designing the random placements and behavior of the asteroids, along with fine-tuning the player controls, involved a significant amount of trial and error to ensure the game provided a challenging yet fair experience. I quickly realized that balancing the randomness of the asteroid trajectories was crucial; if their movement was too predictable, the game became too easy, but if it was too erratic, the difficulty spiked unfairly. Achieving the right balance required carefully adjusting the algorithm governing asteroid speeds, directions, and spawn rates so that the game felt dynamic without being overwhelming.

One of the more complex challenges I faced was handling the timing of events, particularly when restarting the game. Initially, I encountered issues with clearing objects and resetting the game state efficiently. Understanding how to manage object delays—such as ensuring that asteroids were removed from the screen without lingering or interfering with new game sessions—was a learning curve. These challenges taught me a great deal about managing game loops and memory optimization, as I had to rethink how I handled game resets, object destruction, and the overall flow of gameplay. Overcoming these hurdles not only improved the performance of the game but also deepened my understanding of event-driven programming and resource management in game development.

Previous
Previous

TravelConnect App

Next
Next

Green Swap