game mode?

This commit is contained in:
Josh Deprez 2021-08-14 17:43:11 +10:00
parent 1f689ceae0
commit 17c8501922

View file

@ -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