I was looking at your tutorial and I couldn't find a way to have to the ball to move and have the paddle move, so I was looking for other breakout codes and I found a way to get the ball and paddle moving, but I can't get the other blocks to disappear when the ball hits them and after it bounces for a little bit it will disappear.
Here is the source code:
make object box 1,3,0.5,1:position object 1,5,0,player1pos#:color object 1,rgb(0,255,0)
make object box 2,3,0.5,1:position object 2,-5,0,player2pos#:color object 2,rgb(0,255,0)
make object box 3,3,0.5,1:position object 3,10,0,player3pos#:color object 3,rgb(0,255,0)
make object box 4,3,0.5,1:position object 4,-10,0,player4pos#:color object 4,rgb(0,255,0)
make object box 5,3,0.5,1:position object 5,0,0,0:color object 5,rgb(0,255,0)
make object box 6,3,0.5,1:position object 6,-10,0,2:color object 6,rgb(0,0,50)
make object box 7,3,0.5,1:position object 7,10,0,2:color object 7,rgb(0,0,50)
make object box 8,3,0.5,1:position object 8,-5,0,2:color object 8,rgb(0,0,50)
make object box 9,3,0.5,1:position object 9,5,0,2:color object 9,rgb(0,0,50)
make object box 10,3,0.5,1:position object 10,0,0,2:color object 10,rgb(0,0,50)
make object box 11,3,0.5,1:position object 11,-10,0,4:color object 11,rgb(255,0,0)
make object box 12,3,0.5,1:position object 12,10,0,4:color object 12,rgb(255,0,0)
make object box 13,3,0.5,1:position object 13,-5,0,4:color object 13,rgb(255,0,0)
make object box 14,3,0.5,1:position object 14,5,0,4:color object 14,rgb(255,0,0)
make object box 15,3,0.5,1:position object 15,0,0,4:color object 15,rgb(255,0,0)
make object box 16,3,0.5,1:position object 16,0,0,-8:
make object sphere 17,1:position object 17,0,0,-7
balla#=150
position camera 0,18,0:point camera 0,0,0
sync on
do
`ball movment
Ballx#=newxvalue(ballx#,balla#,0.3)
Ballz#=newzvalue(ballz#,balla#,0.3)
IF rightkey()=1 and player1pos#<10 then player1pos#=player1pos#+1.0
IF leftkey()=1 and player1pos#>-10 then player1pos#=player1pos#-1.0
IF rightkey()=1 and Ballx#>9 and ballx#<9.5 then balla#=Balla#+8
If leftkey()=1 and ballx#>9 and Ballx#<9.5 then balla#=Balla#-8
if ballx#>9 and Ballx#<9.5 and ABS(player1pos#-ballx#)<3.5 then balla#=360-Balla#
if ballx#<-9 and ballx#>-9.5 then balla#=360-balla#
If ballz#>9 or Ballz#<-9 then balla#=180-balla#
balla#=wrapvalue(balla#)
position object 16,player1pos#,0,-10
position object 17,ballx#,0,ballz#
yrotate object 17,balla#
sync
loop