Jump to content
IGNORED

Need Help With A Game


VGAGuy

Recommended Posts

I need help...again.

I have a game I'm developing for the Atari 2600 and there are two things I need to get to work but can't figure out.

 

Number one:

Gravity physics. I have seen some explanations in the forums but haven't seen any code examples for it.

 

 

Number 2:

Changing Sprites. I can get it to change to a different sprite when a direction is pressed but can't get it to revert back to the original when no direction is pressed.

 

 

 

Any help is appreciated.

 

Attached is a screenshot of the game(it is in early development).

 

post-54080-0-39005900-1496824235.png

Link to comment
Share on other sites

Number one:

Gravity physics. I have seen some explanations in the forums but haven't seen any code examples for it.

 

Here's a great example of gravity and smooth motion. It's not my original file I found it on AtariAge forum but can't remember where.

 

inertia.bas

 

 

Number 2:

Changing Sprites. I can get it to change to a different sprite when a direction is pressed but can't get it to revert back to the original when no direction is pressed.

Simple sprite change code

Sprite change.bas

 

 

Link to comment
Share on other sites

Thanks for the code, but when I ported it to my program I get this error:

--- Unresolved Symbol List
0.59 0000 ???? (R )
FASTFETCH 0000 ???? (R )

1761 bytes of ROM space left in bank 1
4052 bytes of ROM space left in bank 2
4052 bytes of ROM space left in bank 3
2644 bytes of ROM space left in bank 4
(this is for the gravity code)

 

 

Added BAS file.

zargon.bas

Edited by VGAGuy
Link to comment
Share on other sites

Now my problem is I am using the score as a fuel meter and want the game to end once it reaches zero but the closest I get is the game ending at 9800 on the score counter.

the code I am using: if score = 0 then goto game_over

Link to comment
Share on other sites

Everything works perfectly! Thanks a lot!

I am going to have to get rid of the sprite changes because I want this to fit in 16K of ROM.

 

EDIT: when I try to bankswitch the game just resets, I labeled the banks with spaces and the jumps without spaces, what am I doing wrong?

 

EDIT2: Fixed, forgot to add some statements

Edited by VGAGuy
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...