- Timestamp:
- 2015-07-03 11:22:48 (8 years ago)
- Location:
- 2015/27/LukaP
- Files:
-
- 24 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/27/LukaP/LukanPeli/LukanPeli/LukanPeli/LukanPeli.cs
r6754 r6777 21 21 Image Maalinkuva = LoadImage("Maali"); 22 22 Image taustaKuva = LoadImage("Background 3"); 23 Image maankuva = LoadImage("Blokki"); 23 24 24 25 … … 40 41 41 42 SoundEffect maaliAani = LoadSoundEffect("maaliAani"); 43 SoundEffect hyppyAani = LoadSoundEffect("HyppyAani"); 44 SoundEffect KeraaKolikko = LoadSoundEffect("KeraaKolikko"); 45 SoundEffect VihuKuolee = LoadSoundEffect("VihuKuolee"); 46 SoundEffect VoittoAani = LoadSoundEffect("VoittoAani"); 47 SoundEffect VihuKuolemaAani = LoadSoundEffect("VihuKuolemaAani"); 48 SoundEffect TippuAani = LoadSoundEffect("TippuAani"); 42 49 43 50 public override void Begin() … … 73 80 taso.Position = paikka; 74 81 taso.Color = Color.Green; 82 taso.Image = maankuva; 75 83 Add(taso); 76 84 } … … 118 126 MessageDisplay.Add("FAIL!"); 119 127 Timer.SingleShot(1.0, SeuraavaKentta); 128 TippuAani.Play(); 120 129 //ClearControls(); 121 130 }); … … 151 160 { 152 161 hahmo.Jump(nopeus); 162 hyppyAani.Play(); 153 163 } 154 164 155 165 void TormaaKolikkoon(PhysicsObject hahmo, PhysicsObject tahti) 156 166 { 157 maaliAani.Play();167 KeraaKolikko.Play(); 158 168 MessageDisplay.Add("1X Kolikko Kerätty!"); 159 169 tahti.Destroy(); … … 171 181 pahis.Destroy(); 172 182 (pelaaja as PlatformCharacter).ForceJump(nopeus * 4); 183 VihuKuolee.Play(); 184 MessageDisplay.Add("Tuhosit Puolustajan"); 173 185 } 174 186 else 175 187 { 176 pelaaja.Destroy(); 188 pelaaja.Destroy(); 177 189 MessageDisplay.Add("FAIL!"); 190 VihuKuolemaAani.Play(); 178 191 Timer.SingleShot(1.0, SeuraavaKentta); 179 } 192 } 180 193 } 181 194 … … 209 222 210 223 Label pisteNaytto = new Label(); 211 pisteNaytto.X = Screen.Left + 10 ;212 pisteNaytto.Y = Screen.Top - 10 ;224 pisteNaytto.X = Screen.Left + 100; 225 pisteNaytto.Y = Screen.Top - 100; 213 226 pisteNaytto.TextColor = Color.Black; 214 pisteNaytto.Color = Color. White;227 pisteNaytto.Color = Color.Blue; 215 228 pisteNaytto.Title = "kolikot"; 216 229 … … 249 262 //Kasvatetaan kenttänumeroa yhdellä ja siirrytään seuraavaan kenttään: 250 263 kenttaNro++; 264 VoittoAani.Play(); 251 265 SeuraavaKentta(); 252 266 } -
2015/27/LukaP/LukanPeli/LukanPeli/LukanPeli/LukanPeli.csproj.Debug.cachefile
r6754 r6777 13 13 Content\kentta4.xnb 14 14 Content\Piikki.xnb 15 Content\HyppyAani.xnb 16 Content\KeraaKolikko.xnb 17 Content\VihuKuolee.xnb 18 Content\Background 4.xnb 19 Content\VoittoAani.xnb 20 Content\Blokki.xnb 21 Content\VihuKuolemaAani.xnb 22 Content\TippuAani.xnb -
2015/27/LukaP/LukanPeli/LukanPeli/LukanPeli/obj/x86/Debug/ContentPipeline-{2119C4D2-AF14-42FC-976F-6011121F8356}.xml
r6754 r6777 108 108 <Options>None</Options> 109 109 <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Background 3.xnb</Output> 110 <Time>2015-07-0 2T14:20:58.3970756+03:00</Time>110 <Time>2015-07-03T10:17:39.9617022+03:00</Time> 111 111 </Item> 112 112 <Item> … … 127 127 <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Piikki.xnb</Output> 128 128 <Time>2015-07-02T14:34:33.9672778+03:00</Time> 129 </Item> 130 <Item> 131 <Source>HyppyAani.wav</Source> 132 <Name>HyppyAani</Name> 133 <Importer>WavImporter</Importer> 134 <Processor>SoundEffectProcessor</Processor> 135 <Options>None</Options> 136 <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\HyppyAani.xnb</Output> 137 <Time>2015-07-03T09:45:26.3732022+03:00</Time> 138 </Item> 139 <Item> 140 <Source>KeraaKolikko.wav</Source> 141 <Name>KeraaKolikko</Name> 142 <Importer>WavImporter</Importer> 143 <Processor>SoundEffectProcessor</Processor> 144 <Options>None</Options> 145 <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\KeraaKolikko.xnb</Output> 146 <Time>2015-07-03T09:48:10.7712022+03:00</Time> 147 </Item> 148 <Item> 149 <Source>VihuKuolee.wav</Source> 150 <Name>VihuKuolee</Name> 151 <Importer>WavImporter</Importer> 152 <Processor>SoundEffectProcessor</Processor> 153 <Options>None</Options> 154 <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\VihuKuolee.xnb</Output> 155 <Time>2015-07-03T09:48:13.6112022+03:00</Time> 156 </Item> 157 <Item> 158 <Source>Background 4.png</Source> 159 <Name>Background 4</Name> 160 <Importer>TextureImporter</Importer> 161 <Processor>TextureProcessor</Processor> 162 <Options>None</Options> 163 <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Background 4.xnb</Output> 164 <Time>2015-07-03T10:06:32.5767022+03:00</Time> 165 </Item> 166 <Item> 167 <Source>VoittoAani.wav</Source> 168 <Name>VoittoAani</Name> 169 <Importer>WavImporter</Importer> 170 <Processor>SoundEffectProcessor</Processor> 171 <Options>None</Options> 172 <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\VoittoAani.xnb</Output> 173 <Time>2015-07-03T10:23:21.2347022+03:00</Time> 174 </Item> 175 <Item> 176 <Source>Blokki.png</Source> 177 <Name>Blokki</Name> 178 <Importer>TextureImporter</Importer> 179 <Processor>TextureProcessor</Processor> 180 <Options>None</Options> 181 <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Blokki.xnb</Output> 182 <Time>2015-07-03T10:39:20.8307022+03:00</Time> 183 </Item> 184 <Item> 185 <Source>VihuKuolemaAani.wav</Source> 186 <Name>VihuKuolemaAani</Name> 187 <Importer>WavImporter</Importer> 188 <Processor>SoundEffectProcessor</Processor> 189 <Options>None</Options> 190 <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\VihuKuolemaAani.xnb</Output> 191 <Time>2015-07-03T10:58:14.1337022+03:00</Time> 192 </Item> 193 <Item> 194 <Source>TippuAani.wav</Source> 195 <Name>TippuAani</Name> 196 <Importer>WavImporter</Importer> 197 <Processor>SoundEffectProcessor</Processor> 198 <Options>None</Options> 199 <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\TippuAani.xnb</Output> 200 <Time>2015-07-03T11:06:58.7037022+03:00</Time> 129 201 </Item> 130 202 <BuildSuccessful>true</BuildSuccessful> -
2015/27/LukaP/LukanPeli/LukanPeli/LukanPeli/obj/x86/Debug/LukanPeli.csproj.FileListAbsolute.txt
r6754 r6777 21 21 C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\kentta4.xnb 22 22 C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Piikki.xnb 23 C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\HyppyAani.xnb 24 C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\KeraaKolikko.xnb 25 C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\VihuKuolee.xnb 26 C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Background 4.xnb 27 C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\VoittoAani.xnb 28 C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Blokki.xnb 29 C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\VihuKuolemaAani.xnb 30 C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\TippuAani.xnb -
2015/27/LukaP/LukanPeli/LukanPeli/LukanPeli/obj/x86/Debug/cachefile-{2119C4D2-AF14-42FC-976F-6011121F8356}-targetpath.txt
r6754 r6777 13 13 Content\kentta4.xnb 14 14 Content\Piikki.xnb 15 Content\HyppyAani.xnb 16 Content\KeraaKolikko.xnb 17 Content\VihuKuolee.xnb 18 Content\Background 4.xnb 19 Content\VoittoAani.xnb 20 Content\Blokki.xnb 21 Content\VihuKuolemaAani.xnb 22 Content\TippuAani.xnb -
2015/27/LukaP/LukanPeli/LukanPeli/LukanPeliContent/LukanPeliContent.contentproj
r6754 r6777 139 139 </Compile> 140 140 </ItemGroup> 141 <ItemGroup> 142 <Compile Include="HyppyAani.wav"> 143 <Name>HyppyAani</Name> 144 <Importer>WavImporter</Importer> 145 <Processor>SoundEffectProcessor</Processor> 146 </Compile> 147 </ItemGroup> 148 <ItemGroup> 149 <Compile Include="KeraaKolikko.wav"> 150 <Name>KeraaKolikko</Name> 151 <Importer>WavImporter</Importer> 152 <Processor>SoundEffectProcessor</Processor> 153 </Compile> 154 </ItemGroup> 155 <ItemGroup> 156 <Compile Include="VihuKuolee.wav"> 157 <Name>VihuKuolee</Name> 158 <Importer>WavImporter</Importer> 159 <Processor>SoundEffectProcessor</Processor> 160 </Compile> 161 </ItemGroup> 162 <ItemGroup> 163 <Compile Include="Background 4.png"> 164 <Name>Background 4</Name> 165 <Importer>TextureImporter</Importer> 166 <Processor>TextureProcessor</Processor> 167 </Compile> 168 </ItemGroup> 169 <ItemGroup> 170 <Compile Include="VoittoAani.wav"> 171 <Name>VoittoAani</Name> 172 <Importer>WavImporter</Importer> 173 <Processor>SoundEffectProcessor</Processor> 174 </Compile> 175 </ItemGroup> 176 <ItemGroup> 177 <Compile Include="Blokki.png"> 178 <Name>Blokki</Name> 179 <Importer>TextureImporter</Importer> 180 <Processor>TextureProcessor</Processor> 181 </Compile> 182 </ItemGroup> 183 <ItemGroup> 184 <Compile Include="VihuKuolemaAani.wav"> 185 <Name>VihuKuolemaAani</Name> 186 <Importer>WavImporter</Importer> 187 <Processor>SoundEffectProcessor</Processor> 188 </Compile> 189 </ItemGroup> 190 <ItemGroup> 191 <Compile Include="TippuAani.wav"> 192 <Name>TippuAani</Name> 193 <Importer>WavImporter</Importer> 194 <Processor>SoundEffectProcessor</Processor> 195 </Compile> 196 </ItemGroup> 141 197 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 142 198 <!-- 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.