source: 2012/27/EemilK/Survive untill U die!/Survive untill U die!/Survive untill U die!/Survive_untill_U_die_.cs @ 3475

Revision 3475, 848 bytes checked in by eekrkolu, 8 years ago (diff)

Talletus.

Line 
1using System;
2using System.Collections.Generic;
3using Jypeli;
4using Jypeli.Assets;
5using Jypeli.Controls;
6using Jypeli.Effects;
7using Jypeli.Widgets;
8
9public class Survive_untill_U_die_ : PhysicsGame
10{
11    public override void Begin()
12    {
13
14
15        // TODO: Kirjoita ohjelmakoodisi tähän
16        PhysicsObject pallo;
17        pallo = new PhysicsObject(170, 170);
18        pallo.Shape = Shape.Circle;
19        pallo.X = -240;
20        pallo.Y = -200;
21        Add(pallo);
22        PhysicsObject pallo2;
23        pallo2 = new PhysicsObject(170, 170);
24        pallo2.Shape = Shape.Circle;
25        pallo2.X = 240;
26        pallo2.Y = -200;
27        Add(pallo2);
28
29        PhoneBackButton.Listen(ConfirmExit, "Lopeta peli");
30        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli");
31    }
32}
33 
34
Note: See TracBrowser for help on using the repository browser.