Skip to content

Releases: setanarut/anim

v1.1.2

21 Jan 22:16
Compare
Choose a tag to compare

Change Log

Added:

  • Atlas states feature for handling multiple sprite sheet variations sharing the same coordinates.

Modified:

  • README.md:
    • Updated examples and documentation to reflect the new Atlas feature and method changes.
  • anim.go:
    • Introduced Atlas struct and updated AnimationPlayer to support multiple atlases.
    • Replaced NewAnimationState with NewState which includes FPS as a parameter.
  • examples/demo/main.go:
    • Updated to use new Atlas feature.
    • Adjusted methods to reflect changes in state handling.

Removed:

  • SetStateAndReset() has been replaced with SetState().

Added Examples:

  • examples/atlases/main.go: A new example demonstrating the use of alternative sprite sheets with the same coordinates.

v1.0.2

03 Nov 13:57
Compare
Choose a tag to compare

[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
}

v1.0.1

21 Sep 04:23
ff09485
Compare
Choose a tag to compare

Add License
Update readme

v1.0.0

21 Sep 04:17
9ced58b
Compare
Choose a tag to compare

v1.0.0