API | Constants
Constants used by the Perlenspiel engine.
Generic arguments
These constants can be passed as arguments into many function calls.
- PS.ALL
- PS.CURRENT
- PS.DEFAULT
Return values
Returned by various function calls.
- PS.DONE
- PS.ERROR
Colors
Can be used anywhere an RGB triplet value is passed or returned.
- PS.COLOR_WHITE
- PS.COLOR_BLACK
- PS.COLOR_GRAY_LIGHT
- PS.COLOR_GRAY
- PS.COLOR_GRAY_DARK
- PS.COLOR_RED
- PS.COLOR_ORANGE
- PS.COLOR_YELLOW
- PS.COLOR_GREEN
- PS.COLOR_BLUE
- PS.COLOR_INDIGO
- PS.COLOR_VIOLET
- PS.COLOR_CYAN
- PS.COLOR_MAGENTA
Key codes
Arrow, keypad and function key codes for PS.keyDown() and PS.keyUp() events.
- PS.KEY_ENTER
- PS.KEY_SPACE
- PS.KEY_ARROW_LEFT
- PS.KEY_ARROW_RIGHT
- PS.KEY_ARROW_UP
- PS.KEY_ARROW_DOWN
- PS.KEY_ESCAPE
- PS.KEY_TAB
- PS.KEY_PAGE_UP
- PS.KEY_PAGE_DOWN
- PS.KEY_END
- PS.KEY_HOME
- PS.KEY_INSERT
- PS.KEY_DELETE
- PS.KEY_PAD_0
- PS.KEY_PAD_1
- PS.KEY_PAD_2
- PS.KEY_PAD_3
- PS.KEY_PAD_4
- PS.KEY_PAD_5
- PS.KEY_PAD_6
- PS.KEY_PAD_7
- PS.KEY_PAD_8
- PS.KEY_PAD_9
- PS.KEY_F1
- PS.KEY_F2
- PS.KEY_F3
- PS.KEY_F4
- PS.KEY_F5
- PS.KEY_F6
- PS.KEY_F7
- PS.KEY_F8
- PS.KEY_F9
- PS.KEY_F10
Input events
Constants associated with PS.input() events.
.wheel (scroll wheel activity)
- PS.WHEEL_FORWARD
- PS.WHEEL_BACKWARD