misc

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawRect added in v0.0.2

func DrawRect(target *ebiten.Image, rgba color.RGBA)

func IsLoadingDone

func IsLoadingDone() bool

func LoadPNG

func LoadPNG(files *embed.FS, path string) (*ebiten.Image, error)

func LoadingDone

func LoadingDone()

func MinInt added in v0.0.2

func MinInt(a, b int) int

func MousePressed

func MousePressed() bool

func ScaledFontSize

func ScaledFontSize(size float64, zoomLevel float64) int

func SkipKeyPressed

func SkipKeyPressed() bool

func StartLoading

func StartLoading()

Types

type Context

type Context struct {
	Filesys   *embed.FS
	FontLib   *etxt.FontLibrary
	FontCache *ecache.DefaultCache
}

Shared context for scene initializations.

func NewContext

func NewContext(filesys *embed.FS) (*Context, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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