assets

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assets

type Assets struct {
	// contains filtered or unexported fields
}

Assets contains all the assets of the game.

func Load

func Load() (*Assets, error)

Load loads all the assets of the game.

func (*Assets) AllFonts

func (a *Assets) AllFonts() []string

AllFonts returns all the fonts keys.

func (*Assets) NewTextFaceSource

func (a *Assets) NewTextFaceSource(key string) (*text.GoTextFaceSource, error)

NewTextFaceSource creates a new text face source from the given font key.

Jump to

Keyboard shortcuts

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