Jr. Pac Posted July 25, 2011 Share Posted July 25, 2011 (edited) I learned how to use batari Basic, and started a Ms. Pac-Man game, that you need to turn your television on its side so it has the correct layout to play. It is unplayable currently, I just started today. There is just a maze layout and some sprites. I may possibly turn this into Pac-Man, as regular Pac-Man is much simpler and has no maze changes. jr_pac_2011y_07m_24d_2018t.bas.bin Edited July 25, 2011 by Jr. Pac 1 Quote Link to comment Share on other sites More sharing options...
Schizophretard Posted July 25, 2011 Share Posted July 25, 2011 Nice. It looks like you're starting to learn the skills you need to finish the other one. 1 Quote Link to comment Share on other sites More sharing options...
Jr. Pac Posted July 25, 2011 Author Share Posted July 25, 2011 Nice. It looks like you're starting to learn the skills you need to finish the other one. Thanks. Quote Link to comment Share on other sites More sharing options...
Jr. Pac Posted July 25, 2011 Author Share Posted July 25, 2011 I can't figure out qhat's wrong with this, I keep getting a Syntax Error. regularpactest.bas Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted July 25, 2011 Share Posted July 25, 2011 (edited) I can't figure out what's wrong with this, I keep getting a Syntax Error. Looks like you have 3 problems: 1. You have two labels with the same name (draw_loop). 2. scorecolor:$0E isn't indented and it should be scorecolor=$0E not scorecolor:$0E 3. You have goto jump 4 times in your program, but you don't have a label called jump, so there's nothing to go to. Edited July 25, 2011 by Random Terrain Quote Link to comment Share on other sites More sharing options...
Jr. Pac Posted July 25, 2011 Author Share Posted July 25, 2011 I don't know how and what to fix. Quote Link to comment Share on other sites More sharing options...
jrok Posted July 25, 2011 Share Posted July 25, 2011 I don't know how and what to fix. Random Terrain tells you what's wrong in the post above. Quote Link to comment Share on other sites More sharing options...
GroovyBee Posted July 25, 2011 Share Posted July 25, 2011 I don't know how and what to fix. Maybe you need to look at more bB examples, tinker with their source code, read around the subject and then have a go on your own stuff. Start simple and work your way up to more complex things. Quote Link to comment Share on other sites More sharing options...
Jr. Pac Posted July 25, 2011 Author Share Posted July 25, 2011 Thanks. I just don't know how to fix what RT said. I have plenty of bB code from other games, I'll look at it. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted July 25, 2011 Share Posted July 25, 2011 (edited) I don't know how and what to fix. Just look at the code: draw_loop COLUP0=$1C COLUP1=$42 scorecolor:$0E drawscreen if joy0up then player0x = player0x+1: goto jump if joy0down then player0x = player0x-1: goto jump if joy0left then player0y = player0y+1: goto jump if joy0right then player0y = player0y-1: goto jump draw_loop drawscreen goto sprites Do you see draw_loop? Do you see the other draw_loop? Get rid of it: draw_loop COLUP0=$1C COLUP1=$42 scorecolor:$0E drawscreen if joy0up then player0x = player0x+1: goto jump if joy0down then player0x = player0x-1: goto jump if joy0left then player0y = player0y+1: goto jump if joy0right then player0y = player0y-1: goto jump drawscreen goto sprites Oops, I also see an extra drawscreen that doesn't need to be there. Get rid of it: draw_loop COLUP0=$1C COLUP1=$42 scorecolor:$0E drawscreen if joy0up then player0x = player0x+1: goto jump if joy0down then player0x = player0x-1: goto jump if joy0left then player0y = player0y+1: goto jump if joy0right then player0y = player0y-1: goto jump goto sprites Do you see scorecolor:$0E? Change it to scorecolor=$0E and indent it: draw_loop COLUP0=$1C COLUP1=$42 scorecolor=$0E drawscreen if joy0up then player0x = player0x+1: goto jump if joy0down then player0x = player0x-1: goto jump if joy0left then player0y = player0y+1: goto jump if joy0right then player0y = player0y-1: goto jump goto sprites Do you see goto jump used 4 times? I assume it's there so the player can only go in one of 4 directions at a time. You need to add a label or you'll get an error since there is nothing to jump to: draw_loop COLUP0=$1C COLUP1=$42 scorecolor=$0E drawscreen if joy0up then player0x = player0x+1: goto Skip_J0 if joy0down then player0x = player0x-1: goto Skip_J0 if joy0left then player0y = player0y+1: goto Skip_J0 if joy0right then player0y = player0y-1: goto Skip_J0 Skip_J0 goto sprites I changed jump to Skip_J0. Do you see goto sprites? Change it to goto Main_Loop and change draw_loop to Main_Loop: Main_Loop COLUP0=$1C COLUP1=$42 scorecolor=$0E drawscreen if joy0up then player0x = player0x+1: goto Skip_J0 if joy0down then player0x = player0x-1: goto Skip_J0 if joy0left then player0y = player0y+1: goto Skip_J0 if joy0right then player0y = player0y-1: goto Skip_J0 Skip_J0 goto Main_Loop Now it will be clear where your main loop is. The errors seem to be gone for now: regularpactest_2011y_07m_25d_1325t.bas Edited July 25, 2011 by Random Terrain 1 Quote Link to comment Share on other sites More sharing options...
Jr. Pac Posted July 25, 2011 Author Share Posted July 25, 2011 Thank you so much! Now to making the walls solid... Quote Link to comment Share on other sites More sharing options...
Jr. Pac Posted July 26, 2011 Author Share Posted July 26, 2011 (edited) Here's a test, playable, but just controlling Pac-Man with no point, and I don't know how to fix the wall collision detection. regpactestfixedby RT.bas.bin Edited July 26, 2011 by Jr. Pac Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted July 26, 2011 Share Posted July 26, 2011 . . . and I don't know how to fix the wall collision detection. Be sure to check the bB page: http://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html I've been slowly adding little example programs. Use the Index on the right side of the page to find the subject you are interested in, click the link, then scroll down to see if there are any example programs for that subject. My example programs are in boxes that look like this: Quote Link to comment Share on other sites More sharing options...
Jr. Pac Posted July 26, 2011 Author Share Posted July 26, 2011 I don't get it. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted July 26, 2011 Share Posted July 26, 2011 I don't get it. What exactly don't you get? How to use an index? How to click on a link? How to scroll? What a box looks like? Quote Link to comment Share on other sites More sharing options...
Jr. Pac Posted July 26, 2011 Author Share Posted July 26, 2011 I don't think you have me the info I need. Try the test and see. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted July 27, 2011 Share Posted July 27, 2011 I don't think you have me the info I need. Try the test and see. I plan to make more example programs. One will be a simplistic example where you move a guy around a maze. Don't know how much it would help you, but I can start working on it now just in case. Quote Link to comment Share on other sites More sharing options...
Jr. Pac Posted July 27, 2011 Author Share Posted July 27, 2011 Please! That would be great! Quote Link to comment Share on other sites More sharing options...
Jr. Pac Posted July 29, 2011 Author Share Posted July 29, 2011 ... Anybody have the answer to the odd controls? Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted July 29, 2011 Share Posted July 29, 2011 ... Anybody have the answer to the odd controls? I'm getting close to finishing a Pac-Man-ish example program with a Pac-Man type guy that you can move with the joystick and one enemy moving around a maze (no dots, of course). I hope to be done tonight or some time tomorrow. Quote Link to comment Share on other sites More sharing options...
Jr. Pac Posted July 29, 2011 Author Share Posted July 29, 2011 ... Anybody have the answer to the odd controls? I'm getting close to finishing a Pac-Man-ish example program with a Pac-Man type guy that you can move with the joystick and one enemy moving around a maze (no dots, of course). I hope to be done tonight or some time tomorrow. Phew. Thanks! Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted July 30, 2011 Share Posted July 30, 2011 I've been working on a 32 x 24 maze, but since I had to use pfread more than usual, the scanline count keeps randomly going over 262. I'll need to take more time and switch to a lower resolution. Quote Link to comment Share on other sites More sharing options...
Jr. Pac Posted July 30, 2011 Author Share Posted July 30, 2011 Whichever one will work with this maze and it has correct control feel. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted July 31, 2011 Share Posted July 31, 2011 OK, everything seems to be converted properly (to a lower resolution), the Pac-Man style guy is now animated and I finally tracked down a bug that was messing things up. I'll clean up the code and add more REMs, then post the example program in a new thread. Quote Link to comment Share on other sites More sharing options...
Jr. Pac Posted July 31, 2011 Author Share Posted July 31, 2011 (edited) Come to think of it now of what Batari basic and me can do now, the original Ms. Pac-Man Arcade HACK isn't all trhat great. Edited July 31, 2011 by Jr. Pac 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.