changed animation for up and down to 4 vs 5

main
Cahley 2022-10-23 22:44:32 -07:00
parent b16a27cc09
commit 6871736381
1 changed files with 2 additions and 2 deletions

View File

@ -55,13 +55,13 @@ func DefinePenguinAnimations() {
PenguinAnimations[PENGUIN_STATIONARY_LEFT] = NewEntityAnimation(stationaryRight, speed, length, 0, center, sdl.FLIP_HORIZONTAL)
// Walk Up
length = 5
length = 4
offset = sdl.Point{X: 0, Y: 3}
walkUp := sprite.NewAnimation(filename, dimensions, offset, length, border)
PenguinAnimations[PENGUIN_WALK_UP] = NewEntityAnimation(walkUp, speed, length, 0, center, sdl.FLIP_NONE)
// Walk Down
length = 5
length = 4
offset = sdl.Point{X: 0, Y: 0}
walkDown := sprite.NewAnimation(filename, dimensions, offset, length, border)
PenguinAnimations[PENGUIN_WALK_DOWN] = NewEntityAnimation(walkDown, speed, length, 0, center, sdl.FLIP_NONE)