game

package
v0.0.0-...-68482a3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Boot bool
}

type Game

type Game struct {
	Count int
	nimgobus.Nimbus
	Config AppConfig
	//PrettyPrintIndent string
	PaddingX      int
	PaddingY      int
	Scale         float64
	WorkspacePath string
}

func (*Game) Draw

func (g *Game) Draw(screen *ebiten.Image)

func (*Game) EnsureWorkspace

func (g *Game) EnsureWorkspace()

EnsureWorkspace makes sure the workspace folder exists and sets its location

func (*Game) GetTPS

func (g *Game) GetTPS() int

func (*Game) Layout

func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int)

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.

func (*Game) ReadConf

func (g *Game) ReadConf() (AppConfig, error)

func (*Game) Update

func (g *Game) Update() error

func (*Game) WriteConf

func (g *Game) WriteConf(c AppConfig) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL