-
Notifications
You must be signed in to change notification settings - Fork 20
4.cLEDSprites Function List
This declares an instance of cLEDSprites and tells it to use Matrix for display of any attached sprites.
This adds a sprite to the end of the sprites list that is to be Updated/Rendered by this class.
This checks to see if the sprite is in the sprites list controlled by this class.
This removes the sprite from the sprites list controlled by this class.
This removes all sprites controlled by this class.
This changes the priority / drawing order for the selected sprite. The Priority can be SPR_FRONT
, SPR_BACK
, SPR_FORWARD
, SPR_BACKWARD
.
This Updates all the sprites in the sprite list with their respective motion & frame rates if set, and also performs the edge detection for each sprite if selected.
This displays all the sprites controlled by the class on the led matrix.
Only Sprites with valid Mask data will have their collisions detected.
If srcSpr
is NULL this scans all the sprites controlled by the class and checks for collisions between any that have their collision option set.
If srcSpr
is a valid sprite, it will then just scan for collisions between srcSpr
and the sprites controlled by the class.
The cSprite
GetFlags()
function can then be used to check for any collisions.