- Timestamp:
- 2011-06-10 11:33:09 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/23/vikeisal/SpyInTheBase/SpyInTheBase/SpyInTheBase/Peli.cs
r1875 r1878 33 33 SoundEffect coinAani = LoadSoundEffect("coinaani"); 34 34 SoundEffect spydie = LoadSoundEffect("spydie"); 35 36 35 37 IntMeter pisteLaskuri; 36 38 List<Label> valikonKohdat; … … 45 47 { 46 48 tuhoutuvat = new List<GameObject>(); 49 47 50 48 51 Gravity = new Vector(0, -1250); … … 203 206 Level.BackgroundColor = Color.Black; 204 207 Level.Background.CreateStars(); 205 208 MediaPlayer.Play("taustamusiikki"); 206 209 MessageDisplay.TextColor = Color.White; 207 210 } … … 228 231 Level.BackgroundColor = Color.Black; 229 232 Level.Background.CreateStars(); 233 MediaPlayer.Play("taustamusiikki"); 230 234 } 231 235 … … 399 403 400 404 Label naytto = new Label("Kaappasit vihollisen tiedot!"); 405 MediaPlayer.Stop(); 401 406 naytto.Position = Vector.Zero; 402 407 naytto.TextColor = Color.Green; … … 456 461 timer.Stop(); 457 462 Label naytto = new Label("GAME OVER! AIKASI LOPPUI! YOU FAILED!"); 463 MediaPlayer.Stop(); 458 464 naytto.Position = Vector.Zero; 459 465 naytto.TextColor = Color.Red; … … 611 617 kohde.Destroy(); 612 618 spydie.Play(); 619 MediaPlayer.Stop(); 613 620 Label naytto = new Label("GAME OVER! KUOLIT! YOU FAILED!"); 614 621 naytto.Position = Vector.Zero;
Note: See TracChangeset
for help on using the changeset viewer.