Difference between revisions of "SpriteDisplay"
Jump to navigation
Jump to search
m |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
The <c>SpriteDisplay</c> class in [[Mini Micro]] is a display type that holds and draws [[Sprite|Sprites]], little images that can be efficiently moved, rotated, and scaled. | The <c>SpriteDisplay</c> class in [[Mini Micro]] is a display type that holds and draws [[Sprite|Sprites]], little images that can be efficiently moved, rotated, and scaled. | ||
− | By default, [[display]] 4 is configured as a sprite display. But you can make any display layer a sprite display by setting its [[Display.mode]] | + | By default, [[display]] 4 is configured as a sprite display. But you can make any display layer a sprite display by setting its [[Display.mode|mode]] to <c>displayMode.sprite</c>. |
== Methods and Properties == | == Methods and Properties == | ||
Line 15: | Line 15: | ||
| [[SpriteDisplay.clear]] || clears all sprites from the display, and resets scroll position | | [[SpriteDisplay.clear]] || clears all sprites from the display, and resets scroll position | ||
|- | |- | ||
− | | [[ | + | | [[SpriteDisplay.sprites]] || list of sprites in this display, in draw order |
|} | |} | ||
+ | |||
+ | |||
+ | [[Category:Mini Micro]] |
Latest revision as of 20:59, 5 January 2021
The SpriteDisplay
class in Mini Micro is a display type that holds and draws Sprites, little images that can be efficiently moved, rotated, and scaled.
By default, display 4 is configured as a sprite display. But you can make any display layer a sprite display by setting its mode to displayMode.sprite
.
Methods and Properties
Method or Property | Purpose |
---|---|
SpriteDisplay.scrollX | horizontal scroll position of the whole display |
SpriteDisplay.scrollY | vertical scroll position of the whole display |
SpriteDisplay.clear | clears all sprites from the display, and resets scroll position |
SpriteDisplay.sprites | list of sprites in this display, in draw order |