- Timestamp:
- 2015-07-01 22:47:49 (8 years ago)
- Location:
- 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/Item.cs
r6705 r6712 260 260 expl.ShockwaveReachesObject += delegate(IPhysicsObject o, Vector vector) 261 261 { 262 if (o.Tag == "boss")263 {264 ((TheLegendOfGabriel)Game.Instance).BossHealth.Value--;265 }266 267 262 var cre = o as Creature; 268 263 if (cre != null) -
2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/LevelCreation.cs
r6709 r6712 51 51 void CreateEncounter(Vector position, double width, double height, Angle angle, Shape shape, string name, Dictionary<string, string> properties) 52 52 { 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 } 56 59 } 57 60 … … 189 192 enemy.Health.Value--; 190 193 }); 191 194 192 195 enemy.Health.LowerLimit += delegate 193 196 { … … 294 297 { 295 298 destroyable.Destroy(); 299 destroyable.Tag = "none"; 296 300 }); 297 301 -
2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel.cs
r6711 r6712 166 166 LoadAnimations(); 167 167 StartGame(); 168 BuildUI(); 168 169 Intro(); 169 BuildUI();170 170 } 171 171 … … 294 294 }), LetterImage)); 295 295 296 //ShowTextItem(storyItem [0]);296 //ShowTextItem(storyItems[0]); 297 297 } 298 298 … … 304 304 Level.AmbientLight -= 0.75; 305 305 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 }; 307 307 Add(frame, 2); 308 308 -
2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabrielContent/LegendOfGabrielTileset.tsx
r6710 r6712 8 8 </tile> 9 9 <tile id="16"> 10 <properties> 11 <property name="collide" value="true"/> 12 </properties> 13 </tile> 14 <tile id="23"> 10 15 <properties> 11 16 <property name="collide" value="true"/> -
2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabrielContent/level1.tmx
r6710 r6712 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <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> 4 71 <layer name="base" width="25" height="40"> 5 72 <data encoding="base64" compression="zlib"> 6 eJztkzE OgDAIRYlDnRy4gfc/ZWPiQBqkjfIxIQxvEv5LAZmIWLALGMSVfQpHE6z0a3Vt4BCM3yzXU63GiuMrEY6iKPKw3aDzUQ50frY3oPL/2kfETtBzy+Co/3B+Q4ib0jIjHJ4zf+uY1XvM3urz2q3V7zX7yBuMdkS8wcOFdnRJ+hei73 eJztkzEKgDAMRYtDnRx6A+9/yiI4hFKTqP+nUDq8ySSP/sSSUiqCXVBIXLNP4cgCT3+vLjccgvab5nqq7eFx/CXCsVgs5mG7Yc9nOdjzR7yB4WFnNGofETth5zaDY8b/EH1DjJvqzYxwIDP/6rDqEdlrfajdav2o7CNv8E1mCId1Fx6P9QbvjtAO7RZaXwXySxdC 7 74 </data> 8 75 </layer> … … 47 114 </objectgroup> 48 115 <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>54 116 <objectgroup color="#55ff00" name="coyote"> 55 117 <object id="36" x="200" y="210" width="20" height="20"/> -
2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabrielContent/level2.tmx
r6632 r6712 3 3 <tileset firstgid="1" source="LegendOfGabrielTileset.tsx"/> 4 4 <layer name="base" width="25" height="25"> 5 <properties> 6 <property name="collide" value="true"/> 7 </properties> 5 8 <data encoding="base64" compression="zlib"> 6 eJwTZGBgEBzFo3gUj+JRPIpH8 aDDTDQylw1qNq3MR7aDluHDRmN7mNDsoKY9TEiYDY1PrD0AH9ooVA==9 eJwTZGBgEBzFo3gUj+JRPIpH8YBgJhqZywY1m1bmI9tBy/Bho7E9TGh2UNseJiQ7mNAwpWYDAARyKGM= 7 10 </data> 8 11 </layer> 9 12 <layer name="decoration" width="25" height="25"> 10 13 <data encoding="base64" compression="zlib"> 11 eJxjYBgFo2AUjIJRMAp GwUgCrKN2DAs7ACLEABo=14 eJxjYBgFo2AUjIJRMApoAwShmBbmDmUgRgc7WEftIMsOCRrbIYFGUwIAG2MAqw== 12 15 </data> 13 16 </layer> … … 16 19 <property name="goto" value="level1@top"/> 17 20 </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"> 19 22 <properties> 20 23 <property name="goto" value="level1@tunnelblockade"/>
Note: See TracChangeset
for help on using the changeset viewer.