fixed exit function with q, added evolution trace to options fixed inverse

This commit is contained in:
2024-06-03 18:38:18 +02:00
parent 03e1101248
commit 443b5a2bcf
5 changed files with 35 additions and 6 deletions

View File

@@ -49,7 +49,10 @@ func (game *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func (game *Game) Update() error {
scene := game.GetCurrentScene()
scene.Update()
if quit := scene.Update(); quit != nil {
return quit
}
next := scene.GetNext()
if next != game.CurrentScene {