Revision 2948,
687 bytes
checked in by juiitamm, 9 years ago
(diff) |
Talletus.
|
Line | |
---|
1 | using System; |
---|
2 | using System.Collections.Generic; |
---|
3 | using Jypeli; |
---|
4 | using Jypeli.Assets; |
---|
5 | using Jypeli.Controls; |
---|
6 | using Jypeli.Effects; |
---|
7 | using Jypeli.Widgets; |
---|
8 | |
---|
9 | public 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.