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