source: 2010/31/tutohaml/pong/Peli.cs @ 1521

Revision 1521, 458 bytes checked in by paaaanro, 10 years ago (diff)
RevLine 
[1521]1using System;
2using Jypeli;
3using Jypeli.Widgets;
4using Jypeli.Assets;
5
6public class Peli : PhysicsGame
7{
8    protected override void Begin()
9    {
10
11        PhysicsObject pallo = new PhysicsObject(40.0, 40.0);
12        pallo.Shape = Shapes.Circle; pallo.X= -200.0; pallo.Y= 0.0;
13        Vector impulssi = new Vector(5500.0, 0.0);
14        pallo.Hit(impulssi);
15        Level.CreateBorders(1.0 false );
16       
17        Add(pallo);
18    }
19}
Note: See TracBrowser for help on using the repository browser.