Jump to content



0

Programing trouble


4 replies to this topic

#1 Joecl93 OFFLINE  

Joecl93

    Combat Commando

  • 4 posts

Posted Tue Apr 5, 2011 8:33 PM

I am trying to program an engine test for a 2600 version of Zuma that uses the driving controllers, but I can't figure out how to program a playfield swicth at the press of a fire button.

#2 Nukey Shay OFFLINE  

Nukey Shay

    Sheik Yerbouti

  • 20,458 posts
  • Location:The land of Gorch

Posted Wed Apr 6, 2011 12:52 AM

Driving controllers use the same registers as the joystick...SWCHA for the knob (reading bits 4&5 for the left port and bits 0&1 for the right), and INPT4 and INPT5 for each trigger - bit 7 on (negative) = not pressed.

IMO Zuma seems to be quite advanced for a beginner project (if this is your first). Good luck.

Edited by Nukey Shay, Wed Apr 6, 2011 12:53 AM.


#3 Joecl93 OFFLINE  

Joecl93

    Combat Commando

  • 4 posts

Posted Wed Apr 6, 2011 6:38 PM

View PostNukey Shay, on Wed Apr 6, 2011 12:52 AM, said:

Driving controllers use the same registers as the joystick...SWCHA for the knob (reading bits 4&5 for the left port and bits 0&1 for the right), and INPT4 and INPT5 for each trigger - bit 7 on (negative) = not pressed.

IMO Zuma seems to be quite advanced for a beginner project (if this is your first). Good luck.

I'm Afraid that didn't help Here is my current code

gamescreen
playfield:
......XXXXXXXXXXXXX.......XX....
.....XX...........XX......XX....
....XX.XXXXXXXXXX..XX....XX.....
...XX.XX........XX..XX...XX.....
..XX..XX.XX.....XX..XX..XX......
..XX..XX.XX.....XX..XX..XX......
..XX..XX..XXXXXXX..XX..XX.......
...XX..XX.........XX..XXX.......
....XXX..XXXXXXXXXX..XXX........
.....XXXX..........XXXX.........
......XXXXXXXXXXXXXXXX..........
end
COLUBK=$0A
COLUPF=$06
drawscreen
if joy0fire then goto gamescreen

Hope this helps

#4 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

  • 20,919 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Wed Apr 6, 2011 6:42 PM

Looks like you meant to post in the batari Basic forum:

http://www.atariage....5-batari-basic/


Speaking of the bB forum, this thread might be helpful:

http://www.atariage....ing-controller/

Edited by Random Terrain, Wed Apr 6, 2011 6:45 PM.


#5 ScumSoft OFFLINE  

ScumSoft

    Moonsweeper

  • 331 posts
  • Location:Polysorbate 60

Posted Thu Apr 7, 2011 1:06 AM

View PostJoecl93, on Wed Apr 6, 2011 6:38 PM, said:

if joy0fire then goto gamescreen
>.<

So, you only want to goto gamescreen if the fire button is pressed? what say, happens if you don't press the fire button. :D




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users