- Timestamp:
- 2013-06-06 10:00:48 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2013/23/LeoS/Tasohyppelypeli2.cs
r3975 r3987 11 11 public IntMeter hpLaskuri; 12 12 public String alushousujenVari; 13 13 14 14 15 public Kytta(double width, double height, int hp) … … 52 53 elamaPalkki.BorderColor = Color.Black; 53 54 Add(elamaPalkki); 55 54 56 55 57 snoopdogg = new PlatformCharacter(80, 80); … … 73 75 Keyboard.Listen(Key.A, ButtonState.Down, Ammu, null, snoopdogg); 74 76 Keyboard.Listen(Key.Z, ButtonState.Released, JuoPotion, null); 77 Keyboard.Listen(Key.E, ButtonState.Down, Pusauta, null); 78 Keyboard.Listen(Key.Q, ButtonState.Down, Jatka, null); 75 79 Camera.Follow(snoopdogg); //näppäinkomennot 76 80 } 77 81 82 void Pusauta() 83 { 84 IsPaused = true; 85 } 86 87 void Jatka() 88 { 89 IsPaused = false; 90 } 91 92 78 93 void AmmusOsui(PhysicsObject ammus, PhysicsObject kohde) 79 94 { … … 216 231 kyttaAse.Brain = aivot; 217 232 Timer ajastin = new Timer(); 218 ajastin.Interval = 3.0;233 ajastin.Interval = 1.0; 219 234 ajastin.Timeout += delegate { TarkistaAmpuuko(kyttaAse); }; 220 235 ajastin.Start();
Note: See TracChangeset
for help on using the changeset viewer.