Jump to content
IGNORED

Can Someone Have A Look At This Code?


lord_sasquatch

Recommended Posts

Im having a problem in visualbb im getting syntax error line 62 column 33 when i try to compile. This is the first time i have used this program and i am just following a basic tutorial. Im building up to making my own homebrew, sasquatch invaders! Probably something obvious that is wrong but i cant find it. Code Below, Thanks

 

I will also attach the file of the game so you can have a look more easily.

 

 

rem Generated 10/12/2014 19:36:26 by Visual bB Version 1.0.0.554
rem **********************************
rem *<filename> *
rem *<description> *
rem *<author> *
rem *<contact info> *
rem *<license> *
rem **********************************
playfield:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
................................
................................
................................
................................
................................
................................
................................
................................
................................
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
end
COLUBK = $66
COLUPF = $D8
missile0height=4:missile0y=255
NUSIZO = 16
sprites
player0x=50
player0y=50
player1x=20
player1y=20
player0:
%01111100
%11111110
%01111100
%01010100
%01010100
%01111100
%00111000
%00000000
end
player1:
%00101000
%00111000
%10010010
%10010010
%11111110
%00111000
%00111000
%00111000
end
if missile0y>240 then goto skip
missile0y = missile0y-2;goto draw_loop
skip
if joy0fire then missile0y=player0y-2:missile0x=player0x+4
draw_loop
drawscreen
goto sprites

default.bas

Link to comment
Share on other sites

Also you entered NUSIZO instead of NUSIZ0. (The last character should be the number zero instead of the letter O)

 

Using jEdit can help you see problems like that. The first 2 screenshots in that post show the visual difference between typing RESPO (letter O) and RESP0 (number 0, as it should be).

Link to comment
Share on other sites

Using jEdit can help you see problems like that. The first 2 screenshots in that post show the visual difference between typing RESPO (letter O) and RESP0 (number 0, as it should be).

 

When Enable Syntax Checking is turned on in Visual batari Basic, the same thing happens. NUSIZ0 is color coded when a zero is used and not color coded when the letter O is used.

 

 

 

Figured it out I forgot to indent a couple of lines. Thanks for all the help!

 

Yep, that's what this post said:

 

This is probably the problem for more than just one line of code:

 

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