Versions in this module Expand all Collapse all v0 v0.1.1 Sep 27, 2023 Changes in this version + var Fonts TextureCache = NewTextureCache() + func MustLoadPNG(file string) *ebiten.Image + type Font struct + CharHeight int + CharWidth int + Cols int + Height int + Rows int + Spacing int + TexturePath string + UnicodeMapping [][]string + YShift int + var DefaultFont Font = MustLoadFont("default") + func LoadFont(file string) (Font, error) + func MustLoadFont(file string) Font + func (f *Font) UpdateResources() error + func (f Font) GetRuneCoords(r rune) (image.Point, error) + func (f Font) Validate() error + type TextureCache struct + func NewTextureCache() TextureCache + func (t *TextureCache) GetTexture(id string) *ebiten.Image + func (t TextureCache) String() string type Textures + func MustLoadTextureMapping(file string) Textures v0.1.1-PumpkinPatch Oct 29, 2023 v0.1.0 Aug 27, 2023 Changes in this version + var Berries BerryCache = NewBerryCache() + var Player *ebiten.Image = LoadPNG("player") + var Tree *ebiten.Image = LoadPNG("tree") + type BerryCache struct + func NewBerryCache() BerryCache + func (b *BerryCache) GetTexture(id string) *ebiten.Image + func (b BerryCache) String() string + type Textures struct + Mapping map[string]string + var BerryStates Textures = LoadTextureMapping("berries") + func LoadTextureMapping(file string) Textures + func (t Textures) GetTexturePath(textureKey string) string v0.0.3 Jul 15, 2023 Changes in this version + var Icon128 []byte + var Icon16 []byte + var Icon22 []byte + var Icon24 []byte + var Icon256 []byte + var Icon32 []byte + var Icon48 []byte + var Icon512 []byte + var Icon64 []byte + func LoadPNG(embeddedImage []byte) *ebiten.Image v0.0.2 Jul 8, 2023 v0.0.1 Jul 1, 2023 Changes in this version + var PlayerPng []byte + var TreePng []byte