A simple library for playing with sprites and animations
It use the Ebiten library for the 2D graphics engine
$ go get -u github.com/hajimehoshi/ebiten
$ go get -u github.com/ryosama/go-sprite
import "github.com/ryosama/go-sprite"
mySprite = sprite.NewSprite()
mySprite.AddAnimation("walk-right", "walk_right.png", 700, 6, ebiten.FilterDefault)
mySprite.Position(WINDOW_WIDTH/2, WINDOW_HEIGHT/2)
mySprite.CurrentAnimation = "walk-right"
mySprite.Speed = 2
mySprite.Start()
The documentation can be found here : https://godoc.org/github.com/ryosama/go-sprite
Or export with this command
$ godoc github.com/ryosama/go-sprite
- Add a video