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

Revision 2169, 590 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        Window.AllowUserResizing = true;
16        kaara = new Automobile(100, 50);
17        engine = 1;
18        Add(kaara);
19        Mouse.IsCursorVisible = true;
20        Keyboard.Listen(Key.Up, ButtonState.Down, kaasu, null);
21    }
22
23    public void kaasu()
24    {
25        //kaara.Push(power);
26    }
27}
Note: See TracBrowser for help on using the repository browser.