Skip to content

Commit

Permalink
update version
Browse files Browse the repository at this point in the history
  • Loading branch information
yohamta committed Nov 27, 2022
1 parent 7de885e commit 07b5829
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 439 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
# ganim8

Animation library for [Ebitengine](https://ebiten.org/) inspired by [anim8](https://github.com/kikito/anim8).
Sprite Animation library for [Ebitengine](https://ebiten.org/) inspired by [anim8](https://github.com/kikito/anim8).

v1.x is pretty much the same API with [anim8](https://github.com/kikito/anim8).
v2.x is more optimized for Ebiten to be more performant and glanular control introducing [Sprite](https://pkg.go.dev/github.com/yohamta/ganim8/v2#Sprite) API.

In order to build animations more easily, ganim8 divides the process in two steps: first you create a grid, which is capable of creating frames (Quads) easily and quickly. Then you use the grid to create one or more animations.

[GoDoc](https://pkg.go.dev/github.com/yohamta/ganim8/v3)
[GoDoc](https://pkg.go.dev/github.com/yohamta/ganim8/v2)

## Example

```go
import "github.com/yohamta/ganim8/v3"
import "github.com/yohamta/ganim8/v2"

type Game struct {
animation *ganim8.Animation
Expand Down
2 changes: 1 addition & 1 deletion animation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"time"

"github.com/hajimehoshi/ebiten/v2"
"github.com/yohamta/ganim8/v3"
"github.com/yohamta/ganim8/v2"
)

var mockImg = ebiten.NewImage(1, 1)
Expand Down
2 changes: 1 addition & 1 deletion examples/demo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/hajimehoshi/ebiten/v2"

"github.com/yohamta/ganim8/v3"
"github.com/yohamta/ganim8/v2"
)

const (
Expand Down
26 changes: 16 additions & 10 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
module github.com/yohamta/ganim8/v3
module github.com/yohamta/ganim8/v2

go 1.16
go 1.18

require (
github.com/hajimehoshi/ebiten/v2 v2.4.13
github.com/stretchr/testify v1.8.1
golang.org/x/exp v0.0.0-20221126150942-6ab00d035af9
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/ebitengine/purego v0.0.0-20220905075623-aeed57cda744 // indirect
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20220806181222-55e207c401ad // indirect
github.com/hajimehoshi/ebiten/v2 v2.3.7
github.com/hajimehoshi/file2byteslice v0.0.0-20210813153925-5340248a8f41 // indirect
github.com/jezek/xgb v1.0.1 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0
github.com/stretchr/testify v1.8.0
golang.org/x/exp v0.0.0-20210916165020-5cb4fee858ee
golang.org/x/exp/shiny v0.0.0-20220722155223-a9213eeb770e // indirect
golang.org/x/image v0.0.0-20220722155232-062f8c9fd539 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
golang.org/x/exp/shiny v0.0.0-20221126150942-6ab00d035af9 // indirect
golang.org/x/image v0.1.0 // indirect
golang.org/x/mobile v0.0.0-20220722155234-aaac322e2105 // indirect
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4 // indirect
golang.org/x/sys v0.0.0-20220804214406-8e32c043e418 // indirect
golang.org/x/sys v0.1.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 07b5829

Please sign in to comment.