- Timestamp:
- 2011-06-10 11:33:09 (12 years ago)
- Location:
- 2011/23/vikeisal
- Files:
-
- 2 added
- 2 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; -
2011/23/vikeisal/SpyInTheBase/SpyInTheBase/SpyInTheBaseContent/SpyInTheBaseContent.contentproj
r1875 r1878 189 189 </Compile> 190 190 </ItemGroup> 191 <ItemGroup> 192 <Compile Include="taustamusiikki.mp3"> 193 <Name>taustamusiikki</Name> 194 <Importer>Mp3Importer</Importer> 195 <Processor>SongProcessor</Processor> 196 </Compile> 197 </ItemGroup> 191 198 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 192 199 <!-- 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.