Documentation
¶
Index ¶
Constants ¶
View Source
const ( DirLeft int = iota DirRight DirUp DirDown )
Variables ¶
View Source
var ( VecLeft = rl.Vector2{X: -1, Y: 0} VecRight = rl.Vector2{X: 1, Y: 0} VecUp = rl.Vector2{X: 0, Y: 1} VecDown = rl.Vector2{X: 0, Y: -1} VecDirections = []rl.Vector2{ VecLeft, VecRight, VecUp, VecDown, } )
The following are axis direction vectors based on world coordinates. UP/DOWN is intentionally UP = positive (which is different from window coordinates)
Functions ¶
func NewPenguin ¶
func NewPenguin() *penguin
Types ¶
type AnimationTracker ¶
Click to show internal directories.
Click to hide internal directories.