lib

package
v0.0.0-...-185e3b9 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MplusNormalFont font.Face
	MplusSmallFont  font.Face
)

Functions

func DrawHorizontalFlippedImage

func DrawHorizontalFlippedImage(screen *ebiten.Image, img *ebiten.Image, imageWidth int, posX int, posY int)

func DrawLightenImage

func DrawLightenImage(screen *ebiten.Image, img *ebiten.Image, posX int, posY int, light float64)

func DrawNormalImage

func DrawNormalImage(screen *ebiten.Image, img *ebiten.Image, posX int, posY int)

func DrawRotateImage

func DrawRotateImage(screen *ebiten.Image, img *ebiten.Image, posX int, posY int, degrees float64)

func GetSubImage

func GetSubImage(spriteSheet *ebiten.Image, frameWidth int, frameHeight int, spriteCount int, frameCount int, speed int) *ebiten.Image

func LoadFonts

func LoadFonts(filesystem embed.FS) error

func LoadStaticResource

func LoadStaticResource(filesystem embed.FS, path string) ([]byte, error)

for loading fonts (.ttf) and text files (.txt)

Types

This section is empty.

Jump to

Keyboard shortcuts

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