Sprites
v3.1 C64 C128
With XC=BASIC, you can display, move and animate sprites easily, as well as you can detect sprite collisions intuitively.
- The SPRITE command sets various properties of a single sprite, including visibility, shape, color, etc.
- SPRITE MULTICOLOR sets the global multicolor values (for all sprites)
- The SPRITEHIT() function checks if a sprite collided with another one
- The SPRITEBGHIT() function checks if a sprite collided with the background graphics
- SPRITE CLEAR HIT clears the collision status
- You can fire interrupts on sprite collision using the
ON SPRITE GOTO
andON BACKGROUND GOTO
statements.