ThalesGroup / kessler-game

Kessler is a simulation environment loosely modeled after our internal project PsiBee and the external project Fuzzy Asteroids. The game has ships that shoot bullets at asteroids to gain score. Ships can collide with asteroids and other ships and lose lives.
https://github.com/ThalesGroup/kessler-game
Apache License 2.0
10 stars 11 forks source link

Minor bug: Ship respawn velocity doesn't reset immediately #46

Closed Jie-F closed 8 months ago

Jie-F commented 9 months ago

When a ship dies, its speed is set to 0, but the velocity is only reset on the next frame. When passing the game/ship state to the controller, this is very confusing communication because the assumption should be that the velocity is always derived from the speed, but the frame after respawning is an exception since the velocity is nonzero but the speed is 0.

So this bug doesn't affect how the game runs, but I was personally confused by this and it messed with my calculations.