Asteroids with Relativity [Software Design]

Have you ever seen the classic game Asteroids and thought  “If only this was much crazier” and “If only there were more physics in this” also “Why is there not a black hole in the center of the screen”? Well wait no longer!


For this project, my partner and I made a 2D rocket simulation based around a black hole. The rocket collects points, which spawns an asteroid, which orbits the black hole and provides hazards to players. It also simulates time dilation, so asteroids slow down when they are near the black hole and everything speeds up by comparison when the rocket is near the black hole.

You can find more information at this repo. And as always if you have any questions, feel free to reach out and email me.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s