Documentation ¶
Index ¶
- type ActivePibu
- type FoodCategory
- type Game
- func (g *Game) AutoSave()
- func (g *Game) LoadData() error
- func (g *Game) MakeScreenReaderUI() *screenreader.UI
- func (g *Game) QueueAutoSave()
- func (g *Game) Render(ctx context.Context) error
- func (g *Game) Resize(ctx context.Context) error
- func (g *Game) Update(ctx context.Context, frameAdvance bool) (*router.PageInfo, error)
- type Location
- type Pibu
- type Pibus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivePibu ¶
type ActivePibu struct { Berries uint64 Generation uint64 Level uint8 Health uint8 FavoriteFoods FoodCategory Pibu // Temporary (not saved) BerryTimer uint8 Squish uint8 }
func (*ActivePibu) MarshalText ¶
func (p *ActivePibu) MarshalText() ([]byte, error)
func (*ActivePibu) Render ¶
func (p *ActivePibu) Render(sb *sprites.Batch, x, y, z, scaleX, scaleY float32)
func (*ActivePibu) Tackle ¶
func (p *ActivePibu) Tackle()
func (*ActivePibu) UnmarshalText ¶
func (p *ActivePibu) UnmarshalText(b []byte) error
func (*ActivePibu) Update ¶
func (p *ActivePibu) Update()
type FoodCategory ¶
type FoodCategory uint8
const ( FoodShroom FoodCategory = iota FoodLeaf FoodHoney )
Constants for FoodCategory.
func (FoodCategory) String ¶
func (i FoodCategory) String() string
type Game ¶
type Game struct { CurrentLoc Location PrevLoc Location Transition uint8 LocState uint8 LocAnim uint16 RNG *rand.Rand Aphid ActivePibu History Pibus Suitors [3]Pibu SaveRequest uint64 // contains filtered or unexported fields }
func (*Game) MakeScreenReaderUI ¶ added in v0.3.19
func (g *Game) MakeScreenReaderUI() *screenreader.UI
func (*Game) QueueAutoSave ¶
func (g *Game) QueueAutoSave()
type Location ¶
type Location uint8
Click to show internal directories.
Click to hide internal directories.