Jump to content
IGNORED

Need some help please


jbs30000

Recommended Posts

As some of you might know, I've been working on a bB version of the Tron arcade game. I made a, we'll call it a beta version, and asked for feedback. One of the things mentioned was how jerky the light cycle game is, so I've been trying for a few weeks, hell, actually it's more like a couple of months now, to make a good light cycle game.

 

Yesterday I made a basic light cycle test program where I'm very, very close to having a decent light cycle routine. The light trace is made up of playfield pixels appearing behind the cycle as it drives. What I've settled on for a crash test is to place a missile at the front end of the cycle and test for a missile/playfield collision (see if a playfield pixel is right in front of where the cycle is headed towards).

 

I need the front of the cycle to be clear, like in the first pic, since having what you see in the second pic will lead to a false crash. Moving the cycle up, left, and right is fine. But I can't move it down with the playfield pixels being drawn past the car. So, any help with the code I'm posting would be most appreciated. Thank you.

 

P.S. Things work fine if I have the cycle move 8 pixels up/down/left/right, but that makes it move too fast and is part of the reason why the cycle movement was jerkey the last time.

 

Cycle going up, light trace is fine..Cycle going down, light trace going past the cycle

post-12524-1183933414_thumb.jpgpost-12524-1183933442_thumb.jpg

 

Test.bas

Edited to correct spelling error.

Edited by jbs30000
Link to comment
Share on other sites

Holly crap, I think I got it. I changed b = (player0y-3)/8 to b = (player0y-6)/8 when the cycle is driving down and it seems to work.

Finally, after a couple of months, I finally did it. I can finally move forward with this game. (Did I say finally enough times? :) )

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