Changeset 3011 for 2012/23/JimB/FPS/FPS/FPS/FPS/FPS.cs
- Timestamp:
- 2012-06-13 20:53:11 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2012/23/JimB/FPS/FPS/FPS/FPS/FPS.cs
r2898 r3011 31 31 Dictionary<Color, Label> PlayerX = new Dictionary<Color, Label>(); 32 32 bool onkoPeliFullS = false; //fullscreen, 0 false, 1 true. 33 34 33 35 void ResetPelaajat() //resetoi pelaajien määrän neljään uuden pelin aloituksessa. 34 36 { 35 37 Pelaajat = new IntMeter(4); 36 38 } 39 37 40 38 41 /// <summary> … … 48 51 } 49 52 53 PlayerX.Remove(Color.Blue); 54 PlayerX.Remove(Color.Yellow); 55 PlayerX.Remove(Color.Red); 56 PlayerX.Remove(Color.Purple); 57 58 addcolorlib(); 59 LuoKentta(); //kutsutaan kentänluonti 60 Veri(); //kutsutaan veripartikkelit 61 62 MediaPlayer.Play(RandomGen.SelectOne<string>("music\\M1","music\\M2", "music\\M3", "music\\M4", "music\\M5", "music\\M6", "music\\M7", "music\\M8")); 63 MediaPlayer.Volume = 0.5; 64 65 MessageDisplay.Add(" F1 - Näytä Ohjaimet"); //lisätään viestilaatikkoon ohje. 66 Keyboard.Listen(Key.F1, ButtonState.Pressed, Ohjeet, "Näytä ohjaimet"); //Kutsutaan Ohjeet 67 Keyboard.Listen(Key.F11, ButtonState.Pressed, Fullscreen,null); 68 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 69 } 70 void addcolorlib() 71 { 50 72 PlayerX.Add(Color.Blue, new Label()); 51 73 PlayerX.Add(Color.Yellow, new Label()); 52 74 PlayerX.Add(Color.Red, new Label()); 53 75 PlayerX.Add(Color.Purple, new Label()); 54 55 LuoKentta(); //kutsutaan kentänluonti 56 Veri(); //kutsutaan veripartikkelit 57 58 MediaPlayer.Play(RandomGen.SelectOne<string>("music\\M1","music\\M2", "music\\M3", "music\\M4", "music\\M5", "music\\M6", "music\\M7", "music\\M8")); 59 MediaPlayer.Volume = 0.5; 60 61 MessageDisplay.Add(" F1 - Näytä Ohjaimet"); //lisätään viestilaatikkoon ohje. 62 Keyboard.Listen(Key.F1, ButtonState.Pressed, Ohjeet, "Näytä ohjaimet"); //Kutsutaan Ohjeet 63 Keyboard.Listen(Key.F11, ButtonState.Pressed, Fullscreen,null); 64 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 65 } 76 } 77 //void removecolorlib() 78 //{ 79 // PlayerX.Remo(Color.Blue, new Label()); 80 // PlayerX.Add(Color.Yellow, new Label()); 81 // PlayerX.Add(Color.Red, new Label()); 82 // PlayerX.Add(Color.Purple, new Label()); 83 //} 66 84 67 85 void Fullscreen()
Note: See TracChangeset
for help on using the changeset viewer.