Changeset 1878 for 2011/23


Ignore:
Timestamp:
2011-06-10 11:33:09 (12 years ago)
Author:
vikeisal
Message:
 
Location:
2011/23/vikeisal
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • 2011/23/vikeisal/SpyInTheBase/SpyInTheBase/SpyInTheBase/Peli.cs

    r1875 r1878  
    3333    SoundEffect coinAani = LoadSoundEffect("coinaani"); 
    3434    SoundEffect spydie = LoadSoundEffect("spydie"); 
     35      
     36 
    3537    IntMeter pisteLaskuri; 
    3638    List<Label> valikonKohdat; 
     
    4547    { 
    4648        tuhoutuvat = new List<GameObject>(); 
     49         
    4750 
    4851        Gravity = new Vector(0, -1250); 
     
    203206        Level.BackgroundColor = Color.Black; 
    204207        Level.Background.CreateStars(); 
    205  
     208        MediaPlayer.Play("taustamusiikki"); 
    206209        MessageDisplay.TextColor = Color.White; 
    207210    } 
     
    228231        Level.BackgroundColor = Color.Black; 
    229232        Level.Background.CreateStars(); 
     233        MediaPlayer.Play("taustamusiikki"); 
    230234    } 
    231235 
     
    399403 
    400404            Label naytto = new Label("Kaappasit vihollisen tiedot!"); 
     405            MediaPlayer.Stop(); 
    401406            naytto.Position = Vector.Zero; 
    402407            naytto.TextColor = Color.Green; 
     
    456461            timer.Stop(); 
    457462            Label naytto = new Label("GAME OVER! AIKASI LOPPUI! YOU FAILED!"); 
     463            MediaPlayer.Stop(); 
    458464            naytto.Position = Vector.Zero; 
    459465            naytto.TextColor = Color.Red; 
     
    611617            kohde.Destroy(); 
    612618            spydie.Play(); 
     619            MediaPlayer.Stop(); 
    613620            Label naytto = new Label("GAME OVER! KUOLIT! YOU FAILED!"); 
    614621            naytto.Position = Vector.Zero; 
  • 2011/23/vikeisal/SpyInTheBase/SpyInTheBase/SpyInTheBaseContent/SpyInTheBaseContent.contentproj

    r1875 r1878  
    189189    </Compile> 
    190190  </ItemGroup> 
     191  <ItemGroup> 
     192    <Compile Include="taustamusiikki.mp3"> 
     193      <Name>taustamusiikki</Name> 
     194      <Importer>Mp3Importer</Importer> 
     195      <Processor>SongProcessor</Processor> 
     196    </Compile> 
     197  </ItemGroup> 
    191198  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    192199  <!--  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.