Jump to content
IGNORED

Multiple Sprites(Animation)


Recommended Posts

So far I have managed to get the duck to face the direction it is flying as opposed to moon walking. Now i want to make it so when the duck is "hit" it is shown as a different sprite. I know i need to add a new sprite as the Atari 2600 doesn't have a register for flipping a sprite vertically, but need help in coding the flipping of the different sprites. Any assistance would be greatly appreciated.

 

Sincerely,

 

Primordial Ooze

Link to comment
Share on other sites

The simplest way is to just have some extra graphics in the rom for the duck being hit. You could use a pointer in your rom to switch between the graphics. LDA indirect Y addressing is probably the easiest for you to use. You need 2 bytes of ram for that.

 

 

I.e.

duckGfx ds 2

 

 

 

To make a pointer for "FlyingDuck":

 

LDA #<FlyingDuck

STA duckGfx

LDA #>FlyingDuck

STA duckGfx+1

 

Follow a similar procedure for "DyingDuck".

 

When drawing the address mode for indirect Y is like:

 

LDA (duckGfx),Y

STA GRP0

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...