changed animation for up and down to 4 vs 5
parent
b16a27cc09
commit
6871736381
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue