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 JokuEeppinenNimi : PhysicsGame |
---|
10 | { |
---|
11 | Image Sotamies1 = LoadImage("Sotamies1"); |
---|
12 | |
---|
13 | public override void Begin() |
---|
14 | { |
---|
15 | |
---|
16 | Level.CreateBorders(); |
---|
17 | IsFullScreen = true; |
---|
18 | LuoKentta(); |
---|
19 | LuoSotamies(Sotamies1); |
---|
20 | |
---|
21 | PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); |
---|
22 | Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); |
---|
23 | } |
---|
24 | void LuoKentta() |
---|
25 | { |
---|
26 | Level.Background.Color = Color.White; |
---|
27 | //jakemappi.SetTileMethod('*', LuoSotamies1); |
---|
28 | //jakemappi.SetTileMethod('?', LuoSotamies2); |
---|
29 | //jakemappi.SetTileMethod('^', LuoSotamies3); |
---|
30 | //jakemappi.SetTileMethod('I', LuoSeina); |
---|
31 | } |
---|
32 | |
---|
33 | void LuoSotamies(Image kuva) |
---|
34 | { |
---|
35 | PhysicsObject Sotamies1 = new PhysicsObject('*', '*'); |
---|
36 | Sotamies1.Shape = Shape.Circle; |
---|
37 | Sotamies1.Image = kuva; |
---|
38 | Add(Sotamies1); |
---|
39 | } |
---|
40 | void tainaeifiilannu() |
---|
41 | { |
---|
42 | //Kun jotain ammutaan, aliohjelma |
---|
43 | } |
---|
44 | void LuoSeina() |
---|
45 | { |
---|
46 | |
---|
47 | } |
---|
48 | |
---|
49 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.