source: 2010/27/Vekakart/Catch The Rainbow/Catch The Rainbow/Peli.cs @ 1129

Revision 1129, 788 bytes checked in by vekakart, 13 years ago (diff)

Lisäsin pelaajan ja rajat

Line 
1using System;
2using Jypeli;
3using Jypeli.Widgets;
4using Jypeli.Assets;
5
6public class Peli : PhysicsGame
7
8{
9    protected override void Begin()
10    {
11        LuoChandler();
12        LuoKentta();
13        AsetaOhjaimet();
14    }
15    void LuoKentta()
16    {
17        Level.CreateBorders ();
18        Gravity = new Vector(0.0, -800.0);
19       
20    }
21
22    void LuoChandler()
23    {
24        PhysicsObject Chandler = new PhysicsObject(20,60);
25        Chandler.Restitution = 0.0;
26        Chandler.X = -450;
27        Chandler.Y = -375;
28        Add (Chandler);
29        return;
30    }
31
32    void AsetaOhjaimet(PhysicsObject Chandler)
33    {
34        Keyboard.Listen(Key.D, ButtonState.Down, PelaajaLiikuEteenpain);
35    }
36    void PelaajaLiikuEteenpain()
37    {
38    }
39}
Note: See TracBrowser for help on using the repository browser.