AmigaExamples/009.anim_blit
alpine9000 ffc5f1f93d Got build working on newer OSX, included missing ADFs 2019-06-11 13:58:03 +10:00
..
bin Got build working on newer OSX, included missing ADFs 2019-06-11 13:58:03 +10:00
Makefile Used better test image 2016-03-14 13:34:28 +11:00
README.md
anim_blit.s Updates for removal of -phxass option 2016-03-21 20:35:08 +11:00
blit.s
constants.i
init.s Updates for removal of -phxass option 2016-03-21 20:35:08 +11:00
screenshot.png Used better test image 2016-03-14 13:34:28 +11:00
utils.s

README.md

animate a blitter object

Now we can finally do something slightly more interesting.

In this example we refactor the code a bit as now we have more going on.

In blit.s we adapt the blit code from 008.shift_blit to be a slightly more general blit routine that can blit any 64x64 pixel object to any location as long as it's completely on the screen. If we try and blit off the screen the blitter will happily overwrite the adjacent ram with our blitter object's data.

The initialisation code is moved to init.s. Other shared stuff is moved into utils.s. With only the main loop and glue left in the main file anim_blit.s. Constants have been moved to constants.i.

The main loop moves the object around the screen.

We don't yet clear the background before each blit, so we get a nice trail. Also there is no double buffering.

screenshot

Screenshot

try it