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 | /* |
---|
10 | Ase1 Vihreä 1.00x -> 1.00 x 20hp / 1s -> 20.00hp / 1s (10.00hp / osuma) |
---|
11 | Ase1 Keltainen 1.25x -> 1.25 x 20hp / 1s -> 25.00hp / 1s (12.50hp / osuma) |
---|
12 | Ase1 Punainen 1.50x -> 1.50 x 20hp / 1s -> 30.00hp / 1s (15.00hp / osuma) |
---|
13 | |
---|
14 | Ase2 Vihreä 1.00x -> 1.00 x 25hp / 1s -> 25.00hp / 1s (25.00hp / osuma) |
---|
15 | Ase2 Keltainen 1.25x -> 1.25 x 25hp / 1s -> 31.25hp / 1s (31.25hp / osuma) |
---|
16 | Ase2 Punainen 1.50x -> 1.50 x 25hp / 1s -> 37.50hp / 1s (37.50hp / osuma) |
---|
17 | |
---|
18 | Ase3 Vihreä 1.00x -> 1.00 x 30hp / 1s -> 30.00hp / 1s (60.00hp / osuma) |
---|
19 | Ase3 Keltainen 1.25x -> 1.25 x 30hp / 1s -> 37.50hp / 1s (75.00hp / osuma) |
---|
20 | Ase3 Punainen 1.50x -> 1.50 x 30hp / 1s -> 45.00hp / 1s (90.00hp / osuma) |
---|
21 | |
---|
22 | * |
---|
23 | |
---|
24 | Sotilas Vihreä 0.50x -> 0.50 x 20hp / 1s -> 10.00hp / 1s (5.00hp / osuma) |
---|
25 | Sotilas Keltainen 0.75x -> 0.75 x 20hp / 1s -> 15.00hp / 1s (7.50hp / osuma) |
---|
26 | Sotilas Punainen 1.00x -> 1.00 x 20hp / 1s -> 20.00hp / 1s (10.0hp / osuma) |
---|
27 | |
---|
28 | Tankki Vihreä 0.50x -> 0.50 x 25hp / 1s -> 12.50hp / 1s (12.50hp / osuma) |
---|
29 | Tankki Keltainen 0.75x -> 0.75 x 25hp / 1s -> 18.75hp / 1s (18.75hp / osuma) |
---|
30 | Tankki Punainen 1.00x -> 1.00 x 25hp / 1s -> 25.00hp / 1s (25.00hp / osuma) |
---|
31 | |
---|
32 | Tykki Vihreä 0.50x -> 0.50 x 30hp / 1s -> 15.0hp / 1s (30.00hp / osuma) |
---|
33 | Tykki Keltainen 0.75x -> 0.75 x 30hp / 1s -> 22.5hp / 1s (45.00hp / osuma) |
---|
34 | Tykki Punainen 1.00x -> 1.00 x 30hp / 1s -> 30.0hp / 1s (60.00hp / osuma) |
---|
35 | */ |
---|
36 | |
---|
37 | public class WarTrain : PhysicsGame |
---|
38 | { |
---|
39 | public static WarTrain Peli; |
---|
40 | |
---|
41 | public override void Begin() |
---|
42 | { |
---|
43 | Peli = this; |
---|
44 | LuoValikko(); |
---|
45 | } |
---|
46 | |
---|
47 | void LuoValikko() |
---|
48 | { |
---|
49 | |
---|
50 | } |
---|
51 | |
---|
52 | void LuoKentta(string kentta) |
---|
53 | { |
---|
54 | PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); |
---|
55 | Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); |
---|
56 | |
---|
57 | } |
---|
58 | |
---|
59 | void LuoJuna() |
---|
60 | { |
---|
61 | Juna juna = new Juna(100, LoadImage("Junaveturi")); |
---|
62 | } |
---|
63 | } |
---|