- Timestamp:
- 2015-06-25 22:26:29 (8 years ago)
- Location:
- 2015/26/ohjaajat/HillbillyRun/HillbillyRun/HillbillyRun
- Files:
-
- 9 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/26/ohjaajat/HillbillyRun/HillbillyRun/HillbillyRun/HillbillyRun/HillbillyRun.cs
r6403 r6404 230 230 private Animation bossFallAnimation; 231 231 private Animation bossHitAnimation; 232 private Animation bossHurtAnimation; 232 233 #endregion 233 234 … … 404 405 bossFallAnimation = LoadAnimation("bossfall"); 405 406 bossHitAnimation = LoadAnimation("bosshit"); 407 bossHurtAnimation = LoadAnimation("bosshurt"); 406 408 407 409 cameraOffset = Window.Width / 4; … … 527 529 528 530 List<PhysicsObject> eyes = null; // Lista jotta voi käyttää kätevästi ForEach:ia. 529 var health = new IntMeter( 6, 0, 6); // Vähenee vain heinähangolla.531 var health = new IntMeter(3, 0, 3); // Vähenee vain heinähangolla. 530 532 var eyeHealth = new IntMeter(30, 0, 30); // Vähenee maidon loiskutuksella. 531 533 … … 557 559 { 558 560 health.Value--; 561 562 boss.Animation = bossHurtAnimation; 563 boss.Animation.Start(1); 564 boss.Animation.Played += () => boss.Animation = bossFallAnimation; 559 565 } 560 566 }); … … 571 577 { 572 578 var rock = new PhysicsObject(30, 30); 573 rock.Position = boss.Position + new Vector(RandomGen.NextDouble(-300, 100), 300); 579 rock.Position = boss.Position + new Vector(RandomGen.NextDouble(-650, 100), 300); 580 rock.Image = blockImages[1]; 581 rock.Tag = "burn"; 574 582 rock.LifetimeLeft = TimeSpan.FromSeconds(2.0); 575 583 Add(rock); -
2015/26/ohjaajat/HillbillyRun/HillbillyRun/HillbillyRun/HillbillyRunContent/HillbillyRunContent.contentproj
r6403 r6404 425 425 </Compile> 426 426 </ItemGroup> 427 <ItemGroup> 428 <Compile Include="bosshurt.anim"> 429 <Name>bosshurt</Name> 430 <Importer>AnimationImporter</Importer> 431 <Processor>AnimationContentProcessor</Processor> 432 </Compile> 433 </ItemGroup> 427 434 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 428 435 <!-- 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.