hannobraun / vndf-2020

Von Neumann Defense Force - a game about spaceships
2 stars 0 forks source link

Spawn ships in a stable orbit #5

Closed hannobraun closed 4 years ago

hannobraun commented 4 years ago

Currently, ships are just spawned at a constant distance from the planet, with no velocity. This means, unless the player takes countermeasures, the ship will be pulled to the planet and be destroyed. Since not all players have an instant understanding of orbital mechanics, this is not ideal.

The initial velocity of ships should be chosen to form a stable orbit around the planet, so players are not required to take action right away.