amethyst / evoli

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

- Removed PausedState and implemented pause directly in main_game.rs. #93

Closed chrispetkau closed 5 years ago

chrispetkau commented 5 years ago

This allows the user to interact with the game while it is paused, which is desirable.

erlend-sh commented 5 years ago

Thanks! Do you have an account on our chat or forum? We’d like to be able to stay in touch with you outside of GH issues.

sunreef commented 5 years ago

I agree that the paused state has become irrelevant now that we have a menu state that acts in a similar way. The pause button should only control the time scale like the slow down and speed up buttons do.

In the long term, we would need to separate between the Start menu state and the Pause menu state (similar to what you get when pressing Escape in most games).

In PR #92, I made it so that going to the menu state from the game state pushes a new state on the state machine and going back to the game pops that state. This way, on_start is only called the first time you get to the main game. I had more in mind the Escape menu when I did this. Maybe I should create a distinct state for this.

In any case, thanks for these changes :)

chrispetkau commented 5 years ago

Thanks! Do you have an account on our chat or forum? We’d like to be able to stay in touch with you outside of GH issues.

I am Str4ngeL00p on Discord and I lurk around the Amethyst Discord most days.

erlend-sh commented 5 years ago

Nothing is coming up when I search for it. Please add to friends or DM erlend_sh#4477 on there.