source: 2012/27/MiloH/Helicopter criminal/Helicopter criminal/Helicopter criminal/Helicopter_criminal.cs @ 3479

Revision 3479, 815 bytes checked in by mianheha, 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 Helicopter_criminal : PhysicsGame
10{
11    public override void Begin()
12    {
13        liikkeet();
14
15        PhysicsObject sankari = new PhysicsObject(20, 50);
16        Add(sankari);
17        sankari.Shape = Shape.Circle;
18        Gravity = new Vector(0.0, -800.0);
19        Explosion rajahdys = new Explosion(5489);
20        rajahdys.Position = sankari.Position;
21        Add(rajahdys);
22        rajahdys.ShockwaveColor = Color.DarkRed;
23           
24       
25
26       
27       
28    }
29    void liikkeet()
30    {
31       
32       
33        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli");
34
35    }
36}
Note: See TracBrowser for help on using the repository browser.