Ignore:
Timestamp:
2015-07-01 23:37:11 (4 years ago)
Author:
sieerinn
Message:

Norjalaiset moukarinheittäjät tehty, kranaatti toimii taas junaa vastaan.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/LevelCreation.cs

    r6715 r6716  
    147147            if (part.Right < Level.Right) 
    148148            { 
    149                 CreateCoyote(part.Position, TILE_SIZE, TILE_SIZE, Angle.Zero, Shape.Rectangle, "", null); 
     149                CreateNorwegianHammerThrower(part.Position, TILE_SIZE, TILE_SIZE, Angle.Zero, Shape.Rectangle, "", null); 
    150150            } 
    151151        }; 
     
    175175    void CreateCoyote(Vector position, double width, double height, Angle angle, Shape shape, string name, Dictionary<string, string> properties) 
    176176    { 
     177        CreateEnemy(position, width, height, DirectionalAnimations(coyoteLeft, coyoteRight, coyoteUp, coyoteDown)); 
     178    } 
     179 
     180    void CreateNorwegianHammerThrower(Vector position, double width, double height, Angle angle, Shape shape, string name, Dictionary<string, string> properties) 
     181    { 
     182        CreateEnemy(position, width, height, DirectionalAnimations(nWalkLeft, nWalkRight, nWalkUp, nWalkDown)); 
     183    } 
     184 
     185    void CreateEnemy(Vector position, double width, double height, Dictionary<Direction, Animation> anims) 
     186    { 
    177187        var enemy = new Creature(width, height, 1); 
    178         enemy.MoveAnimations = DirectionalAnimations(coyoteLeft, coyoteRight, coyoteUp, coyoteDown); 
     188        enemy.MoveAnimations = anims; 
    179189        enemy.Image = enemy.MoveAnimations[Direction.Right].CurrentFrame; 
    180190        enemy.Position = position; 
Note: See TracChangeset for help on using the changeset viewer.