amethyst / evoli

An ecosystem-simulation game made with Amethyst
https://community.amethyst.rs/t/evoli-introduction/770
Other
217 stars 33 forks source link

Paused state and Time Scaling - Basic implementation #32

Closed sunreef closed 5 years ago

sunreef commented 5 years ago

When pressing P, the game enters a PausedState.

To achieve this, I moved all the game system definitions from the GameDataBuilder to a dispatcher inside the ExampleState used as the main game state. This way, when switching out of ExampleState, the systems stop running.

This addresses Issue #27

I also added time scaling when pressing + and - (only on main keyboard, not on Numpad).

This addresses Issue #28

marotili commented 5 years ago

Sorry for the review mess, I'm new to github 😓 The changes LGTM. A couple of systems were added in the master branch. Would you mind rebasing to integrate those changes?

sunreef commented 5 years ago

Ok, I merged the changes from master. But it resulted in a kind of mess of the commit history... Maybe I should clean it up a bit.

I rebased the changes on the current master. See PR #33