Ignore:
Timestamp:
2015-07-01 21:28:15 (6 years ago)
Author:
empaheik
Message:

Hoboluolasta puuttuu vielä miekka + hobo (eli tärkeimmät, lel). Lisätarinaa.

File:
1 edited

Legend:

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

    r6706 r6707  
    3838        level.SetTileMethod("decoration", CreateDecoration); 
    3939        level.SetTileMethod("cover", CreateCover); 
     40        level.SetObjectMethod("story", CreateEncounter); 
    4041        //level.SetObjectMethod("player", CreatePlayer); 
    4142        level.SetObjectMethod("blockade", CreateBlock); 
     
    4849    } 
    4950 
     51    void CreateEncounter(Vector position, double width, double height, Angle angle, Shape shape, string name, Dictionary<string, string> properties) 
     52    { 
     53        PhysicsObject invisible = new PhysicsObject(width, height) {IsVisible = false, Tag = "storyTime"}; 
     54        invisible.MakeStatic(); 
     55        Add(invisible); 
     56    } 
     57 
    5058    void CreateBossSpawn(Vector position, double width, double height, Angle angle, Shape shape, string name, Dictionary<string, string> properties) 
    5159    { 
     
    7381 
    7482            // Luodaan muut vaunut. 
    75             int carriages = (int)(BossHealth.Value/(double)BossHealth.MaxValue * 6); 
     83            int carriages = (int)(BossHealth.Value / (double)BossHealth.MaxValue * 6); 
    7684            for (int i = 0; i < carriages; i++) 
    7785            { 
Note: See TracChangeset for help on using the changeset viewer.