2022-11-26 22:47:42 -08:00
|
|
|
package animation
|
|
|
|
|
|
|
|
// AnimationMap maps each animation ID to the actual animation
|
|
|
|
var AnimationMap map[int]entityAnimation
|
|
|
|
|
|
|
|
// Enum containing IDs of all animations that exist to make them easy to reference.
|
|
|
|
const (
|
2023-04-30 00:33:18 -07:00
|
|
|
PenguinWalkRight int = iota
|
|
|
|
PenguinWalkLeft
|
|
|
|
PenguinWalkUp
|
|
|
|
PenguinWalkDown
|
|
|
|
PenguinStationaryRight
|
|
|
|
PenguinStationaryLeft
|
|
|
|
PenguinStationaryUp
|
|
|
|
PenguinStationaryDown
|
2022-11-26 22:47:42 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
func DefineAnimations() {
|
|
|
|
AnimationMap = make(map[int]entityAnimation)
|
|
|
|
DefinePenguinAnimations()
|
|
|
|
}
|