Documentation ¶
Index ¶
- type AppConfig
- type Game
- func (g *Game) Draw(screen *ebiten.Image)
- func (g *Game) EnsureWorkspace()
- func (g *Game) GetTPS() int
- func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int)
- func (g *Game) LoadConfig()
- func (g *Game) ReadConf() (AppConfig, error)
- func (g *Game) Update() error
- func (g *Game) WriteConf(c AppConfig) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Game ¶
type Game struct { Count int nimgobus.Nimbus Config AppConfig //PrettyPrintIndent string PaddingX int PaddingY int Scale float64 WorkspacePath string }
func (*Game) EnsureWorkspace ¶
func (g *Game) EnsureWorkspace()
EnsureWorkspace makes sure the workspace folder exists and sets its location
func (*Game) LoadConfig ¶
func (g *Game) LoadConfig()
LoadConfig attempts to load settings from the config file. If the file does not exist or is unreadable it will be ignored and default settings will be used.
Click to show internal directories.
Click to hide internal directories.