Releases: setanarut/anim
Releases · setanarut/anim
v1.4.0
v1.3.1
v1.3.0
Update API + Refactoring
Full Changelog: v1.2.0...v1.3.0
v1.2.0
v1.1.2
Change Log
Added:
Atlasstates feature for handling multiple sprite sheet variations sharing the same coordinates.
Modified:
README.md:- Updated examples and documentation to reflect the new
Atlasfeature and method changes.
- Updated examples and documentation to reflect the new
anim.go:- Introduced
Atlasstruct and updatedAnimationPlayerto support multiple atlases. - Replaced
NewAnimationStatewithNewStatewhich includes FPS as a parameter.
- Introduced
examples/demo/main.go:- Updated to use new
Atlasfeature. - Adjusted methods to reflect changes in state handling.
- Updated to use new
Removed:
SetStateAndReset()has been replaced withSetState().
Added Examples:
examples/atlases/main.go: A new example demonstrating the use of alternative sprite sheets with the same coordinates.
v1.0.2
[v1.0.2] Change Log
- The ping pong feature was extracted as the
MakePingPong()method. - Refactoring
- Update
go.mod
Added
// MakePingPong arranges the animation indexes to play back and forth.
// [0 1 2 3] -> [0 1 2 3 2 1]
func MakePingPong(frames []*ebiten.Image) []*ebiten.Image {
for i := len(frames) - 2; i > 0; i-- {
frames = append(frames, frames[i])
}
return frames
}