Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ Constants Variables func Run(data embed.FS) type Game func NewGame(mod *model.Model) Game func (g *Game) Draw(screen *ebiten.Image) func (g *Game) Initialize() func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) func (g *Game) Run() error func (g *Game) Update() error Constants ¶ View Source const TPS = 60 Variables ¶ View Source var GameData embed.FS Functions ¶ func Run ¶ func Run(data embed.FS) Types ¶ type Game ¶ type Game struct { Model *model.Model Screen res.Screen Mouse res.Mouse // contains filtered or unexported fields } Game container func NewGame ¶ func NewGame(mod *model.Model) Game NewGame returns a new game func (*Game) Draw ¶ func (g *Game) Draw(screen *ebiten.Image) Draw the game. func (*Game) Initialize ¶ func (g *Game) Initialize() Initialize the game. func (*Game) Layout ¶ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) Layout the game. func (*Game) Run ¶ func (g *Game) Run() error Run the game. func (*Game) Update ¶ func (g *Game) Update() error Update the game. Source Files ¶ View all Source files game.go run.go run_nowasm.go Directories ¶ Show internal Expand all Path Synopsis comp maps math menu nav render res achievements resource save sprites sys terr util Click to show internal directories. Click to hide internal directories.