oops
hide mouse:sync rate 40
make object box 1,3,1,1:color object 1,rgb(255,0,0)
Make object box 5,1,1,1:color object 5,rgb(0,0,255)
Make object box 6,1,1,1:color object 6,rgb(0,0,255)
Make object box 7,1,1,1:color object 7,rgb(0,0,255)
Make object box 8,1,1,1:color object 8,rgb(0,0,255)
Make object box 9,1,1,1:color object 9,rgb(0,0,255)
Make object box 10,1,1,1:color object 10,rgb(0,0,255)
Make object box 11,1,1,1:color object 11,rgb(0,0,255)
Make object box 12,1,1,1:color object 12,rgb(0,0,255)
Make object box 13,1,1,1:color object 13,rgb(0,0,255)
Make object box 14,1,1,1:color object 14,rgb(0,0,255)
Make object box 15,1,1,1:color object 15,rgb(0,0,255)
Make object box 16,1,1,1:color object 16,rgb(0,0,255)
Make object box 17,1,1,1:color object 17,rgb(0,0,255)
Make object box 18,1,1,1:color object 18,rgb(0,0,255)
Make object box 19,1,1,1:color object 19,rgb(0,0,255)
Make object box 20,1,1,1:color object 20,rgb(0,0,255)
Make object box 21,1,1,1:color object 21,rgb(0,0,255)
Make object box 22,1,1,1:color object 22,rgb(0,0,255)
Make object box 23,1,1,1:color object 23,rgb(0,0,255)
make object sphere 3,1:color object 3,rgb(0,0,50)
make object box 4,15,0.1,20:position object 4,0,-0.55,0
balla#=360
bricks#=19
spc$=" "
TXT$="bricks left="
bounce#=0
sync on:do
set cursor 500,100:print txt$+spc$
set cursor 600,100:print bricks#
ballx#=newxvalue(ballx#,balla#,0.3):ballz#=newzvalue(ballz#,balla#,0.3)
IF rightkey()=1 and player1pos#<6 then player1pos#=player1pos#+0.5
IF leftkey()=1 and player1pos#>-6 then player1pos#=player1pos#-0.5
if rightkey()=1 and ballz#>9 and ballz#<9.5 then balla#=balla#+8
if leftkey()=1 and ballz#>9 and ballz#<9.5 then balla#=balla#-8
if ballx#>6 and ballx#<6.5 then balla#=360-balla#
if ballx#<-6 and ballx#>-6.5 then balla#=360-balla#
if ballz#<-9 and ballz#>-9.5 then balla#=180-balla#
if ballz#>9 and ballz#<9.5 and ABS(player1pos#-ballx#)<1.5:balla#=180-balla#:bounce#=1:endif
if ballz#>12:ballx#=ballx#-ballx#:ballz#=ballz#-ballz#:player1pos#=player1pos#-player1pos#:endif
if
balla#=wrapvalue(balla#)
position object 1,player1pos#,0,10
position object 5,2,0,1
position object 6,1,0,1
position object 20,1,0,2
position object 21,2,0,2
position object 7,-1,0,2
position object 8,-2,0,2
position object 16,-1,0,1
position object 17,-2,0,1
position object 9,0,0,0
position object 10,2,0,-1
position object 11,1,0,-1
position object 18,1,0,-2
position object 19,2,0,-2
position object 12,-2,0,-1
position object 13,-1,0,-1
position object 14,-2,0,-2
position object 15,-1,0,-2
position object 22,0,0,1
position object 23,0,0,-1
position object 3,ballx#,0,ballz#:yrotate object 3,balla#
position camera 0,20,0:point camera 0,0,0
sync:loop
Ling creckt tsi nocreckto havela? NASA chetallnar mo lu'ul nasding!