Jump to content



0

Ms. Pac-Man Arcade batari Basic game!


24 replies to this topic

#1 Jr. Pac OFFLINE  

Jr. Pac

    Dragonstomper

  • 775 posts
  • 1/4 of the fun with an Atari cart is cleaning it.
  • Location:In my room with my 2600.

Posted Sun Jul 24, 2011 10:18 PM

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.

Attached Thumbnails

  • jr_pac_2011y_07m_24d_2018t.bas.bin_1.png

Attached Files


Edited by Jr. Pac, Sun Jul 24, 2011 10:20 PM.


#2 Schizophretard OFFLINE  

Schizophretard

    Stargunner

  • 1,509 posts
  • Location:Indiana

Posted Sun Jul 24, 2011 11:51 PM

Nice. It looks like you're starting to learn the skills you need to finish the other one. :thumbsup:

#3 Jr. Pac OFFLINE  

Jr. Pac

    Dragonstomper

  • 775 posts
  • 1/4 of the fun with an Atari cart is cleaning it.
  • Location:In my room with my 2600.

Posted Sun Jul 24, 2011 11:52 PM

View PostSchizophretard, on Sun Jul 24, 2011 11:51 PM, said:

Nice. It looks like you're starting to learn the skills you need to finish the other one. :thumbsup:
Thanks.

#4 Jr. Pac OFFLINE  

Jr. Pac

    Dragonstomper

  • 775 posts
  • 1/4 of the fun with an Atari cart is cleaning it.
  • Location:In my room with my 2600.

Posted Mon Jul 25, 2011 12:17 AM

I can't figure out qhat's wrong with this, I keep getting a Syntax Error.

Attached Files



#5 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

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

Posted Mon Jul 25, 2011 3:38 AM

View PostJr. Pac, on Mon Jul 25, 2011 12:17 AM, said:

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 by Random Terrain, Mon Jul 25, 2011 3:38 AM.


#6 Jr. Pac OFFLINE  

Jr. Pac

    Dragonstomper

  • 775 posts
  • 1/4 of the fun with an Atari cart is cleaning it.
  • Location:In my room with my 2600.

Posted Mon Jul 25, 2011 9:44 AM

I don't know how and what to fix. :(

#7 jrok OFFLINE  

jrok

    Stargunner

  • 1,108 posts

Posted Mon Jul 25, 2011 9:47 AM

View PostJr. Pac, on Mon Jul 25, 2011 9:44 AM, said:

I don't know how and what to fix. :(

Random Terrain tells you what's wrong in the post above.

#8 GroovyBee OFFLINE  

GroovyBee

    7800 Developer

  • 5,781 posts
  • Busy bee!
  • Location:North, England

Posted Mon Jul 25, 2011 9:50 AM

View PostJr. Pac, on Mon Jul 25, 2011 9:44 AM, said:

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.

#9 Jr. Pac OFFLINE  

Jr. Pac

    Dragonstomper

  • 775 posts
  • 1/4 of the fun with an Atari cart is cleaning it.
  • Location:In my room with my 2600.

Posted Mon Jul 25, 2011 10:12 AM

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.

#10 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

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

Posted Mon Jul 25, 2011 11:32 AM

View PostJr. Pac, on Mon Jul 25, 2011 9:44 AM, said:

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:

Attached File  regularpactest_2011y_07m_25d_1325t.bas   1.12K   23 downloads

Edited by Random Terrain, Mon Jul 25, 2011 11:40 AM.


#11 Jr. Pac OFFLINE  

Jr. Pac

    Dragonstomper

  • 775 posts
  • 1/4 of the fun with an Atari cart is cleaning it.
  • Location:In my room with my 2600.

Posted Mon Jul 25, 2011 3:56 PM

Thank you so much! Now to making the walls solid...

#12 Jr. Pac OFFLINE  

Jr. Pac

    Dragonstomper

  • 775 posts
  • 1/4 of the fun with an Atari cart is cleaning it.
  • Location:In my room with my 2600.

Posted Tue Jul 26, 2011 9:50 AM

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.

Attached Files


Edited by Jr. Pac, Tue Jul 26, 2011 9:53 AM.


#13 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

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

Posted Tue Jul 26, 2011 12:13 PM

View PostJr. Pac, on Tue Jul 26, 2011 9:50 AM, said:

. . . and I don't know how to fix the wall collision detection.
Be sure to check the bB page:

http://www.randomter...c-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:

dah_example_programs.png

#14 Jr. Pac OFFLINE  

Jr. Pac

    Dragonstomper

  • 775 posts
  • 1/4 of the fun with an Atari cart is cleaning it.
  • Location:In my room with my 2600.

Posted Tue Jul 26, 2011 5:29 PM

I don't get it. :|

#15 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

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

Posted Tue Jul 26, 2011 5:39 PM

View PostJr. Pac, on Tue Jul 26, 2011 5:29 PM, said:

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?

#16 Jr. Pac OFFLINE  

Jr. Pac

    Dragonstomper

  • 775 posts
  • 1/4 of the fun with an Atari cart is cleaning it.
  • Location:In my room with my 2600.

Posted Tue Jul 26, 2011 5:43 PM

I don't think you have me the info I need. Try the test and see.

#17 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

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

Posted Tue Jul 26, 2011 6:04 PM

View PostJr. Pac, on Tue Jul 26, 2011 5:43 PM, said:

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.

#18 Jr. Pac OFFLINE  

Jr. Pac

    Dragonstomper

  • 775 posts
  • 1/4 of the fun with an Atari cart is cleaning it.
  • Location:In my room with my 2600.

Posted Tue Jul 26, 2011 7:03 PM

Please! That would be great!

#19 Jr. Pac OFFLINE  

Jr. Pac

    Dragonstomper

  • 775 posts
  • 1/4 of the fun with an Atari cart is cleaning it.
  • Location:In my room with my 2600.

Posted Fri Jul 29, 2011 5:05 PM

... Anybody have the answer to the odd controls?

#20 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

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

Posted Fri Jul 29, 2011 5:09 PM

View PostJr. Pac, on Fri Jul 29, 2011 5:05 PM, said:

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

#21 Jr. Pac OFFLINE  

Jr. Pac

    Dragonstomper

  • 775 posts
  • 1/4 of the fun with an Atari cart is cleaning it.
  • Location:In my room with my 2600.

Posted Fri Jul 29, 2011 5:49 PM

View PostRandom Terrain, on Fri Jul 29, 2011 5:09 PM, said:

View PostJr. Pac, on Fri Jul 29, 2011 5:05 PM, said:

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

#22 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

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

Posted Sat Jul 30, 2011 1:32 PM

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.

#23 Jr. Pac OFFLINE  

Jr. Pac

    Dragonstomper

  • 775 posts
  • 1/4 of the fun with an Atari cart is cleaning it.
  • Location:In my room with my 2600.

Posted Sat Jul 30, 2011 1:47 PM

Whichever one will work with this maze and it has correct control feel. :)

#24 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

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

Posted Sun Jul 31, 2011 10:16 AM

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.

#25 Jr. Pac OFFLINE  

Jr. Pac

    Dragonstomper

  • 775 posts
  • 1/4 of the fun with an Atari cart is cleaning it.
  • Location:In my room with my 2600.

Posted Sun Jul 31, 2011 10:19 AM

:D 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 by Jr. Pac, Sun Jul 31, 2011 10:19 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users