source: 2011/26/LinusV/SFN/SFN-säätöä/SFN-säätöä/SFN-säätöä/Peli.cs @ 2177

Revision 2177, 662 bytes checked in by lijiolva, 10 years ago (diff)
Line 
1using System;
2using System.Collections.Generic;
3using Jypeli;
4using Jypeli.Assets;
5using Jypeli.Controls;
6using Jypeli.Effects;
7using Jypeli.Widgets;
8
9public class Peli : PhysicsGame
10{
11    Automobile kaara;
12    int engine;
13    public override void Begin()
14    {
15        Keyboard.Listen(Key.Escape, ButtonState.Released, Exit, null);
16        Window.AllowUserResizing = true;
17        kaara = new Automobile(100, 50);
18        engine = 1;
19        Add(kaara);
20        Mouse.IsCursorVisible = true;
21        Keyboard.Listen(Key.Up, ButtonState.Down, kaasu, null);
22    }
23
24    public void kaasu()
25    {
26        //kaara.Push(power);
27    }
28}
Note: See TracBrowser for help on using the repository browser.