game mode?
This commit is contained in:
parent
1f689ceae0
commit
17c8501922
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue