source: 2015/24/MikeJ/vara scripts.txt @ 9286

Revision 5910, 443 bytes checked in by mijarvin, 4 years ago (diff)

pong

Line 
1 void LiikutaMailaYlos()
2    {
3        Vector nopeus = new.vector(0, 200);
4        maila.Velocity = nopeus;
5
6    }
7
8    void LiikutaMailaAlas()
9    {
10        Vector nopeus = new.vector(0,-200);
11        maila.Velocity = nopeus;
12    }
13
14    void PysaytaMaila()
15    {
16        Vector nopeus = Vector.Zero;
17        maila.velocity = nopeus;
18    }
19
20
21
22
23luomaila(Level.Left + 20.0, 0.0);
24        luomaila(Level.Right + 20.0, 0.0);
Note: See TracBrowser for help on using the repository browser.