Changeset 4315
- Timestamp:
- 2013-06-28 12:34:17 (10 years ago)
- Location:
- 2013/26/WilleK/Ensimmäinen Peli/Ensimmäinen Peli
- Files:
-
- 4 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
2013/26/WilleK/Ensimmäinen Peli/Ensimmäinen Peli/Ensimmäinen Peli/Ensimmäinen_Peli.cs
r4290 r4315 54 54 LuoElamaLaskuri(); 55 55 56 if (kenttaNro == 1) LuoKentta("kentta1"); 57 else if (kenttaNro == 2) LuoKentta("kentta2"); 58 else if (kenttaNro == 3) LuoKentta("Kentta3"); 56 if (kenttaNro == 1) 57 { 58 LuoKentta("kentta1"); 59 MediaPlayer.Play("GroundTheme"); 60 } 61 else if (kenttaNro == 2) 62 { 63 LuoKentta("kentta2"); 64 MediaPlayer.Play("GroundTheme"); 65 } 66 else if (kenttaNro == 3) 67 { 68 LuoKentta("Kentta3"); 69 MediaPlayer.Play("GroundTheme"); 70 } 59 71 else if (kenttaNro == 4) 60 72 { 61 73 LuoKentta("kentta4"); 62 74 Level.Background.CreateGradient(Color.Black, Color.LightGray); 75 MediaPlayer.Play("MoonCastle"); 63 76 } 64 77 else if (kenttaNro == 5) … … 66 79 LuoKentta("kentta5"); 67 80 Level.Background.CreateGradient(Color.Black, Color.LightGray); 81 MediaPlayer.Play("MoonCastle"); 82 } 83 84 else if (kenttaNro == 6) 85 { 86 LuoKentta("kentta6"); 87 Level.Background.CreateGradient(Color.Black, Color.LightGray); 88 MediaPlayer.Play("MoonCastle"); 89 } 90 91 else if (kenttaNro == 7) 92 { 93 LuoKentta("kentta7"); 94 Level.Background.CreateGradient(Color.Black, Color.LightGray); 95 MediaPlayer.Play("MoonCastle"); 96 } 97 98 else if (kenttaNro == 8) 99 { 100 LuoKentta("kentta8"); 101 MediaPlayer.Play("GroundTheme"); 68 102 } 69 103 else Exit(); … … 73 107 Camera.ZoomFactor = 1.2; 74 108 Camera.StayInLevel = true; 75 MediaPlayer.Play("GroundTheme");76 109 MediaPlayer.IsRepeating = true; 77 110 MediaPlayer.Volume = 0.7; 111 78 112 } 79 113 -
2013/26/WilleK/Ensimmäinen Peli/Ensimmäinen Peli/Ensimmäinen PeliContent/Ensimmäinen PeliContent.contentproj
r4290 r4315 181 181 </Compile> 182 182 </ItemGroup> 183 <ItemGroup> 184 <Compile Include="kentta6.png"> 185 <Name>kentta6</Name> 186 <Importer>TextureImporter</Importer> 187 <Processor>TextureProcessor</Processor> 188 </Compile> 189 </ItemGroup> 190 <ItemGroup> 191 <Compile Include="MoonCastle.mp3"> 192 <Name>MoonCastle</Name> 193 <Importer>Mp3Importer</Importer> 194 <Processor>SongProcessor</Processor> 195 </Compile> 196 </ItemGroup> 197 <ItemGroup> 198 <Compile Include="kentta7.png"> 199 <Name>kentta7</Name> 200 <Importer>TextureImporter</Importer> 201 <Processor>TextureProcessor</Processor> 202 </Compile> 203 </ItemGroup> 204 <ItemGroup> 205 <Compile Include="kentta8.png"> 206 <Name>kentta8</Name> 207 <Importer>TextureImporter</Importer> 208 <Processor>TextureProcessor</Processor> 209 </Compile> 210 </ItemGroup> 183 211 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 184 212 <!-- 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.