source: 2017/37/GeoN/randompallo/randompallo/randompallo/randompallo.cs @ 9453

Revision 9453, 759 bytes checked in by rikavila, 22 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 randompallo : PhysicsGame
10{
11    private object pallo;
12
13    public override void Begin()
14    {
15        // TODO: Kirjoita ohjelmakoodisi tähän
16
17        lisaapallo();
18        Level.CreateBorders();
19           
20
21
22        PhoneBackButton.Listen(ConfirmExit, "Lopeta peli");
23        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli");
24    }
25
26    void lisaapallo()
27    {
28
29        PhysicsObject olio = new PhysicsObject(100, 100);
30        olio.Shape = Shape.Circle;
31        olio.Color = Color.Purple; 
32        Add(olio);
33    }
34
35
36}
37 
Note: See TracBrowser for help on using the repository browser.