Ignore:
Timestamp:
2015-06-30 18:45:35 (4 years ago)
Author:
empaheik
Message:

Näkymättömät estelaatikot + tilemapmerkinnät kojooteille, lisää exittejä ekakenttään.

File:
1 edited

Legend:

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

    r6619 r6624  
    2929        level.SetTileMethod("decoration", CreateDecoration); 
    3030        level.SetObjectMethod("player", CreatePlayer); 
     31        level.SetObjectMethod("blockade", CreateBlock); 
     32       // level.SetObjectMethod("coyote", CreateEnemy); 
    3133        level.Execute(); 
    3234 
    3335        Level.Background.Color = Color.Black; 
     36    } 
     37 
     38    /// <summary> 
     39    /// Näkymättömiä esteitä. 
     40    /// </summary> 
     41    void CreateBlock(Vector position, double width, double height, Angle angle, Shape shape, string name, Dictionary<string, string> properties) 
     42    { 
     43        PhysicsObject block = PhysicsObject.CreateStaticObject(width, height); 
     44        block.Position = position; 
     45        block.IsVisible = false; 
     46        Add(block); 
     47 
    3448    } 
    3549 
Note: See TracChangeset for help on using the changeset viewer.