So this is Ice ball. You are the red ball. You control yourself with the left and right arrow key. You may not hit the walls or the green balls. There are three big green balls. They move and bounce between the walls. You see your score on top!
sync on:s=60:randomize timer():hide mouse:make object plain 1,110,110:rotate object 1,90,0,0:for a=2 to 5:make object plain a,110,20:color object a,rgb(20,90,60):next a
rotate object 4,0,90,0:rotate object 5,0,90,0:position object 4,-50,0,0:position object 5,50,0,0:position object 2,0,0,-50:position object 3,0,0,50
make object sphere 6,2: position object 6,-45,1,0:color object 6,rgb(255,0,0):make object plain 7,2,2:color object 7,rgb(0,0,255):rotate object 6,0,90,0
make object sphere 8,5:position object 8,45,2.5,-45:color object 8,rgb(0,255,0):make object sphere 9,5:position object 9,45,2.5,-45:color object 9,rgb(120,160,20):make object sphere 10,5:position object 10,45,2.5,-45:color object 10,rgb(0,255,230)
color backdrop rgb(0,0,60):do:position camera -49,9,-49:point camera object position x(6),object position y(6),object position z(6)
if leftkey()=1 then yrotate object 6,wrapvalue(object angle y(6)-10)
if rightkey()=1 then yrotate object 6,wrapvalue(object angle y(6)+10)
rotate object 7,object angle x(6),object angle y(6),object angle z(6):position object 7,object position x(6),object position y(6),object position z(6):move object 6,0.75:move object 7,2.5
if object collision(6,0)>1 then sync:set camera view 0,0,1,1:center text 320,0,"You have a score of: "+str$(int(score#)):sync:suspend for key:end
for a=8 to 10:move object a,1.5
if object collision(a,0)<>6 and object collision(a,0)<>7 and object collision(a,0)>1 then yrotate object a,rnd(360)
if object position x(a)>50 then position object a,45,2.5,object position z(a)
if object position x(a)<-50 then position object a,-45,2.5,object position z(a)
if object position z(a)>50 then position object a,object position x(a),2.5,45
if object position z(a)<-50 then position object a,object position x(a),2.5,-45
next a:set text size 24:set text font "verdana":center text 320,0,"You have a score of: "+str$(int(score#)):score#=score#+0.1
if s#=150 then d=1
if s#=0 then d=0
if d=1 then s#=s#-1
s#=s#+0.5:color backdrop rgb(0,0,int(s#)):sync:loop
Pentium IV 2.4 GHZ 256 MB Ram Geforce 4 TI 4200 128 MB
www.cuso.tk