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
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
scaleAndOutline
command
Package main 👍
|
Package main 👍 |
|
spinningMelon
command
Package main 👍
|
Package main 👍 |
|
tiles
command
Package main 👍
|
Package main 👍 |
Click to show internal directories.
Click to hide internal directories.