Jump to content
IGNORED

Aaron the Aant


atari2600land

Recommended Posts

I'm trying to make the ant not walk when the joystick is standing still. I tried using SWCHA for joystick reading to do this:

    q = SWCHA / 16

    if q>0 then o=o+1

where if o{2}=1 a frame is on and o{2}=0 a different frame is on, but it didn't work. Why not, and what would work?

 

aaronaatari2.bas

  • Like 1
Link to comment
Share on other sites

I figured it out. Looking at the code from Larry the Lemon, the line that used SWCHA was this:

q = SWCHA / 16 ^ $0F

I don't know what the ^ $0F part means (I do know that $0F = 16), but I plopped that in and it works okay. Perhaps RT should edit his page to include the "^ $0F" part?

Another weird thing is when I compile, I have 111 bytes left. So then I went to put in something that couldn't possibly be 111 bytes and it ends up as -23 bytes. What's going on there?

Anyway, here's the latest build.

 

aaronaatari3.zip

  • Like 2
Link to comment
Share on other sites

  • 1 year later...
  • 6 years later...
  • 2 months later...

ZeroPage Homebrew is playing Aaron the Aant on tomorrow's stream LIVE on Twitch, hope you can join us!


Games:

After Dark:

 

1147183493_20220503-LetsPlay.thumb.jpg.a269a01a11bc292419f25133551f7c10.jpg

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