Simple Physics and Design Pattern Demo

Опубликовано: 27 Апрель 2026
на канале: Robert Anderson Software Portfolio
6
0

In this project what I had to do was to make this space station fly through an asteroid field and either get hit by asteroids or destroy them with it's laser.

The way I did this was to make the asteroid field the thing that was moving. So I would spawn 1 asteroid every 1-2 seconds in a random range in front of (the space station is travelling up) the space station. If the space station is hit the there will be an explosion and a sphere will be places in that location to indicate where the space station has been hit. Otherwise the space station is able to shoot all of the asteroids with it's laser in order to avoid getting hit. The laser is activate/deactivated by pressing the L button.