Joecl93 Posted April 6, 2011 Share Posted April 6, 2011 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. Quote Link to comment Share on other sites More sharing options...
Nukey Shay Posted April 6, 2011 Share Posted April 6, 2011 (edited) 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 April 6, 2011 by Nukey Shay Quote Link to comment Share on other sites More sharing options...
Joecl93 Posted April 7, 2011 Author Share Posted April 7, 2011 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 Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted April 7, 2011 Share Posted April 7, 2011 (edited) Looks like you meant to post in the batari Basic forum: http://www.atariage.com/forums/forum/65-batari-basic/ Speaking of the bB forum, this thread might be helpful: http://www.atariage.com/forums/topic/173622-how-would-i-go-about-programming-for-the-driving-controller/ Edited April 7, 2011 by Random Terrain Quote Link to comment Share on other sites More sharing options...
ScumSoft Posted April 7, 2011 Share Posted April 7, 2011 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.