Jump to content

Photo

Game won't compile, can't figure out issue (syntax error, no warnings)

batari basic

4 replies to this topic

#1 8-bit_d-boy OFFLINE  

8-bit_d-boy

    Space Invader

  • 47 posts

Posted Sat Jul 22, 2017 3:49 PM

So I'm making an air hockey game in bB, and it was going fine for a while until it wasn't and I can't figure out why.

It says it's a syntax error at like 193, column 0, but I can't for the life of me figure out what the problem is with it. 

 

Source attached, go nuts. Feel free to ask any questions.

Attached Files



#2 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

  • 28,014 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Sat Jul 22, 2017 9:58 PM

Change this:

 

   if scoring == 61 then bdx = 8 : ballx = ballx + bvx
   if scoring == 61 then bdy = 8 : bally = bally + bvy

 

To this:

 

   if scoring = 61 then bdx = 8 : ballx = ballx + bvx
   if scoring = 61 then bdy = 8 : bally = bally + bvy

 

When I tried to compile your program before making any changes, I got this message:

 

2600 Basic compilation failed!
LINE --> complex condition detected
--VERBOSE ERROR MESSAGE --
batari Basic v1.01dreveng37 (C)2005-2014
(225) Error: invalid operator: 61

 

Do you have the latest version of batari Basic?

 

randomterrain.com/atari-2600-memories-batari-basic-commands.html#gettingstarted



#3 8-bit_d-boy OFFLINE  

8-bit_d-boy

    Space Invader

  • Topic Starter
  • 47 posts

Posted Sat Jul 22, 2017 10:29 PM

Hey, that fixed it, thanks!

 

Now to get the ball(puck) moving again.



#4 kdgarris ONLINE  

kdgarris

    Chopper Commander

  • 129 posts

Posted Tue Jul 25, 2017 3:45 PM

As a side note, my first attempt at making an Atari game was an air hockey game. I ended up abandoning it, but I'm looking forward to seeing what you come up with. I think it could be a good advanced pong like game, with two dimensions of paddle movement, and variable puck speeds.

#5 8-bit_d-boy OFFLINE  

8-bit_d-boy

    Space Invader

  • Topic Starter
  • 47 posts

Posted Tue Jul 25, 2017 4:09 PM

I think it could be a good advanced pong like game, with two dimensions of paddle movement, and variable puck speeds.

 

My thoughts exactly, especially if I can figure out circular collision-reflections.

I already have it so that holding the fire button moves the "paddle" faster, and I'm thinking of having the difficulty switches change the controller layout from right-handed to left-handed.

 

Maybe Color-BW switch will be a Pause or NTSC to PAL switch.

 

Not sure what other game variations there could be, so maybe Game Select could toggle pause.







Also tagged with one or more of these keywords: batari basic

0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users