Ignore:
Timestamp:
2015-06-30 20:07:55 (5 years ago)
Author:
sieerinn
Message:

Kamoissa näkyy käyttökerrat. Kamasysteemin toimivuutta paranneltu. Kojootin kuvat.

File:
1 edited

Legend:

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

    r6624 r6626  
    3030        level.SetObjectMethod("player", CreatePlayer); 
    3131        level.SetObjectMethod("blockade", CreateBlock); 
    32        // level.SetObjectMethod("coyote", CreateEnemy); 
     32        // level.SetObjectMethod("coyote", CreateEnemy); 
    3333        level.Execute(); 
    3434 
     
    5757        player.MovementSpeed = new DoubleMeter(2300, 0, 2300); 
    5858        player.Position = position; 
    59         player.MoveAnimations[Direction.Left] = playerWalkLeft; 
    60         player.MoveAnimations[Direction.Right] = playerWalkRight; 
    61         player.MoveAnimations[Direction.Up] = playerWalkUp; 
    62         player.MoveAnimations[Direction.Down] = playerWalkDown; 
    63         player.SwingAnimations[Direction.Left] = playerSwingLeft; 
    64         player.SwingAnimations[Direction.Right] = playerSwingRight; 
    65         player.SwingAnimations[Direction.Up] = playerSwingUp; 
    66         player.SwingAnimations[Direction.Down] = playerSwingDown; 
    67         player.ShootAnimations[Direction.Left] = playerShootLeft; 
    68         player.ShootAnimations[Direction.Right] = playerShootRight; 
    69         player.ShootAnimations[Direction.Up] = playerShootUp; 
    70         player.ShootAnimations[Direction.Down] = playerShootDown; 
     59        player.MoveAnimations = DirectionalAnimations(playerWalkLeft, playerWalkRight, playerWalkUp, playerWalkDown); 
     60        player.SwingAnimations = DirectionalAnimations(playerSwingLeft, playerSwingRight, playerSwingUp, playerSwingDown); 
     61        player.ShootAnimations = DirectionalAnimations(playerShootLeft, playerShootRight, playerShootUp, playerShootDown); 
    7162        player.Image = playerWalkDown.CurrentFrame; 
    7263        Add(player, 1); 
     
    9586    } 
    9687 
    97         /// <summary> 
     88    /// <summary> 
    9889    /// Pelaajan päällä näkyvä tiili. 
    9990    /// </summary> 
     
    10899    void CreateBasicTile(Vector position, double width, double height, Image image, int layer, Dictionary<string, string> properties) 
    109100    { 
    110         var tile = properties.ContainsKey("collide")? new PhysicsObject(width, height) : new GameObject(width, height); 
     101        var tile = properties.ContainsKey("collide") ? new PhysicsObject(width, height) : new GameObject(width, height); 
    111102        tile.Image = image; 
    112103        tile.Position = position; 
Note: See TracChangeset for help on using the changeset viewer.