Jump to content
IGNORED

Trouble Drawing Missile Correctly


Recommended Posts

First time poster here,

 

I am still very new to programming for the Atari 2600. I am trying to get a basic game shell going by modifying some sample code from Kirk Israel that displays a ghost sprite and changes the sprite when the fire button is pressed. From this code I have discovered the fine horizontal positioning method and the skip draw method. I understand how to use the fine horizontal positioning but I am not sure how to modify the draw code to only draw a portion of a missile.

 

drawPlayer1
lda	 #C_P0_HEIGHT-1
dcp	 P0_Y		
bcs	 .doDraw0	
lda	 #0			
.byte $2c			
.doDraw0:
lda	 (P0_Ptr),y	
sta	 GRP0		
rts

 

Ideally I would only like to draw a portion of a missile at a certain fire position. I am not sure if its possible to modify the skipdraw method to enable ENAM0 at a certain scanline or if I need to try a different technique?

 

Any advice or pointers would be appreciated. Thanks!

demo2.asm

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