VDP ‐ Sprites and Bitmaps - breakintoprogram/agon-docs GitHub Wiki
The VDP supports bitmaps and sprites via 'VDU 23, 27'
Bitmaps
VDU 23, 27, 0, n: Select bitmap nVDU 23, 27, 1, w; h; b1, b2 ... bn: Load colour bitmap data into current bitmapVDU 23, 27, 2, w; h; col1; col2;: Create an empty bitmap with 32 bit (rgba) colour col1,col2 into current bitmapVDU 23, 27, 3, x; y;: Draw current bitmap on screen at pixel position x, y
Sprites
VDU 23, 27, 4, n: Select sprite nVDU 23, 27, 5: Clear frames in current spriteVDU 23, 27, 6, n: Add bitmap n as a frame to current spriteVDU 23, 27, 7, n: Activate n spritesVDU 23, 27, 8: Select next frame of current spriteVDU 23, 27, 9: Select previous frame of current spriteVDU 23, 27, 10, n: Select the nth frame of current spriteVDU 23, 27, 11: Show current spriteVDU 23, 27, 12: Hide current spriteVDU 23, 27, 13, x; y;: Move current sprite to pixel position x, yVDU 23, 27, 14, x; y;: Move current sprite by x, y pixelsVDU 23, 27, 15: Update the sprites in the GPUVDU 23, 27, 16: Reset the sprites and clear all data (Requires MOS 1.03 or above)