Ignore:
Timestamp:
2016-07-07 16:38:01 (3 years ago)
Author:
sieerinn
Message:

Luolakenttää viimeistelty ja lisätty sininen goomba2 joka ei putoile alas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragore/LevelCreationMethods.cs

    r7976 r7977  
    3030        } 
    3131 
     32        private void CreateGoomba2(Vector position, double width, double height, Dictionary<string, string> properties) 
     33        { 
     34            MakeGoomba(position, minimiinii2Images, false); 
     35        } 
     36 
    3237        private void CreateGoomba(Vector position, double width, double height, Dictionary<string, string> properties) 
    3338        { 
    34             var goomba = new GoombaEnemy(TileSize * 0.99, TileSize * 0.99); 
     39            MakeGoomba(position, minimiiniiImages, true); 
     40        } 
     41 
     42        private void MakeGoomba(Vector position, Image[] animImages, bool fallsOff) 
     43        { 
     44            var goomba = new GoombaEnemy(TileSize*0.96, TileSize*0.96); 
    3545            goomba.Position = position; 
    3646            goomba.Color = Color.Pink; 
    3747            goomba.Tag = "goomba"; 
    3848            goomba.Speed = 100; 
    39             goomba.FallOffPlatforms = true; 
    40             goomba.Animation = new Animation(minimiiniiImages) { FPS = 10 }; 
     49            goomba.FallOffPlatforms = fallsOff; 
     50            goomba.Animation = new Animation(animImages) {FPS = 10}; 
    4151            goomba.Animation.Start(); 
    4252            Add(goomba); 
     
    5060                    player.Velocity = new Vector(player.Velocity.X, 400); 
    5161 
    52                     var corpse = new GameObject(goomba.Width, goomba.Height * 0.2); 
     62                    var corpse = new GameObject(goomba.Width, goomba.Height*0.2); 
    5363                    corpse.TextureWrapSize = goomba.TextureWrapSize; 
    54                     corpse.Image = minimiiniiImages[0]; 
     64                    corpse.Image = animImages[0]; 
    5565                    corpse.X = goomba.X; 
    5666                    corpse.Bottom = goomba.Bottom; 
Note: See TracChangeset for help on using the changeset viewer.