View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide

olympics

//______olympics 2000
//sc3d5
//jr 2/01
(
var x, v, o;
x = GUIScreen.new("olympics", Rect.newBy(30,50,400,300));
x.view = View.new(Pen(action: \fill, backColor: Color.black), 

        [ 
                Rect.newBy(0,0,600,800),
                v =  View.new
                
         ]);


15.do({ v.items  = v.items.add(TextBox(Pen(textSize: 9, action: \fill,
foreColor: Color.green), Rect.newBy(400.rand, 295 + 5.rand2, 20, 10),
500.0.rand.asString) )});
                        
o = OffsetPix.new(nil, 100, 40);
v.items.add(o);
x.sched(0, inf, { 
        o.x = o.x + 3.rand2;
        o.y = o.y + 3.rand;
        if(0.07.coin, { v.items = v.items.scramble });
        x.refresh; 
        0.01
});
)






Links to this Page