Changeset 2104
- Timestamp:
- 2011-06-17 12:46:05 (12 years ago)
- Location:
- 2011/24/LeeviK/Pong/Pong
- Files:
-
- 7 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/24/LeeviK/Pong/Pong/Pong/Peli.cs
r2060 r2104 36 36 ExplosionSystem explosionSystem2; 37 37 ExplosionSystem explosionSystem; 38 SoundEffect osumisAani = LoadSoundEffect("den_damage_ 02");38 SoundEffect osumisAani = LoadSoundEffect("den_damage_32"); 39 39 Image crosshairkuva = LoadImage("crosshair kuva"); 40 40 Image jenkkiveri = LoadImage("jenkkiveri"); 41 41 Image muurikakka = LoadImage("Muuri"); 42 42 SoundEffect LaskuriAani = LoadSoundEffect("wave"); 43 Image punainenlaiska = LoadImage(" Pistetausta");43 Image punainenlaiska = LoadImage("HITLERNATSI"); 44 44 IntMeter kenttaLaskuri; 45 45 IntMeter Pistelaskuri; … … 124 124 explosionSystem.MinLifetime = 0.1; 125 125 explosionSystem.MaxLifetime = 1; 126 Add(explosionSystem2);127 explosionSystem2.MinScale = 10;128 explosionSystem2.MaxScale = 50;129 explosionSystem2.MinLifetime = 0.1;130 explosionSystem2.MaxLifetime = 1;131 132 126 Timer ajastin2 = new Timer(); 133 127 ajastin2.Interval = 214; 134 128 ajastin2.Trigger += pistelaskuri; 135 129 ajastin2.Start(); 136 LuoLaskurit(); 137 130 LuoLaskurit(); 138 131 } 139 132 … … 159 152 pelaajanAse.Ammo.LowerLimit += LataaAse; 160 153 pelaajanAse.ProjectileCollision = AmmusOsui; 161 162 163 154 } 164 155 void LataaAse(int arvo) … … 166 157 Timer.SingleShot(1, LisaaAmmuksia); 167 158 pelaaja.Animation.Start(); 168 169 159 } 170 160 … … 173 163 pelaajanAse.Ammo.Value += 30; 174 164 pelaaja.Animation.Stop(); 175 176 165 } 177 166 … … 228 217 { 229 218 ammus.Destroy(); 230 Explosion rajahdys = new Explosion(100);231 rajahdys.Position = ammus.Position;232 rajahdys.Force = 5;233 rajahdys.ShockwaveColor = Color.Red;234 rajahdys.Sound = osumisAani;235 Add(rajahdys);236 219 237 220 if (kohde is Natsi) … … 239 222 Natsi natsi = (Natsi)kohde; 240 223 natsi.Elamat--; 224 Explosion rajahdys = new Explosion(100); 225 rajahdys.Position = ammus.Position; 226 rajahdys.Force = 5; 227 rajahdys.ShockwaveColor = Color.Red; 228 rajahdys.Sound = osumisAani; 229 Add(rajahdys); 230 241 231 if (natsi.Elamat < 1) 242 232 { … … 264 254 explosionSystem.AddEffect(pelaaja.Position, 100); 265 255 266 HighScoreWindow topIkkuna = new HighScoreWindow(" Pelin nimi tai jotain",267 " Parhaat pisteet",268 " Onneksi olkoon, pääsit listalle pisteillä %p! Syötä nimesi:",256 HighScoreWindow topIkkuna = new HighScoreWindow("Call of Duty World at War Nazi Zombies COPY", 257 "HighScore!", 258 "You Got Points %p! Enter Your Name:", 269 259 topLista, Pistelaskuri.Value); 270 260 topIkkuna.Closed += TallennaPisteet; … … 305 295 if (Mouse.IsCursorOn(kohta)) 306 296 { 307 kohta.TextColor = Color. Gray;297 kohta.TextColor = Color.Red; 308 298 } 309 299 else … … 381 371 Pistelaskuri = new IntMeter(0); 382 372 383 PhysicsObject punainenLaiska = new PhysicsObject(1 00, 100);373 PhysicsObject punainenLaiska = new PhysicsObject(150, 200); 384 374 punainenLaiska.Image = punainenlaiska; 385 375 punainenLaiska.Position = new Vector(Screen.Right - 100, Screen.Bottom + 100); -
2011/24/LeeviK/Pong/Pong/PongContent/PongContent.contentproj
r2060 r2104 214 214 </Compile> 215 215 </ItemGroup> 216 <ItemGroup> 217 <Compile Include="den_death_27.WAV"> 218 <Name>den_death_27</Name> 219 <Importer>WavImporter</Importer> 220 <Processor>SoundEffectProcessor</Processor> 221 </Compile> 222 </ItemGroup> 223 <ItemGroup> 224 <Compile Include="Dth_001a06.wav"> 225 <Name>Dth_001a06</Name> 226 <Importer>WavImporter</Importer> 227 <Processor>SoundEffectProcessor</Processor> 228 </Compile> 229 </ItemGroup> 230 <ItemGroup> 231 <Compile Include="GRden_r_19a.WAV"> 232 <Name>GRden_r_19a</Name> 233 <Importer>WavImporter</Importer> 234 <Processor>SoundEffectProcessor</Processor> 235 </Compile> 236 </ItemGroup> 237 <ItemGroup> 238 <Compile Include="GRden_r_20b.WAV"> 239 <Name>GRden_r_20b</Name> 240 <Importer>WavImporter</Importer> 241 <Processor>SoundEffectProcessor</Processor> 242 </Compile> 243 </ItemGroup> 244 <ItemGroup> 245 <Compile Include="GRden_m_17c.WAV"> 246 <Name>GRden_m_17c</Name> 247 <Importer>WavImporter</Importer> 248 <Processor>SoundEffectProcessor</Processor> 249 </Compile> 250 </ItemGroup> 251 <ItemGroup> 252 <Compile Include="den_disguise_003f.wav"> 253 <Name>den_disguise_003f</Name> 254 <Importer>WavImporter</Importer> 255 <Processor>SoundEffectProcessor</Processor> 256 </Compile> 257 </ItemGroup> 258 <ItemGroup> 259 <Compile Include="HITLERNATSI.png"> 260 <Name>HITLERNATSI</Name> 261 <Importer>TextureImporter</Importer> 262 <Processor>TextureProcessor</Processor> 263 </Compile> 264 </ItemGroup> 216 265 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 217 266 <!-- 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.