Changeset 2716 for 2012/JAO/JaakkoSivill/hyppely/hyppely/hyppely/hyppely.cs
- Timestamp:
- 2012-04-18 12:13:09 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2012/JAO/JaakkoSivill/hyppely/hyppely/hyppely/hyppely.cs
r2714 r2716 12 12 const double hyppyNopeus = 1000; 13 13 const int RUUDUN_KOKO = 40; 14 14 IntMeter pisteLaskuri; 15 15 PlatformCharacter pelaaja1; 16 16 PlatformCharacter pelaaja2; … … 69 69 ClearAll(); 70 70 Gravity = new Vector(0, -1000); 71 71 LuoLaskuri1(); 72 LuoLaskuri2(); 72 73 luoKentta(); 73 74 lisaaNappaimet(); … … 174 175 MessageDisplay.Add("Keräsit tähden!"); 175 176 kohde.Destroy(); 177 pisteLaskuri.Value++; 178 pisteLaskuri.Value += 1; 179 pisteLaskuri.Value = pisteLaskuri.Value + 1; 176 180 } 177 181 } … … 201 205 ControllerOne.Listen(Button.A, ButtonState.Pressed, hyppaa, "Pelaaja hyppää", pelaaja2, hyppyNopeus); 202 206 203 204 } 207 208 } 209 210 211 212 205 213 } 214
Note: See TracChangeset
for help on using the changeset viewer.