source: 2017/30/MikkoH/TatunEkaPeli/TatunEkaPeli/TatunEkaPeli/TatunEkaPeli.cs @ 9322

Revision 9322, 649 bytes checked in by tajosepp, 23 months 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 TatunEkaPeli : PhysicsGame
10{
11    public override void Begin()
12    {
13        PhysicsObject pallo = new PhysicsObject(40,40);
14        pallo.Shape = Shape.Circle;
15        pallo.Color = Color.HotPink;
16        Add(pallo);
17
18        pallo.Hit(new Vector(100, 100));
19        Level.CreateBorders();
20           
21
22        PhoneBackButton.Listen(ConfirmExit, "Lopeta peli");
23        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli");
24    }
25}
Note: See TracBrowser for help on using the repository browser.