Ignore:
Timestamp:
2015-07-01 17:42:14 (7 years ago)
Author:
sieerinn
Message:

Pelaajalla näkyy taas sydämmet, monokkeli toimii.

File:
1 edited

Legend:

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

    r6699 r6701  
    3535        level.SetObjectMethod("exit", CreateExit); 
    3636        level.SetTileMethod("decoration", CreateDecoration); 
     37        level.SetTileMethod("cover", CreateCover); 
    3738        //level.SetObjectMethod("player", CreatePlayer); 
    3839        level.SetObjectMethod("blockade", CreateBlock); 
     
    9798    } 
    9899 
     100    void CreateCover(Vector position, double width, double height, Image image, string layername, Dictionary<string, string> properties) 
     101    { 
     102        var tile = new GameObject(width, height); 
     103        tile.Tag = "cover"; 
     104        tile.Image = image; 
     105        tile.Position = position; 
     106        Add(tile, 3); 
     107    } 
     108 
    99109    /// <summary> 
    100110    /// Luo tavallisen tiilen. 
    101111    /// </summary> 
    102     void CreateBasicTile(Vector position, double width, double height, Image image, int layer, Dictionary<string, string> properties) 
     112    GameObject CreateBasicTile(Vector position, double width, double height, Image image, int layer, Dictionary<string, string> properties) 
    103113    { 
    104114        var tile = properties.ContainsKey("collide") ? new PhysicsObject(width, height) : new GameObject(width, height); 
     
    106116        tile.Position = position; 
    107117        Add(tile, layer); 
     118        return tile; 
    108119    } 
    109120 
Note: See TracChangeset for help on using the changeset viewer.