sprites

package
v0.0.0-...-79996cc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package sprites manages miscellaneous in-game sprites.

The sprites are relatively few for UI purposes. Their textures are loaded ONE time and cached in this package for performance.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlushCache

func FlushCache()

FlushCache clears the sprites cache.

func LoadImage

func LoadImage(e render.Engine, filename string) (*ui.Image, error)

LoadImage loads a sprite as a ui.Image object. It checks Doodle's embedded bindata, then the filesystem before erroring out.

NOTE: only .png images supported as of now. TODO

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL