Documentation ¶
Overview ¶
Original Copyright 2014 Hajime Hoshi
Index ¶
- func Gamemain()
- func MainControl() func(bool, *Game) bool
- type Game
- func (g *Game) AddDrawBg(df func())
- func (g *Game) AddDrawFe(df func())
- func (g *Game) AddDrawStage(df func())
- func (g *Game) AddUpdate(cf func(bool, *Game) bool) int
- func (g *Game) DoDraw()
- func (g *Game) Draw(screen *ebiten.Image)
- func (g *Game) Gophers_jpg() []byte
- func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int)
- func (g *Game) PlayUpdate()
- func (g *Game) TimeNowMs() int64
- func (g *Game) Update(screen *ebiten.Image) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Game ¶
type Game struct { UpdateList []func(bool, *Game) bool // UpdateList ... contains statego controllers // drawList DrawBgList []func() DrawStageList []func() DrawFeList []func() // ebiten Screen *ebiten.Image // user ScreenWidth int ScreenHeight int Count int GophersImage *ebiten.Image }
func (*Game) AddDrawStage ¶
func (g *Game) AddDrawStage(df func())
func (*Game) Gophers_jpg ¶
func (*Game) PlayUpdate ¶
func (g *Game) PlayUpdate()
Click to show internal directories.
Click to hide internal directories.