Rem Project: BREAKOUT
Rem Created: 12/29/2003 10:08:04 PM
Rem ***** Main Source File *****
`Game rmake by Gerrit C.
`Loading text
set cursor screen width()/2,screen height()/2
print "loading: ";loading$
`Loads Objects
gosub _load_objects
`Sets ub objects
gosub _setup_objects
`main loop
sync on:do
sync:loop
`loads objects
_load_objects:
`make boxes
for boxmake=1 to 10
make object box boxmake,2,1,1
loading$="/box/";type boxmake as string
next boxmake
loading$="/paddle"
`make paddle
make object box 11,boxsize,1,1
loading$="/skysphere"
make object sphere 12,30
return
`sets up objects
_setup_objects:
for boxnum=1 to 10
if boxnum=5 then boxposy=2
boxpos=boxpos+3
position object boxnum,boxposx,boxposy,0
r = rnd(255):g = rnd(225):b = rnd(225)
color object boxnum,RGB(r,g,b)
next boxnum
return
Whenever I try to run this it says:
#100025: Declaration name" is not valid at line 34
Whats happening, what am I doing wrong, and how can I fix it.
I don't know why this fixed it but I removed some spaces from the code. Also Now that ive fixed it it decides that it "cant close nest at line 40:
Heres the new code:
Rem Project: BREAKOUT
Rem Created: 12/29/2003 10:08:04 PM
Rem ***** Main Source File *****
`Game rmake by Gerrit C.
`Loading text
set cursor screen width()/2,screen height()/2
print "loading: ";loading$
`Loads Objects
gosub _load_objects
`Sets ub objects
gosub _setup_objects
`main loop
sync on:do
sync:loop
`loads objects
_load_objects:
`make boxes
for boxmake=1 to 10
make object box boxmake,2,1,1
loading$="/box/";type boxmake as string
next boxmake
loading$="/paddle"
`make paddle
make object box 11,boxsize,1,1
loading$="/skysphere"
make object sphere 12,30
return
`sets up objects
_setup_objects:
for boxnum=1 to 10
if boxnum=5 then boxposy=2
boxpos=boxpos+3
position object boxnum,boxposx,boxposy,0
r=rnd(200):g=rnd(200):b=rnd(200)
color object boxnum,r,g,b
next boxnum
position object 11,0,7,0
position camera 0,4,3
point camera 0,4,0
return
`whhhhhoooooooooooo \m/ >< \m/
VISIT MY GAME DEV SITE: http://www.neoeden.web1000.com/
VISIT MY APPAREL SITE : http://Cafeshops.com/gerritgear