source: 2010/24/satusuit/ponk/Peli.cs @ 816

Revision 816, 705 bytes checked in by juiitamm, 10 years ago (diff)

mailoihin asti ja lisäsin eri asioita

Line 
1using System;
2using Jypeli;
3using Jypeli.ScreenObjects;
4using Jypeli.Assets;
5
6public class Peli : PhysicsGame
7{
8
9    protected override void Begin()
10    {
11
12        //TODO: Alusta peli tässä
13        PhysicsObject pallo = new PhysicsObject(50, 50);
14        Add(pallo);
15
16        pallo.Shape = Shapes.Circle;
17        Vector impulssi = new Vector(500.0, 0.0);
18        pallo.Hit(impulssi);
19        Level.CreateBorders();
20        pallo.Restitution = 1.0;
21        Level.CreateBorders(1.0, false);
22        Camera.ZoomToLevel();
23        PhysicsObject maila = PhysicsObject.CreateStaticObject(20.0, 100.0);
24        maila.Shape = Shapes.Rectangle;
25
26
27    }
28
29    void LuoKentta()
30}
31
Note: See TracBrowser for help on using the repository browser.