- Timestamp:
- 2012-06-14 23:17:07 (11 years ago)
- Location:
- 2012/24/AkiR/Fight the Rambo/Fight the Rambo
- Files:
-
- 6 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
2012/24/AkiR/Fight the Rambo/Fight the Rambo/Fight the Rambo/Fight the Rambo.csproj.Debug.cachefile
r3042 r3044 13 13 Content\rambo3.xnb 14 14 Content\Nuhasotilas1.xnb 15 Content\shit.xnb16 15 Content\kill.xnb 17 16 Content\GameStarts.xnb … … 19 18 Content\laake.xnb 20 19 Content\tunnari.xnb 21 Content\shit.wma 20 Content\cash.xnb 21 Content\shit.xnb 22 Content\bullet.xnb 23 Content\yappee.xnb 22 24 Content\tunnari.wma 23 25 Content\Nuhasotilas.png … … 26 28 Content\laake.png 27 29 Content\tunnari.mp3 30 Content\shit.wav 31 Content\bullet.wav 28 32 Content\tausta.png 29 33 kentta1.txt -
2012/24/AkiR/Fight the Rambo/Fight the Rambo/Fight the Rambo/Peli.cs
r3042 r3044 17 17 GameObject pelaajanpaikka; 18 18 PlatformCharacter vihollinen; 19 PlatformCharacter vihollinen2; 19 20 PlatformCharacter Maali; 20 21 PlatformCharacter Piikkilanka; … … 35 36 SoundEffect eliminointiAani = LoadSoundEffect("kill"); 36 37 SoundEffect alkuaani = LoadSoundEffect("GameStarts"); 37 SoundEffect Ammuskerattu = LoadSoundEffect("yes"); 38 SoundEffect Ammuskerattu = LoadSoundEffect("bullet"); 39 SoundEffect Kultakerattu = LoadSoundEffect("cash"); 40 SoundEffect Yappee = LoadSoundEffect("yappee"); 38 41 39 42 … … 109 112 kentta['G'] = lisaaMaali; 110 113 kentta['E'] = lisaaVihollinen; 114 kentta['U'] = lisaaVihollinen2; 111 115 kentta['#'] = lisaaTaso; 112 116 kentta['N'] = lisaapelaajanPaikka; … … 158 162 kentta['G'] = lisaaMaali; 159 163 kentta['E'] = lisaaVihollinen; 164 kentta['U'] = lisaaVihollinen2; 160 165 kentta['#'] = Lisaamaa; 161 166 kentta['N'] = lisaapelaajanPaikka; … … 220 225 pelaaja1.Weapon.ProjectileCollision = AmmusOsui; 221 226 pelaaja1.Weapon.Ammo.Value = ammukset; 227 pelaaja1.Tag = "pelaaja"; 222 228 pelaaja1.Weapon.Y = -2; 223 229 pelaaja1.Weapon.X = 2.3; … … 235 241 AddCollisionHandler(pelaaja1, "vihollinen", CollisionHandler.AddMeterValue(voimaMittari, -10)); 236 242 AddCollisionHandler(pelaaja1, "Ansa", CollisionHandler.AddMeterValue(voimaMittari, -20)); 243 237 244 238 245 Vector oikea = new Vector(10000, 50); … … 243 250 return pelaaja1; 244 251 } 252 253 254 245 255 246 256 void lisaaNappaimet() … … 323 333 return vihollinen; 324 334 } 325 326 327 335 336 PlatformCharacter lisaaVihollinen2() 337 { 338 PlatformCharacter vihollinen2 = new PlatformCharacter(40, 80); 339 vihollinen2.Mass = 3.5; 340 vihollinen2.Image = vihollisenkuva; 341 vihollinen2.Tag = "vihollinen2"; 342 vihollinen2.IgnoresGravity = false; 343 344 vihollinen2.Weapon = new PlasmaCannon(50, 20); 345 vihollinen2.Weapon.ProjectileCollision = AmmusOsuiPelaajaan; 346 vihollinen2.Weapon.Y = -2; 347 vihollinen2.Weapon.X = 2.3; 348 349 vihollinen2.LeftIdleAnimation = new Animation(VihollinenpaikallaanVasemmalle); 350 vihollinen2.RightIdleAnimation = new Animation(VihollinenpaikallaanOikealle); 351 vihollinen2.LeftWalkingAnimation = new Animation(VihollinenKavelyVasemmalle); 352 vihollinen2.RightWalkingAnimation = new Animation(VihollinenKavelyOikealle); 353 vihollinen2.CanMoveOnAir = true; 354 vihollinen2.LeftWalkingAnimation.FPS = 10; 355 vihollinen2.RightWalkingAnimation.FPS = 10; 356 vihollinen2.LeftIdleAnimation.FPS = 10; 357 vihollinen2.RightIdleAnimation.FPS = 10; 358 359 Timer ajastin = new Timer(); 360 ajastin.Interval = 3.5; 361 ajastin.Timeout += delegate { VihollinenAmpuu(); }; 362 ajastin.Start(); 363 364 365 FollowerBrain seuraajanAivot = new FollowerBrain(); 366 seuraajanAivot.Target = pelaaja1; 367 seuraajanAivot.Speed = 100; 368 seuraajanAivot.StopWhenTargetClose = false; 369 seuraajanAivot.TargetFollowDistance = 30; 370 seuraajanAivot.FollowAlways = true; 371 seuraajanAivot.Active = true; 372 vihollinen2.Brain = seuraajanAivot; 373 374 Vector suunta = (pelaaja1.Position - vihollinen2.Position).Normalize(); 375 vihollinen2.Angle = pelaaja1.Angle; 376 377 378 AddCollisionHandler(vihollinen2, "seina", delegate(PhysicsObject tormaaja, PhysicsObject kohde) { vihollinen2.Jump(2000); }); 379 380 381 return vihollinen2; 382 } 383 384 void AmmusOsuiPelaajaan(PhysicsObject Ammus, PhysicsObject Kohde) 385 { 386 if (Kohde == pelaaja1) 387 { 388 Ammus.Destroy(); 389 voimaMittari.Value += -5; 390 } 391 392 } 393 394 void VihollinenAmpuu() 395 { 396 new PhysicsObject VihuAmmus = vihollinen2.Weapon.Shoot(); 397 398 if (VihuAmmus != null) 399 { 400 VihuAmmus.Size *= 0.5; 401 VihuAmmus.IgnoresGravity = true; 402 VihuAmmus.MaximumLifetime = TimeSpan.FromSeconds(4.1); 403 AddCollisionHandler(VihuAmmus, AmmusOsuiPelaajaan); 404 } 405 } 328 406 329 407 void KasitteleVihollinenKuoli(PhysicsObject Ammus, PhysicsObject kohde) … … 373 451 PhysicsObject Lisaalaake() 374 452 { 375 PhysicsObject Laake = new PhysicsObject( 70, 30);453 PhysicsObject Laake = new PhysicsObject(50, 40); 376 454 Laake.Image = laakekuva; 377 455 Laake.Mass = (50); … … 397 475 pisteLaskuri.Value += 100; 398 476 MessageDisplay.Add("100$"); 477 Kultakerattu.Play(); 478 399 479 kohde.Destroy(); 400 480 } … … 404 484 voimaMittari.Value += 25; 405 485 MessageDisplay.Add("Terveyttä nostettu"); 486 Yappee.Play(); 406 487 kohde.Destroy(); 407 488 } … … 558 639 voimaMittari = new DoubleMeter(100); 559 640 voimaMittari.MaxValue = 100; 560 if (voimaMittari.Value == 100) 561 { 562 MessageDisplay.Add("Täysi terveys"); 563 } 564 voimaMittari.LowerLimit += delegate { LopetaPeli(); }; 641 voimaMittari.LowerLimit += delegate { LopetaPeli(); }; 565 642 566 643 ProgressBar voimaPalkki = new ProgressBar(300, 30); … … 605 682 Begin(); 606 683 } 684 685 686 687 public PhysicsObject VihuAmmus { get; set; } 607 688 } -
2012/24/AkiR/Fight the Rambo/Fight the Rambo/Fight the Rambo/kentta1.txt
r3042 r3044 1 1 2 2 3 E E E3 U E E E 4 4 5 5 … … 13 13 14 14 MMMMMMMMMMMMMMMMMX X E E 15 15 H M M M MMMMMMMMMMMMMMMMMMMMMMMX 16 16 M M M M M M MX E 17 N 17 N A M M M MMMMMMMMMMM 18 18 T T M M M M M M 19 19 M M MMMM M MMMMMMMMMMMMMMMM -
2012/24/AkiR/Fight the Rambo/Fight the Rambo/Fight the Rambo/obj/x86/Debug/ContentPipeline-{B0E0BEF2-BE44-4A05-9208-56A1391AC4FE}.xml
r3042 r3044 127 127 <Output>C:\My Temp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\Nuhasotilas1.xnb</Output> 128 128 <Time>2012-06-14T16:15:36.1075301+03:00</Time> 129 </Item>130 <Item>131 <Source>shit.mp3</Source>132 <Name>shit</Name>133 <Importer>Mp3Importer</Importer>134 <Processor>SongProcessor</Processor>135 <Options>None</Options>136 <Output>C:\My Temp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\shit.xnb</Output>137 <Extra>C:\My Temp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\shit.wma</Extra>138 <Time>2012-06-12T18:18:21.9704673+03:00</Time>139 129 </Item> 140 130 <Item> … … 183 173 <Extra>C:\My Temp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\tunnari.wma</Extra> 184 174 <Time>2012-06-14T18:29:38.2805943+03:00</Time> 175 </Item> 176 <Item> 177 <Source>cash.wav</Source> 178 <Name>cash</Name> 179 <Importer>WavImporter</Importer> 180 <Processor>SoundEffectProcessor</Processor> 181 <Options>None</Options> 182 <Output>C:\My Temp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\cash.xnb</Output> 183 <Time>2012-06-14T21:06:20.1320374+03:00</Time> 184 </Item> 185 <Item> 186 <Source>shit.wav</Source> 187 <Name>shit</Name> 188 <Importer>WavImporter</Importer> 189 <Processor>SoundEffectProcessor</Processor> 190 <Options>None</Options> 191 <Output>C:\My Temp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\shit.xnb</Output> 192 <Time>2012-06-14T21:35:29.1296903+03:00</Time> 193 </Item> 194 <Item> 195 <Source>bullet.wav</Source> 196 <Name>bullet</Name> 197 <Importer>WavImporter</Importer> 198 <Processor>SoundEffectProcessor</Processor> 199 <Options>None</Options> 200 <Output>C:\My Temp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\bullet.xnb</Output> 201 <Time>2012-06-14T21:48:49.4997527+03:00</Time> 202 </Item> 203 <Item> 204 <Source>yappee.wav</Source> 205 <Name>yappee</Name> 206 <Importer>WavImporter</Importer> 207 <Processor>SoundEffectProcessor</Processor> 208 <Options>None</Options> 209 <Output>C:\My Temp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\yappee.xnb</Output> 210 <Time>2012-06-14T22:13:54.1859846+03:00</Time> 185 211 </Item> 186 212 <BuildSuccessful>true</BuildSuccessful> -
2012/24/AkiR/Fight the Rambo/Fight the Rambo/Fight the Rambo/obj/x86/Debug/Fight the Rambo.csproj.FileListAbsolute.txt
r3042 r3044 72 72 C:\My Temp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\kill.xnb 73 73 C:\My Temp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\GameStarts.xnb 74 C:\My Temp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\shit.wma75 74 C:\My Temp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\Nuhasotilas.png 76 75 C:\My Temp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\Ammus.png … … 111 110 C:\My Temp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\tunnari.wma 112 111 C:\My Temp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\tunnari.mp3 112 C:\My Temp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\cash.xnb 113 C:\My Temp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\shit.wav 114 C:\My Temp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\bullet.xnb 115 C:\My Temp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\bullet.wav 116 C:\My Temp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\yappee.xnb -
2012/24/AkiR/Fight the Rambo/Fight the Rambo/Fight the Rambo/obj/x86/Debug/cachefile-{B0E0BEF2-BE44-4A05-9208-56A1391AC4FE}-targetpath.txt
r3042 r3044 13 13 Content\rambo3.xnb 14 14 Content\Nuhasotilas1.xnb 15 Content\shit.xnb16 Content\shit.wma17 15 Content\kill.xnb 18 16 Content\GameStarts.xnb … … 21 19 Content\tunnari.xnb 22 20 Content\tunnari.wma 21 Content\cash.xnb 22 Content\shit.xnb 23 Content\bullet.xnb 24 Content\yappee.xnb 23 25 Content\Nuhasotilas.png 24 26 Content\Ammus.png … … 26 28 Content\laake.png 27 29 Content\tunnari.mp3 30 Content\shit.wav 31 Content\bullet.wav 28 32 Content\tausta.png -
2012/24/AkiR/Fight the Rambo/Fight the Rambo/Fight the RamboContent/Fight the RamboContent.contentproj
r3042 r3044 54 54 </ItemGroup> 55 55 <ItemGroup> 56 <Compile Include="shit.mp3">57 <Name>shit</Name>58 <Importer>Mp3Importer</Importer>59 <Processor>SongProcessor</Processor>60 </Compile>61 </ItemGroup>62 <ItemGroup>63 56 <Compile Include="goal.png"> 64 57 <Name>goal</Name> … … 189 182 <Processor>SongProcessor</Processor> 190 183 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 184 </Compile> 185 </ItemGroup> 186 <ItemGroup> 187 <Compile Include="cash.wav"> 188 <Name>cash</Name> 189 <Importer>WavImporter</Importer> 190 <Processor>SoundEffectProcessor</Processor> 191 </Compile> 192 </ItemGroup> 193 <ItemGroup> 194 <Compile Include="shit.wav"> 195 <Name>shit</Name> 196 <Importer>WavImporter</Importer> 197 <Processor>SoundEffectProcessor</Processor> 198 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 199 </Compile> 200 </ItemGroup> 201 <ItemGroup> 202 <Compile Include="bullet.wav"> 203 <Name>bullet</Name> 204 <Importer>WavImporter</Importer> 205 <Processor>SoundEffectProcessor</Processor> 206 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 207 </Compile> 208 </ItemGroup> 209 <ItemGroup> 210 <Compile Include="yappee.wav"> 211 <Name>yappee</Name> 212 <Importer>WavImporter</Importer> 213 <Processor>SoundEffectProcessor</Processor> 191 214 </Compile> 192 215 </ItemGroup>
Note: See TracChangeset
for help on using the changeset viewer.