- Timestamp:
- 2015-06-24 13:11:52 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/30/MitjaK/Attack to Agora/Attack to Agora/Attack to Agora/Attack to Agora/Attack_to_Agora.cs
r6246 r6249 6 6 using Jypeli.Effects; 7 7 using Jypeli.Widgets; 8 using Microsoft.Xna.Framework.Content; 8 9 9 10 public class Attack_to_Agora : PhysicsGame … … 14 15 /// Vakiot kannattaa merkitä constiksi (ei voi muuttaa). Tällöin ne kirjoitetaan isolla. 15 16 /// </summary> 16 const double NOPEUS = 250;17 const double NOPEUS = 500; // 250 17 18 const double HYPPYVOIMA = 1500; 18 19 … … 23 24 PlatformCharacter taistelija; 24 25 25 int kenttaNro = 5; 26 int kenttaNro = 1; 27 28 /// <summary> 29 /// Viimeisen pelissä olevan kentän indeksi. 30 /// </summary> 31 const int VIIMEINEN_KENTTA = 9; 26 32 27 33 public override void Begin() … … 56 62 Gravity = new Vector(0, -2500); 57 63 58 SetWindowSize(1920, 1080);59 64 // Synkataan taustakuvan ja colortilemapin pikselit 60 65 Level.Background.Image = LoadImage("kentta" + kenttaNro.ToString()); … … 166 171 ClearAll(); 167 172 kenttaNro++; 168 LuoKentta(); 173 174 if (kenttaNro > VIIMEINEN_KENTTA) 175 { 176 VoititPelin(); 177 } 178 179 else 180 { 181 LuoKentta(); 182 AsetaOhjaimet(); 183 } 169 184 } 170 185 … … 187 202 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 188 203 } 204 205 void VoititPelin() 206 { 207 208 } 189 209 }
Note: See TracChangeset
for help on using the changeset viewer.