source: 2010/30/tieenyky/Pong/Peli.cs @ 1293

Revision 1293, 612 bytes checked in by tieenyky, 11 years ago (diff)

se vaan on sellanen pong

Line 
1using System;
2using Jypeli;
3using Jypeli.Widgets;
4using Jypeli.Assets;
5
6public class Peli : PhysicsGame
7{
8    protected override void Begin()
9    {
10        PhysicsObject pallo = new PhysicsObject(40.0, 40.0);
11        pallo.Shape = Shapes.Circle;
12        pallo.X = -200.0;
13        pallo.Y = 0.0;
14       
15        Vector impulssi = new Vector(500.0, 0.0);
16        pallo.Hit(impulssi);
17        pallo.Restitution = 1.0;
18       
19        Add( pallo );
20       
21        Level.CreateBorders(1.0, false);
22        Level.BackgroundColor = Color.Black;
23        Camera.ZoomToLevel();
24
25
26    }
27}
Note: See TracBrowser for help on using the repository browser.