source: 2010/31/niostuom/Lumiukko/Peli.cs @ 1670

Revision 1562, 416 bytes checked in by paaaanro, 10 years ago (diff)
Line 
1using System;
2using Jypeli;
3using Jypeli.Widgets;
4using Jypeli.Assets;
5
6public class Peli : PhysicsGame
7{
8    protected override void Begin()
9    {
10        LuoPallo (20, 10);
11    }
12    void LuoPallo(double x, double y)
13    {
14        PhysicsObject pallo = new PhysicsObject(80.0, 80.0);
15        pallo.Shape = Shapes.Circle;
16        pallo.Position = new Vector(x, y);
17        Add(pallo);
18    }
19}
Note: See TracBrowser for help on using the repository browser.