`row 1
for t = 1 to 17
make object box t,0.8,0.5,0.8
position object t,-9+t,0,9
color object t,rgb(255,0,0)
next t
`row 2
for y = 18 to 34
make object box y,0.8,0.5,0.8
position object y,-26+y,0,8
color object y,rgb(205,0,0)
next y
`make ball
make object sphere 35,0.5
color object 35,rgb(155,155,155)
position object 35,ballx#,0,ballz#
yrotate object 35,balla#
`make paddle
make object box 36,2,0.5,0.5
color object 36,rgb(0,0,255)
position object 36,player1#,0,-1
`make floor
make object box 37,20,0.1,20
color object 37,rgb(200,200,200)
position object 37,0,-0.5,0
`camera position
position camera 0,10,-10
point camera 0,0,0
`Main Loop
Do
`Calculates ball movement
ballx#=newxvalue(ballx#,balla#,0.3)
ballz#=newzvalue(ballz#,balla#,0.3)
`Updates ACTUAL ball position
position object 35,ballx#,0,ballz#
`block walls for ball
if ballx#>10 then balla#=340-balla#
if ballx#<-10 then balla#=340-balla#
Loop
Next you have to get it to bounce of the sides, i'll give you a hint, you put the collistion data within the
Main Loop