frederickjjoubert / bevy-ball-game

This is a small game I made to teach the basics of the Bevy Game Engine
https://bevyengine.org
MIT License
78 stars 16 forks source link

fix for issue #5, final score not updating #6

Closed zendril closed 8 months ago

zendril commented 1 year ago

Possibly/probably a better way to handle it, but at least this puts the handle_game_over at the end of the frame, which then allows the AppState switch to happen and the event to still be there for the update_final_score_text event reader.

frederickjjoubert commented 8 months ago

Hi there! Thanks for making this PR. I just approved a different PR to update this repo to Bevy 0.12, if you are able to pull the latest branch once that PR is merged in and make this change for Bevy 0.12 I will gladly merge it in. Thanks!