source: 2012/24/EemeliKo/Testi/Bird jump/Bird jump/Bird_jump.cs @ 2946

Revision 2946, 680 bytes checked in by juiitamm, 9 years ago (diff)

Talletus.

RevLine 
[2946]1using System;
2using System.Collections.Generic;
3using Jypeli;
4using Jypeli.Assets;
5using Jypeli.Controls;
6using Jypeli.Effects;
7using Jypeli.Widgets;
8
9public class Bird_jump : PhysicsGame
10{
11
12   
13
14    public override void Begin()
15    {
16
17       
18
19
20       
21
22        PhysicsObject lintu = new PhysicsObject(40.0, 40.0);
23        Add(lintu);
24
25        lintu.Restitution = 1.0;
26
27        Level.CreateBorders(1.0, true);
28
29        PhoneBackButton.Listen(ConfirmExit, "Lopeta peli");
30        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli");
31
32        Gravity = new Vector(0.0, 99999.0);
33
34        // 40
35
36       
37    }
38}
Note: See TracBrowser for help on using the repository browser.