- Timestamp:
- 2012-06-08 13:40:23 (11 years ago)
- Location:
- 2012/23/JimB/FPS/FPS
- Files:
-
- 10 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
2012/23/JimB/FPS/FPS/FPS/FPS/FPS.cs
r2858 r2888 46 46 LuoKentta(); //kutsutaan kentänluonti 47 47 Veri(); //kutsutaan veripartikkelit 48 48 49 MediaPlayer.Play(RandomGen.SelectOne<string>("music\\M1","music\\M2", "music\\M3", "music\\M4", "music\\M5", "music\\M6", "music\\M7", "music\\M8")); 50 MediaPlayer.Volume = 0.5; 51 49 52 MessageDisplay.Add("F1 - Näytä Ohjaimet"); //lisätään viestilaatikkoon ohje. 50 53 Keyboard.Listen(Key.F1, ButtonState.Pressed, Ohjeet, "Näytä ohjaimet"); //Kutsutaan Ohjeet … … 52 55 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 53 56 } 57 54 58 void Fullscreen() 55 59 { … … 311 315 Vector suunta = Vector.FromLengthAndAngle(ampumisnopeus, pelaaja.Angle + Angle.RightAngle); 312 316 naatti.Hit(suunta); 317 SoundEffect naattiheitto = LoadSoundEffect("Naattiheitto"); 318 naattiheitto.Play(); 313 319 pelaaja.naattiValmiina = false; 314 320 Timer.SingleShot(1.5, delegate { KranaattiRajahti(naatti.X, naatti.Y, 375); naatti.Destroy(); }); //räjähdys<-aika heitosta -
2012/23/JimB/FPS/FPS/FPS/FPSContent/FPSContent.contentproj
r2844 r2888 135 135 </Compile> 136 136 </ItemGroup> 137 <ItemGroup> 138 <Compile Include="music\M1.mp3"> 139 <Name>M1</Name> 140 <Importer>Mp3Importer</Importer> 141 <Processor>SongProcessor</Processor> 142 </Compile> 143 <Compile Include="music\M2.mp3"> 144 <Name>M2</Name> 145 <Importer>Mp3Importer</Importer> 146 <Processor>SongProcessor</Processor> 147 </Compile> 148 <Compile Include="music\M3.mp3"> 149 <Name>M3</Name> 150 <Importer>Mp3Importer</Importer> 151 <Processor>SongProcessor</Processor> 152 </Compile> 153 <Compile Include="music\M4.mp3"> 154 <Name>M4</Name> 155 <Importer>Mp3Importer</Importer> 156 <Processor>SongProcessor</Processor> 157 </Compile> 158 <Compile Include="music\M5.mp3"> 159 <Name>M5</Name> 160 <Importer>Mp3Importer</Importer> 161 <Processor>SongProcessor</Processor> 162 </Compile> 163 <Compile Include="music\M6.mp3"> 164 <Name>M6</Name> 165 <Importer>Mp3Importer</Importer> 166 <Processor>SongProcessor</Processor> 167 </Compile> 168 <Compile Include="music\M7.mp3"> 169 <Name>M7</Name> 170 <Importer>Mp3Importer</Importer> 171 <Processor>SongProcessor</Processor> 172 </Compile> 173 <Compile Include="music\M8.mp3"> 174 <Name>M8</Name> 175 <Importer>Mp3Importer</Importer> 176 <Processor>SongProcessor</Processor> 177 </Compile> 178 </ItemGroup> 179 <ItemGroup> 180 <Compile Include="Naattiheitto.wav"> 181 <Name>Naattiheitto</Name> 182 <Importer>WavImporter</Importer> 183 <Processor>SoundEffectProcessor</Processor> 184 </Compile> 185 </ItemGroup> 137 186 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 138 187 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Note: See TracChangeset
for help on using the changeset viewer.