Tried Sprite


Tried displaying sprites and move them.  Blitz manual has a great sample code for that. 8 donuts like graphics on the attached picture are sprites. This is 32x32 size 2 bit planes. I ported sample code to my test program. So, aprox. 30 QBlit shapes and 8 sprites are moving at a same time. Wow!

Interesting thing is color plette for sprite. It required to set palette # 17 to 31. When I use 4 bit planes display and 2 bit planes sprite, color register 17,18,19 for sprite channel 0,1 and color register 21,22,23 for sprite channel 1,2. That means 2 channel shares same palette.

Another thing is that the manual saids "The Amiga hardware has 8 sprite channels, standard 16 wide 3 colour sprites require a single channel, 15 colour sprites need two and sprites wider than 16 will require extra channels also.". But when I execute the sample code on the manual, I saw 8 64x64 3 color sprites on the display. So, I wonder which Amiga hardware this manual intended to or this is because UAE? Anyway, I hope my physical A1200 could display 8 64x64 2 bit plane sprite too.

Accomplishments:

  • Display sprites and move them.

ToDo:

  • Trying to draw background and horizontal scroll.
  • Trying to use dual playfield.

Get My First Shooting Game For Amiga

Leave a comment

Log in with itch.io to leave a comment.