Changeset 2888 for 2012/23


Ignore:
Timestamp:
2012-06-08 13:40:23 (7 years ago)
Author:
jijoback
Message:

musiikki ja naatti ääni lisätty. Peli ns. valmis.

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  
    4646        LuoKentta(); //kutsutaan kentänluonti 
    4747        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 
    4952        MessageDisplay.Add("F1 - Näytä Ohjaimet"); //lisätään viestilaatikkoon ohje. 
    5053        Keyboard.Listen(Key.F1, ButtonState.Pressed, Ohjeet, "Näytä ohjaimet"); //Kutsutaan Ohjeet 
     
    5255        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
    5356    } 
     57 
    5458    void Fullscreen() 
    5559    { 
     
    311315            Vector suunta = Vector.FromLengthAndAngle(ampumisnopeus, pelaaja.Angle + Angle.RightAngle); 
    312316            naatti.Hit(suunta); 
     317            SoundEffect naattiheitto = LoadSoundEffect("Naattiheitto"); 
     318            naattiheitto.Play(); 
    313319            pelaaja.naattiValmiina = false; 
    314320            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  
    135135    </Compile> 
    136136  </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> 
    137186  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    138187  <!--  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.