forked from waterbearlang/waterbear
-
Notifications
You must be signed in to change notification settings - Fork 0
Objects Overview
Alexei Pepers edited this page Nov 4, 2013
·
2 revisions
Sprite
An object for representing sprites in a game sense, which are drawn as a polygon and possess several characteristics such as speed and direction to allow for easy use.
Parameters:
- color
- movementDirection (integer in degrees)
- facingDirection (integer in degrees)
- speed (integer)
- autosteer (boolean)
- dx (direction x, integer)
- dy (direction y, integer)
- polygon.pos.x (x position, integer)
- polygon.pos.y (y position, integer)
Voice
An object representing a sound generator, which possesses a volume and frequency and can be turned on and off.
Parameters:
- on (boolean)
- amp.gain.value (volume as a float)
- osc.frequency.value (frequency as an integer)