Sprite

From MZXWiki
Revision as of 19:42, 26 January 2011 by Old-Sckool (talk | contribs)
Jump to navigation Jump to search

For a comprehensive tutorial on sprites, see Sprite (Tutorial).

Sprites were introduced to MegaZeux in version 2.65, primarily as a method of making it easier to implement large object representations in the game (for example, engines for handling a multiple character player or enemies). They include many features such as collision detection, easy drawing, and configurable draw order. Despite being designed to make coding easier, many MZXers avoid their use in favor of more traditional methods such as overlay buffering and hand-rolled collision routines. This is largely out of a perception that Sprites are difficult to use.

IF color Sprite_Colliding pNN # # "label"