source: 2014/koodauskerho/38/PietuR/SoHaG/SoHaG/SoHaG/SoHaG.cs @ 6496

Revision 6496, 522 bytes checked in by misakana, 4 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 SoHaG : PhysicsGame
10{
11    public override void Begin()
12    {
13        PhysicsObject Tyyppi = new PhysicsObject(100, 100);
14        Tyyppi.Shape = Shape.Octagon;
15        Add(Tyyppi);
16
17        PhoneBackButton.Listen(ConfirmExit, "Lopeta peli");
18        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli");
19    }
20}
Note: See TracBrowser for help on using the repository browser.