lib

package
v0.0.0-...-6eb13a0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 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, img *ebiten.Image, imageWidth, posX, posY int)

func DrawLightenImage

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

func DrawNormalImage

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

func DrawNormalScaledImage

func DrawNormalScaledImage(screen, img *ebiten.Image, posX, posY int, scaleX, scaleY float32)

func DrawRotateImage

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

func GetSubImage

func GetSubImage(spriteSheet *ebiten.Image, frameWidth, frameHeight, spriteCount, frameCount, 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