Changeset 6624


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.

Location:
2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel
Files:
3 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 
  • 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel.cs

    r6623 r6624  
    434434            if(second > 1) 
    435435            { 
    436                 if (messagesviewed.Count < 1)   //The letter's read, we better head back. 
     436                if (messagesviewed.Count < 1)   //The letter's read, better head back. 
    437437                { 
    438438                    Level.AmbientLight = 1; 
     
    451451 
    452452            } 
    453             //Timer textTimer = new Timer(); 
    454             //textTimer.Interval = 1; 
    455             //textTimer.Timeout += delegate 
    456             //{ 
    457             //    if (messages.Count < 1) 
    458             //    { 
    459             //        Keyboard.EnableAll(); 
    460             //        Level.AmbientLight = 1; 
    461             //        frame.Destroy(); 
    462             //        GetObjectsWithTag("labelWaitingToDie").ForEach(g => g.Destroy()); 
    463             //        textTimer.Stop(); 
    464             //        Pause(); 
    465             //        return; 
    466             //    } 
    467  
    468             //    var storyLabel = new Label(messages.Dequeue()) { TextColor = Color.White }; 
    469             //    storyLabel.Y = -midpoint + storyLabel.Height * messages.Count() + 1; 
    470             //    storyLabel.Tag = "labelWaitingToDie"; 
    471             //    Add(storyLabel); 
    472             //}; 
    473             //textTimer.Start(); 
    474453        } 
    475454    } 
  • 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabrielContent/level1.tmx

    r6622 r6624  
    11<?xml version="1.0" encoding="UTF-8"?> 
    2 <map version="1.0" orientation="orthogonal" renderorder="right-down" width="25" height="40" tilewidth="20" tileheight="20" nextobjectid="27"> 
     2<map version="1.0" orientation="orthogonal" renderorder="right-down" width="25" height="40" tilewidth="20" tileheight="20" nextobjectid="41"> 
    33 <tileset firstgid="1" name="testlevel4" tilewidth="20" tileheight="20"> 
    44  <image source="tileset.png" width="200" height="200"/> 
     
    2323  <object id="19" x="100" y="0" width="20" height="20"> 
    2424   <properties> 
    25     <property name="goto" value="testlevel@right"/> 
     25    <property name="goto" value="level2@bottom"/> 
    2626   </properties> 
    2727  </object> 
     
    3131   </properties> 
    3232  </object> 
     33  <object id="27" x="400" y="20" width="20" height="20"> 
     34   <properties> 
     35    <property name="goto" value="hobocave@bottom"/> 
     36   </properties> 
     37  </object> 
     38  <object id="28" x="480" y="360" width="20" height="20"> 
     39   <properties> 
     40    <property name="goto" value="level3@left"/> 
     41   </properties> 
     42  </object> 
    3343 </objectgroup> 
    3444 <objectgroup name="player"> 
     
    3646 </objectgroup> 
    3747 <objectgroup color="#a41b80" name="interactable"/> 
     48 <objectgroup color="#000000" name="blockade"> 
     49  <object id="29" x="80" y="0" width="20" height="40"/> 
     50  <object id="34" x="120" y="0" width="20" height="40"/> 
     51  <object id="35" x="100" y="20" width="20" height="20"/> 
     52 </objectgroup> 
     53 <objectgroup color="#55ff00" name="coyote"> 
     54  <object id="36" x="200" y="210" width="20" height="20"/> 
     55  <object id="37" x="400" y="730" width="20" height="20"/> 
     56  <object id="38" x="240" y="250" width="20" height="20"/> 
     57  <object id="39" x="450" y="90" width="20" height="20"/> 
     58  <object id="40" x="40" y="360" width="20" height="20"/> 
     59 </objectgroup> 
    3860</map> 
Note: See TracChangeset for help on using the changeset viewer.