-
Notifications
You must be signed in to change notification settings - Fork 88
Objects Overview
Dethe Elza edited this page Jan 16, 2015
·
3 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)