Documentation ¶
Index ¶
- func Gamemain()
- type BlkData
- type Game
- func (g *Game) AddDrawBg(df func()) int
- func (g *Game) AddDrawFe(df func()) int
- func (g *Game) AddDrawStage(df func()) int
- func (g *Game) AddUpdate(cf func(bool, *Game) bool) int
- func (g *Game) ClearAll()
- func (g *Game) ClrDbgTerm()
- func (g *Game) ClrDrawBg()
- func (g *Game) ClrDrawFe()
- func (g *Game) ClrDrawStage()
- func (g *Game) ClrUpdate()
- func (g *Game) DoDraw()
- func (g *Game) Draw(screen *ebiten.Image)
- func (g *Game) DrawImage(image *ebiten.Image, x, y, angle, scale float64)
- func (g *Game) Ebiten32_png() []byte
- func (g *Game) EbitenP32_png() []byte
- func (g *Game) EbitenT32_png() []byte
- func (g *Game) Gophers128_png() []byte
- func (g *Game) Gophers32_png() []byte
- func (g *Game) Gophers64_png() []byte
- func (g *Game) Gophers_jpg() []byte
- func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int)
- func (g *Game) Mascot16_png() []byte
- func (g *Game) Mascot32_png() []byte
- func (g *Game) Mascot64_png() []byte
- func (g *Game) MascotA32_png() []byte
- func (g *Game) PlayUpdate()
- func (g *Game) SetDbgTerm(df func())
- func (g *Game) SetDrawBg(handle int, df func())
- func (g Game) SetDrawFe(handle int, df func())
- func (g *Game) SetDrawStage(handle int, df func())
- func (g *Game) TermClear()
- func (g *Game) TermPrint(str string)
- func (g *Game) TimeNowMs() int64
- func (g *Game) Update() error
- type GopherData
- type ScoreData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlkData ¶
type Game ¶
type Game struct { MainControl func(bool, *Game) bool UpdateList []func(bool, *Game) bool // UpdateList ... contains statego controllers // drawList DrawBgList []func() DrawStageList []func() DrawFeList []func() DrawTermFunc []func() ClrDrawStageListOnUpdate bool // ebiten Screen *ebiten.Image // fade image FadeImage *ebiten.Image // user ScreenWidth int ScreenHeight int Count int BgImage *ebiten.Image GophersImage *ebiten.Image GophersImage2 *ebiten.Image GophersImage3 *ebiten.Image MascotImage *ebiten.Image MascotAImage *ebiten.Image EbitenImage *ebiten.Image // Gopher vs Nic BlkDataList []*BlkData GopherDataList []*GopherData ScoreData0 *ScoreData GameOver bool ScoreMul int ScoreBase int ScoreClickCount int // contains filtered or unexported fields }
Game ...
func (*Game) AddDrawStage ¶
AddDrawStage ... Add Draw Function to DrawStageList
func (*Game) Ebiten32_png ¶
func (*Game) EbitenP32_png ¶
func (*Game) EbitenT32_png ¶
func (*Game) Gophers128_png ¶
func (*Game) Gophers32_png ¶
func (*Game) Gophers64_png ¶
func (*Game) MascotA32_png ¶
type GopherData ¶
type GopherData struct { PosX float64 PosY float64 DiffX float64 DiffY float64 Killed bool // contains filtered or unexported fields }
func (*GopherData) CalcDirClicked ¶
func (d *GopherData) CalcDirClicked()
func (*GopherData) CalcDirTouched ¶
func (d *GopherData) CalcDirTouched()
func (*GopherData) CheckKill ¶
func (d *GopherData) CheckKill() (bool, bool)
CheckKill ... 1st killed blk 2nd All Killed
func (*GopherData) MoveDiff ¶
func (d *GopherData) MoveDiff() bool
func (*GopherData) Reflect ¶
func (d *GopherData) Reflect()
func (*GopherData) Speedup ¶
func (d *GopherData) Speedup(add float64)
Click to show internal directories.
Click to hide internal directories.