source: 2015/23/OskuL/hieno peli/hieno peli/hieno_peli/hieno_peli.cs @ 5861

Revision 5861, 768 bytes checked in by jotapoti, 5 years ago (diff)

harjoitteluja

Line 
1using System;
2using System.Collections.Generic;
3using Jypeli;
4using Jypeli.Assets;
5using Jypeli.Controls;
6using Jypeli.Effects;
7using Jypeli.Widgets;
8
9public class hieno_peli : PhysicsGame
10{
11    public override void Begin()
12    {
13        PhysicsObject pallo = new PhysicsObject(100,100);
14            pallo.Shape= Shape.Circle;
15        pallo.Color = Color.BloodRed;
16        Add(pallo);
17        PhoneBackButton.Listen(ConfirmExit, "Lopeta peli");
18        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli");
19
20        PhysicsObject pallo2 = new PhysicsObject(100, 100);
21        pallo2.Shape = Shape.Circle;
22        pallo2.X = 12;
23        pallo2.Y = 12;
24        pallo2.Color = Color.Gray;
25        Add(pallo);
26    }
27}
Note: See TracBrowser for help on using the repository browser.