- Timestamp:
- 2015-06-24 19:22:19 (6 years ago)
- Location:
- 2015/26/ohjaajat/HillbillyRun/HillbillyRun/HillbillyRun
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/26/ohjaajat/HillbillyRun/HillbillyRun/HillbillyRun/HillbillyRun/HillbillyRun.cs
r6283 r6286 150 150 private Animation playerJump; 151 151 private Animation playerFall; 152 private Animation firemageAnimation; 153 private Animation firemageCastAnimation; 152 154 #endregion 153 155 … … 302 304 playerJump = LoadAnimation("jump"); 303 305 playerFall = LoadAnimation("fall"); 306 firemageAnimation = LoadAnimation("firemage"); 307 firemageCastAnimation = LoadAnimation("firemagecast"); 304 308 305 309 cameraOffset = Window.Width / 4; … … 335 339 void CreateLevel() 336 340 { 337 338 341 Gravity = new Vector(0, -1000); 339 342 … … 351 354 level.SetTileMethod(Color.DarkGray, CreateMilk); 352 355 level.SetTileMethod(Color.Gray, CreateCrawly); 353 level.SetTileMethod(Color.Red, Create Dummy, Color.Red); //TODO: CreateWitch356 level.SetTileMethod(Color.Red, CreateFireMage); 354 357 level.SetTileMethod(Color.Rose, CreateFlame); 355 358 //level.SetTileMethod(Color.Azure, CreateDummy, Color.Azure); //TODO: CreateSmoke … … 473 476 RemoveCollisionHandlers(crawly); 474 477 }); 478 } 479 480 void CreateFireMage(Vector position, double width, double height) 481 { 482 PlatformCharacter mage = new PlatformCharacter(width * 3, height * 4); 483 mage.Position = position; 484 mage.Y += mage.Height / 2.0; 485 mage.Animation = new Animation(firemageAnimation); 486 mage.Animation.Start(); 487 mage.Tag = "burn"; 488 mage.CollisionIgnoreGroup = 3; 489 Add(mage, 1); 490 491 GameObject flame = new GameObject(width * 1.4, height * 2); 492 flame.Y += mage.Height * 0.65; 493 flame.Animation = new Animation(blaze); 494 flame.Animation.Start(); 495 mage.Add(flame); 475 496 } 476 497
Note: See TracChangeset
for help on using the changeset viewer.