Ok folks same rules as with the Grid demo. You must supply 'TASM.EXE
and 'TASM48.TAB' in the same folder.
This will copy sprite data to sprite 0, set up its color and postition
and move it in both axis while cycling the color.
mov r5,#SRED ; colour red
You can alter it to show the different effects that can be applied to the
sprite as well.
you will see this in the source the code set up to show a normal sprite like so.
mov r5,#SRED ; colour red normal
; comment the above line and
; uncomment one of these below
; mov r5,#SRED|ESHIFT ; colour red even shifted???(whatever the hell that is)
; mov r5,#SRED|DOUBLE ; colour red double sized sprite
; mov r5,#SRED|ESHDBL ; colour red both even shift and double sized sprite
call SetSprite| ; set up sprite for initial display
To change to see other effects, simply comment out the normal sprite line and
uncomment the desired one. for instance if you want to see a even shifted
sprite then you would change the above to this.
; mov r5,#SRED ; colour red normal
; comment the above line and
; uncomment one of these below
mov r5,#SRED|ESHIFT ; colour red even shifted???(whatever the hell that is)
; mov r5,#SRED|DOUBLE ; colour red double sized sprite
; mov r5,#SRED|ESHDBL ; colour red both even shift and double sized sprite
call SetSprite| ; set up sprite for initial display
For a double sized sprite....
; mov r5,#SRED ; colour red normal
; comment the above line and
; uncomment one of these below
; mov r5,#SRED|ESHIFT ; colour red even shifted???(whatever the hell that is)
mov r5,#SRED|DOUBLE ; colour red double sized sprite
; mov r5,#SRED|ESHDBL ; colour red both even shift and double sized sprite
call SetSprite| ; set up sprite for initial display
To see a even shifted double sized sprite
; mov r5,#SRED ; colour red normal
; comment the above line and
; uncomment one of these below
; mov r5,#SRED|ESHIFT ; colour red even shifted???(whatever the hell that is)
; mov r5,#SRED|DOUBLE ; colour red double sized sprite
mov r5,#SRED|ESHDBL ; colour red both even shift and double sized sprite
call SetSprite| ; set up sprite for initial display
Let's see ifyou can figure out how to use the other 3 sprites....all at the same time!

HINT: I 've already declared and defined them for you.....
Also......go down in the file to where the 'SpriteData:' label is.
You can change your sprite's shape there.
Enjoy!
Steve