gs
github.com/ryosama/go-sprite
go get github.com/ryosama/go-sprite
gs

github.com/ryosama/go-sprite

A simple library to animate sprite in Golang with Ebiten 2D engine

go get github.com/ryosama/go-sprite
Readme

Go-sprite

A simple library for playing with sprites and animations

It use the Ebiten library for the 2D graphics engine

Install

$ go get -u github.com/hajimehoshi/ebiten
$ go get -u github.com/ryosama/go-sprite

Screenshot

Screenshot

Quick Start

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()

Documentation

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

TODO

  • Add a video

GitHub Stars

11

LAST COMMIT

1yr ago

MAINTAINERS

0

CONTRIBUTORS

2

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
v0.0.0-20210215131658-bad96d1c278a
1yr ago
v0.0.0-20210211105337-25aabed020f4
1yr ago
v0.0.0-20180924081212-e91948c3c0ed
2yrs ago
No alternatives found
No tutorials found
Add a tutorial