API | Constants

Constants used by the Perlenspiel engine.

 

Generic arguments

These constants can be passed as arguments into many function calls.

 

Return values

Returned by various function calls.

 

Colors

Can be used anywhere an RGB triplet value is passed or returned.

 

Key codes

Arrow, keypad and function key codes for PS.keyDown() and PS.keyUp() events.

 

Input events

Constants associated with PS.input() events.

.wheel (scroll wheel activity)

 

Sprites

Collision codes for PS.spriteCollide().