Changeset 6404 for 2015/26/ohjaajat/HillbillyRun/HillbillyRun/HillbillyRun/HillbillyRun/HillbillyRun.cs
- Timestamp:
- 2015-06-25 22:26:29 (6 years ago)
- File:
-
- 1 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);
Note: See TracChangeset
for help on using the changeset viewer.