Changeset 6712 for 2015/27/ohjaajat


Ignore:
Timestamp:
2015-07-01 22:47:49 (4 years ago)
Author:
empaheik
Message:
 
Location:
2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel
Files:
7 edited

Legend:

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

    r6705 r6712  
    260260                expl.ShockwaveReachesObject += delegate(IPhysicsObject o, Vector vector) 
    261261                { 
    262                     if (o.Tag == "boss") 
    263                     { 
    264                         ((TheLegendOfGabriel)Game.Instance).BossHealth.Value--; 
    265                     } 
    266  
    267262                    var cre = o as Creature; 
    268263                    if (cre != null) 
  • 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/LevelCreation.cs

    r6709 r6712  
    5151    void CreateEncounter(Vector position, double width, double height, Angle angle, Shape shape, string name, Dictionary<string, string> properties) 
    5252    { 
    53         PhysicsObject invisible = new PhysicsObject(width, height) {IsVisible = false, Tag = "storyTime"}; 
    54         invisible.MakeStatic(); 
    55         Add(invisible); 
     53        if (storyItems.Count < 2) 
     54        { 
     55            PhysicsObject invisible = new PhysicsObject(width, height) { IsVisible = false, Tag = "storyTime" }; 
     56            invisible.MakeStatic(); 
     57            Add(invisible); 
     58        } 
    5659    } 
    5760 
     
    189192            enemy.Health.Value--; 
    190193        }); 
    191  
     194         
    192195        enemy.Health.LowerLimit += delegate 
    193196        { 
     
    294297            { 
    295298               destroyable.Destroy(); 
     299               destroyable.Tag = "none"; 
    296300            }); 
    297301         
  • 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel.cs

    r6711 r6712  
    166166        LoadAnimations(); 
    167167        StartGame(); 
     168        BuildUI(); 
    168169        Intro(); 
    169         BuildUI(); 
    170170    } 
    171171 
     
    294294        }), LetterImage)); 
    295295 
    296         //ShowTextItem(storyItem[0]); 
     296        //ShowTextItem(storyItems[0]); 
    297297    } 
    298298 
     
    304304        Level.AmbientLight -= 0.75; 
    305305 
    306         frame = new GameObject(item.InventoryImage) { Width = Window.Width * 0.25, Height = Window.Height * 0.25, Position = player.Position }; 
     306        frame = new GameObject(item.InventoryImage) { Width = Window.Width * 0.25, Height = Window.Height * 0.25, Position = Camera.Position }; 
    307307        Add(frame, 2); 
    308308 
  • 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabrielContent/LegendOfGabrielTileset.tsx

    r6710 r6712  
    88 </tile> 
    99 <tile id="16"> 
     10  <properties> 
     11   <property name="collide" value="true"/> 
     12  </properties> 
     13 </tile> 
     14 <tile id="23"> 
    1015  <properties> 
    1116   <property name="collide" value="true"/> 
  • 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabrielContent/level1.tmx

    r6710 r6712  
    11<?xml version="1.0" encoding="UTF-8"?> 
    22<map version="1.0" orientation="orthogonal" renderorder="right-down" width="25" height="40" tilewidth="20" tileheight="20" nextobjectid="45"> 
    3  <tileset firstgid="1" source="LegendOfGabrielTileset.tsx"/> 
     3 <tileset firstgid="1" name="LegendOfGabrielTileset" tilewidth="20" tileheight="20"> 
     4  <image source="tileset.png" width="200" height="200"/> 
     5  <tile id="2"> 
     6   <properties> 
     7    <property name="collide" value="true"/> 
     8   </properties> 
     9  </tile> 
     10  <tile id="6"> 
     11   <properties> 
     12    <property name="collide" value="true"/> 
     13   </properties> 
     14  </tile> 
     15  <tile id="16"> 
     16   <properties> 
     17    <property name="collide" value="true"/> 
     18   </properties> 
     19  </tile> 
     20  <tile id="70"> 
     21   <properties> 
     22    <property name="damage" value="true"/> 
     23   </properties> 
     24  </tile> 
     25  <tile id="71"> 
     26   <properties> 
     27    <property name="damage" value="true"/> 
     28   </properties> 
     29  </tile> 
     30  <tile id="72"> 
     31   <properties> 
     32    <property name="damage" value="true"/> 
     33   </properties> 
     34  </tile> 
     35  <tile id="80"> 
     36   <properties> 
     37    <property name="damage" value="true"/> 
     38   </properties> 
     39  </tile> 
     40  <tile id="81"> 
     41   <properties> 
     42    <property name="damage" value="true"/> 
     43   </properties> 
     44  </tile> 
     45  <tile id="82"> 
     46   <properties> 
     47    <property name="damage" value="true"/> 
     48   </properties> 
     49  </tile> 
     50  <tile id="90"> 
     51   <properties> 
     52    <property name="damage" value="true"/> 
     53   </properties> 
     54  </tile> 
     55  <tile id="91"> 
     56   <properties> 
     57    <property name="damage" value="true"/> 
     58   </properties> 
     59  </tile> 
     60  <tile id="92"> 
     61   <properties> 
     62    <property name="damage" value="true"/> 
     63   </properties> 
     64  </tile> 
     65  <tile id="93"> 
     66   <properties> 
     67    <property name="damage" value="false"/> 
     68   </properties> 
     69  </tile> 
     70 </tileset> 
    471 <layer name="base" width="25" height="40"> 
    572  <data encoding="base64" compression="zlib"> 
    6    eJztkzEOgDAIRYlDnRy4gfc/ZWPiQBqkjfIxIQxvEv5LAZmIWLALGMSVfQpHE6z0a3Vt4BCM3yzXU63GiuMrEY6iKPKw3aDzUQ50frY3oPL/2kfETtBzy+Co/3B+Q4ib0jIjHJ4zf+uY1XvM3urz2q3V7zX7yBuMdkS8wcOFdnRJ+hei 
     73   eJztkzEKgDAMRYtDnRx6A+9/yiI4hFKTqP+nUDq8ySSP/sSSUiqCXVBIXLNP4cgCT3+vLjccgvab5nqq7eFx/CXCsVgs5mG7Yc9nOdjzR7yB4WFnNGofETth5zaDY8b/EH1DjJvqzYxwIDP/6rDqEdlrfajdav2o7CNv8E1mCId1Fx6P9QbvjtAO7RZaXwXySxdC 
    774  </data> 
    875 </layer> 
     
    47114 </objectgroup> 
    48115 <objectgroup color="#a41b80" name="interactable"/> 
    49  <objectgroup color="#000000" name="blockade"> 
    50   <object id="29" x="80" y="0" width="20" height="40"/> 
    51   <object id="34" x="120" y="0" width="20" height="40"/> 
    52   <object id="35" x="100" y="20" width="20" height="20"/> 
    53  </objectgroup> 
    54116 <objectgroup color="#55ff00" name="coyote"> 
    55117  <object id="36" x="200" y="210" width="20" height="20"/> 
  • 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabrielContent/level2.tmx

    r6632 r6712  
    33 <tileset firstgid="1" source="LegendOfGabrielTileset.tsx"/> 
    44 <layer name="base" width="25" height="25"> 
     5  <properties> 
     6   <property name="collide" value="true"/> 
     7  </properties> 
    58  <data encoding="base64" compression="zlib"> 
    6    eJwTZGBgEBzFo3gUj+JRPIpH8aDDTDQylw1qNq3MR7aDluHDRmN7mNDsoKY9TEiYDY1PrD0AH9ooVA== 
     9   eJwTZGBgEBzFo3gUj+JRPIpH8YBgJhqZywY1m1bmI9tBy/Bho7E9TGh2UNseJiQ7mNAwpWYDAARyKGM= 
    710  </data> 
    811 </layer> 
    912 <layer name="decoration" width="25" height="25"> 
    1013  <data encoding="base64" compression="zlib"> 
    11    eJxjYBgFo2AUjIJRMApGwUgCrKN2DAs7ACLEABo= 
     14   eJxjYBgFo2AUjIJRMApoAwShmBbmDmUgRgc7WEftIMsOCRrbIYFGUwIAG2MAqw== 
    1215  </data> 
    1316 </layer> 
     
    1619   <property name="goto" value="level1@top"/> 
    1720  </properties> 
    18   <object id="3" name="bottom" x="220" y="480" width="20" height="20"> 
     21  <object id="3" name="bottom" x="80" y="480" width="20" height="20"> 
    1922   <properties> 
    2023    <property name="goto" value="level1@tunnelblockade"/> 
Note: See TracChangeset for help on using the changeset viewer.