Videopac / Odyssey2 forum
October 18, 2017, 04:02:37 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: New Game! Free Food For Fish by Rafael! Pre-order now and overhere!
 
   Home   arcade Help Login Register links videopac.nl  
Pages: [1]   Go Down
  Print  
Author Topic: O2Sprite Demo  (Read 1964 times)
Gorf
Attacked the Timelord
***
Posts: 185


Gorfians take no prisoners!


« on: February 02, 2009, 05:43:20 PM »

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.

Code:
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.


Code:
; 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....


Code:
; 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


Code:
; 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! Smiley
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
Logged
Sdw
Trying to get the cartridge in...
*
Posts: 19


« Reply #1 on: July 13, 2017, 11:49:46 AM »

I just want to say thank you for posting this and the gridmap demo, just the kind of simple stuff I needed to get going with development for the G7000!
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!