Documentation ¶
Overview ¶
Package anim provides a simple way to create animations for use with ebiten
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Animation ¶
Animation stores a list of Frames and other data regarding timing
func NewAnimation ¶
NewAnimation returns a new Animation
type Frame ¶
Frame stores a single frame of an Animation. It contains an image and how long it should be drawn for
type SpriteSheet ¶
type SpriteSheet struct { Image *ebiten.Image // original image which was passed on creation PaddedImage *ebiten.Image Sprites []*ebiten.Image SpriteWidth int // how big each sprite is SpriteHeight int SpritesWide int // how many sprites are in the sheet SpritesHigh int Scale int OutlineThickness int OutlineColor color.RGBA }
SpriteSheet stores the image and information about the sizing of the SpriteSheet
func NewSpriteSheet ¶
func NewSpriteSheet(img *ebiten.Image, origSpriteWidth, origSpriteHeight int, options SpriteSheetOptions) *SpriteSheet
NewSpriteSheet returns a new SpriteSheet
func (*SpriteSheet) GetSprite ¶
func (s *SpriteSheet) GetSprite(x, y int) *ebiten.Image
GetSprite returns the sprite at the position x,y in the tilesheet
Directories ¶
Path | Synopsis |
---|---|
examples
|
|
scaleAndOutline
Package main 👍
|
Package main 👍 |
spinningMelon
Package main 👍
|
Package main 👍 |
tiles
Package main 👍
|
Package main 👍 |
Click to show internal directories.
Click to hide internal directories.