Jump to content

Recommended Posts

OK, I'm trying to make missile 0 eight pixels wide in DPC+. I use NUSIZ0 = $30, but it doesn't do anything. The missile is still 1 pixel wide. what am I missing?

Share this post


Link to post
Share on other sites
41 minutes ago, CapitanClassic said:

Do you only have one copy, or multiple copies of P0?

 

 

just one copy...I just want missile0 to be 8 x 8 pixels

Share this post


Link to post
Share on other sites

It seems to be working here, but it was compiled a long time ago:

 

https://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#ex_dpc_13_objects

 

Try compiling it and see if you can change the size of the missiles by selecting them, holding down the fire button, then moving the joystick left or right.

Share this post


Link to post
Share on other sites
10 minutes ago, Random Terrain said:

It seems to be working here, but it was compiled a long time ago:

 

https://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#ex_dpc_13_objects

 

Try compiling it and see if you can change the size of the missiles by selecting them, holding down the fire button, then moving the joystick left or right.

yes, that program works fine, though it's a bit confusing to look at for me. Is there something else I need to set for this to work? I mean, if you were writing a game that did nothing but set the missile0 width to 8, what would it look like?

Share this post


Link to post
Share on other sites
33 minutes ago, Random Terrain said:

It seems to be working here, but it was compiled a long time ago:

 

https://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#ex_dpc_13_objects

 

Try compiling it and see if you can change the size of the missiles by selecting them, holding down the fire button, then moving the joystick left or right.

Well, I got it to work by moving the statement to inside the main loop...I don't know what that made a difference.

Share this post


Link to post
Share on other sites
16 minutes ago, satyrsfaction said:

Well, I got it to work by moving the statement to inside the main loop...I don't know what that made a difference.

 

Yep, the bB page tells you when things need to be in the main loop:

 

https://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#nusiz

 

You might also want to look at this section:

 

https://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#ephvarreg

Share this post


Link to post
Share on other sites

Yeah it needs to be in the mainloop with DPC+. The only reason i could think is the value is stored as a temp variable that gets obliterated after the drawscreen function is called (unlike most TIA registers)

Share this post


Link to post
Share on other sites

It gets wiped out by the score routine specifically, which sets both player objects to 3 copies close in order to do a 6-digit score. 

  • Like 2
  • Thanks 1

Share this post


Link to post
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.

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