From 17c8501922089e3faf2b72f029ed309a0516e2e4 Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Sat, 14 Aug 2021 17:43:11 +1000 Subject: [PATCH] game mode? --- engine/game.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/engine/game.go b/engine/game.go index 57179fc..b91eca0 100644 --- a/engine/game.go +++ b/engine/game.go @@ -10,8 +10,18 @@ func init() { gob.Register(Game{}) } +type GameMode int + +const ( + GameModeMenu = GameMode(iota) + GameModePlay + GameModePause + GameModeEdit +) + // Game implements the ebiten methods using a collection of components. type Game struct { + Mode GameMode ScreenWidth int ScreenHeight int *Scene