sprite

package module
v0.0.0-...-821983e Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sprite

type Sprite struct {
	X      float64
	Y      float64
	Dx     float64
	Dy     float64
	XScale float64
	YScale float64

	Img            *ebiten.Image
	OriginalWidth  int
	OriginalHeight int
	// contains filtered or unexported fields
}

func (*Sprite) GenerateImgOptions

func (s *Sprite) GenerateImgOptions() *ebiten.DrawImageOptions

func (*Sprite) GoTo

func (s *Sprite) GoTo(x, y int)

func (*Sprite) Init

func (s *Sprite) Init(x, y float64, imgPath string)

func (Sprite) PixelHeight

func (s Sprite) PixelHeight() int

func (Sprite) PixelWidth

func (s Sprite) PixelWidth() int

func (*Sprite) Resize

func (s *Sprite) Resize(width, height int)

Jump to

Keyboard shortcuts

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