8000 GitHub - RAshkettle/go-sprite: A simple library to animate sprite in Golang with Ebiten 2D engine
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

RAshkettle/go-sprite

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

my
5669
Sprite = 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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%
0