Jump to content
IGNORED

Syntax Error- Help!


New Guy

Recommended Posts

I started a new project in Visual Batari Basic, and both projects wont recompile, and ends up with a syntax error. Should I post the code I'm using to get some help.

 

That would be best. I'm sure one of the code wizards around here will help you. :)

 

rem Generated 12/6/2010 4:34:59 PM by Visual bB Version 1.0.0.548

rem **********************************

rem *<filename> *

rem *<description> *

rem *<author> *

rem *<contact info> *

rem *<license> *

rem **********************************

playfield:

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

................................

................................

................................

................................

................................

................................

................................

................................

................................

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

end

 

COLUBK = $C6

COLUPF = $26

player0x=50:player0y=50

player1x=20:player1y=20

player0:

011100

011000

011000

011110

011011

011000

011100

011000

end

 

player1:

%01000010

111100

%01000010

%01011010

%01011010

%01000010

111100

011000

end

 

draw_loop

drawscreen

goto draw_loop

 

 

I'm using a tutorial, and it stops working after I place the code for the characters.

Edited by New Guy
Link to comment
Share on other sites

the problem should come from the players' data:

 

player1:

0000000

0101010

1111111

1010101

0000000

0101010

1111111

1010101

end

 

don't forget the indentation (the spaces before lining the 1 and 0) and the END is not indented

players must be 8 width but of any heights

 

Keep creating, you won't regret it.

 

Edit

change 0 and 1 (I forgot the playfield works with X and . :$ )

Edited by abaudrand
Link to comment
Share on other sites

  • 5 years later...

Greetings, all. It seems this forum hasn't been touched in some time, but I have a dire question and I can't find any answers on the Internet after my hours of searching. A note before I list the problem: All of my files, Batari Basic, Visual BB, and DASM are up to date. Every time that I try to compile something it says that a syntax error is occurring at line 0 column 0. And this is with any text! It could be REM statement or even a blank, it doesn't change, and it's the only error that pops up. My .bas file is included

default.bas

Link to comment
Share on other sites

Greetings, all. It seems this forum hasn't been touched in some time . . .

You're posting in a thread that somebody else created back in 2010. You can post your own threads in the actual batari Basic forum here:

 

atariage.com/forums/forum/65-batari-basic/

 

About the problem with your code, some of your lines are not indented. You can read more about that here:

 

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...