Inspiration
We really wanted to challenge ourself by learning using three.js and physics engine to make an enjoyable and challenging game.
What it does
Our project generates asteroids in a gravity-free environment, utilizing a physics engine. The asteroids interact with each other dynamically, creating an enjoyable and unpredictable gameplay experience.
How we built it
We build it using three.js, fiber, and drei to help model the shapes and we used rapier's physics engine to emulate flying asteroids that bounce off each other.
Challenges we ran into
We ran into MANY problems. For example, it took us 2 hours to make the asteroids and even longer on top of that to implement the game logic. Another astroid related problem was getting them to stay in the x-y plane and not collide and venture out into the z plane effectively leaving the game.
Accomplishments that we're proud of
We are proud of the entire project as it is an entirely new framework for us.
What we learned
We learned how to implement a physics engine and create objects using three.js. Additionally, we learned how to handle collisions.
What's next for Asteroid Dodger
Adding a shooting mechanic to destroy incoming asteroids just like in the original asteroids game.
Log in or sign up for Devpost to join the conversation.