Ignore:
Timestamp:
2015-06-30 00:00:15 (6 years ago)
Author:
sieerinn
Message:

Miekan (tai toistaiseksi pistoolin) heiluttelu.

File:
1 edited

Legend:

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

    r6547 r6548  
    3939    void CreatePlayer(Vector position, double width, double height, Angle angle, Shape shape, string name, Dictionary<string, string> properties) 
    4040    { 
    41         player = new Creature(TILE_SIZE, TILE_SIZE); 
     41        player = new Player(); 
    4242        player.CanRotate = false; 
    4343        player.MovementSpeed = 2300; 
     
    4747        player.MoveAnimations[Direction.Up] = playerWalkUp; 
    4848        player.MoveAnimations[Direction.Down] = playerWalkDown; 
    49         player.Image = playerWalkDown.CurrentFrame;         
     49        player.SwingAnimations[Direction.Left] = playerSwingLeft; 
     50        player.SwingAnimations[Direction.Right] = playerSwingRight; 
     51        player.SwingAnimations[Direction.Up] = playerSwingUp; 
     52        player.SwingAnimations[Direction.Down] = playerSwingDown; 
     53        player.Image = playerWalkDown.CurrentFrame; 
    5054        Add(player, 1); 
    5155 
Note: See TracChangeset for help on using the changeset viewer.