Door fix
This commit is contained in:
parent
e263b9d4fc
commit
bf04d373b9
2 changed files with 21 additions and 16 deletions
|
@ -1,8 +1,13 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<map version="1.10" tiledversion="1.10.2" orientation="orthogonal" renderorder="left-up" width="30" height="20" tilewidth="16" tileheight="16" infinite="1" nextlayerid="13" nextobjectid="79">
|
<map version="1.10" tiledversion="1.10.2" orientation="orthogonal" renderorder="left-up" width="30" height="20" tilewidth="16" tileheight="16" infinite="1" nextlayerid="15" nextobjectid="80">
|
||||||
<tileset firstgid="1" source="map.tsx"/>
|
<tileset firstgid="1" name="map" tilewidth="16" tileheight="16" tilecount="871" columns="13">
|
||||||
<tileset firstgid="872" source="Door.tsx"/>
|
<image source="tiles.BMP" width="208" height="1072"/>
|
||||||
<layer id="1" name="Collidable" class="StopTile" width="30" height="20" visible="0" offsetx="-352.033" offsety="192.098">
|
</tileset>
|
||||||
|
<tileset firstgid="872" name="Door" tilewidth="32" tileheight="48" tilecount="2" columns="2">
|
||||||
|
<image source="doors.png" width="64" height="48"/>
|
||||||
|
</tileset>
|
||||||
|
<tileset firstgid="874" source="../../../../../Desktop/deathAnimation.tsx"/>
|
||||||
|
<layer id="1" name="Collidable" class="StopTile" width="30" height="20" offsetx="-352.033" offsety="192.098">
|
||||||
<data encoding="csv">
|
<data encoding="csv">
|
||||||
<chunk x="0" y="-16" width="16" height="16">
|
<chunk x="0" y="-16" width="16" height="16">
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
@ -32,13 +37,13 @@
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,272,0,272,0,0,0,0,0,0,0,0,0,0,
|
||||||
52,52,52,52,0,52,52,52,52,52,52,52,52,52,52,52,
|
52,52,52,52,0,52,52,52,52,52,52,52,52,52,52,52,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
272,0,0,0,0,0,0,0,272,0,0,0,0,0,0,0
|
||||||
</chunk>
|
</chunk>
|
||||||
<chunk x="32" y="-16" width="16" height="16">
|
<chunk x="32" y="-16" width="16" height="16">
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
@ -136,13 +141,13 @@
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,272,0,0,0,0,0,272,0,0,0,0,0,0,0,0,
|
||||||
52,52,0,0,0,0,0,52,52,52,52,52,52,52,52,52,
|
52,52,0,0,0,0,0,52,52,52,52,52,52,52,52,52,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,272,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
52,52,52,0,0,0,52,52,52,52,52,52,52,52,52,52,
|
52,52,52,0,0,0,52,52,52,52,52,52,52,52,52,52,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
@ -414,13 +419,13 @@
|
||||||
29,29,29,29,0,0,157,157,167,157,157,157,157,157,260,157,
|
29,29,29,29,0,0,157,157,167,157,157,157,157,157,260,157,
|
||||||
29,29,29,29,0,0,157,157,180,157,254,255,157,157,260,157,
|
29,29,29,29,0,0,157,157,180,157,254,255,157,157,260,157,
|
||||||
29,29,29,29,0,0,157,157,193,157,267,268,157,157,260,157,
|
29,29,29,29,0,0,157,157,193,157,267,268,157,157,260,157,
|
||||||
29,29,29,29,0,0,204,204,204,204,280,281,204,272,260,272,
|
29,29,29,29,0,0,204,204,204,204,280,281,204,0,260,0,
|
||||||
29,29,29,29,0,0,147,199,148,0,0,0,0,0,260,0,
|
29,29,29,29,0,0,147,199,148,0,0,0,0,0,260,0,
|
||||||
29,29,29,29,0,0,147,199,148,144,144,144,144,144,260,144,
|
29,29,29,29,0,0,147,199,148,144,144,144,144,144,260,144,
|
||||||
29,29,29,29,0,0,147,199,148,157,157,157,157,157,260,157,
|
29,29,29,29,0,0,147,199,148,157,157,157,157,157,260,157,
|
||||||
29,29,29,29,0,0,147,199,148,157,157,157,157,157,260,157,
|
29,29,29,29,0,0,147,199,148,157,157,157,157,157,260,157,
|
||||||
29,29,29,29,0,0,147,199,148,157,157,157,157,157,260,157,
|
29,29,29,29,0,0,147,199,148,157,157,157,157,157,260,157,
|
||||||
29,29,29,29,0,0,147,199,148,204,272,157,157,157,260,157,
|
29,29,29,29,0,0,147,199,148,204,0,157,157,157,260,157,
|
||||||
29,29,29,29,0,0,147,199,148,0,0,157,157,157,260,157,
|
29,29,29,29,0,0,147,199,148,0,0,157,157,157,260,157,
|
||||||
29,29,29,29,0,0,147,199,148,144,144,157,157,157,260,157,
|
29,29,29,29,0,0,147,199,148,144,144,157,157,157,260,157,
|
||||||
29,29,29,29,0,0,147,199,148,157,157,157,157,157,260,157,
|
29,29,29,29,0,0,147,199,148,157,157,157,157,157,260,157,
|
||||||
|
@ -438,7 +443,7 @@
|
||||||
157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,
|
157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,
|
||||||
157,157,157,157,157,157,258,157,157,157,149,152,157,157,157,157,
|
157,157,157,157,157,157,258,157,157,157,149,152,157,157,157,157,
|
||||||
157,157,157,157,157,157,271,157,157,157,150,153,157,696,697,157,
|
157,157,157,157,157,157,271,157,157,157,150,153,157,696,697,157,
|
||||||
157,157,272,204,204,204,284,204,204,204,151,154,204,709,710,204,
|
157,157,0,204,204,204,284,204,204,204,151,154,204,709,710,204,
|
||||||
157,157,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
157,157,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
157,157,144,144,144,144,144,144,144,144,144,144,144,144,144,144,
|
157,157,144,144,144,144,144,144,144,144,144,144,144,144,144,144,
|
||||||
157,157,157,157,157,157,157,157,157,157,157,167,157,157,209,210,
|
157,157,157,157,157,157,157,157,157,157,157,167,157,157,209,210,
|
||||||
|
@ -500,13 +505,13 @@
|
||||||
</chunk>
|
</chunk>
|
||||||
<chunk x="0" y="0" width="16" height="16">
|
<chunk x="0" y="0" width="16" height="16">
|
||||||
29,29,29,29,0,0,147,199,148,157,157,157,157,157,260,157,
|
29,29,29,29,0,0,147,199,148,157,157,157,157,157,260,157,
|
||||||
29,29,29,29,0,0,160,200,161,204,204,272,157,157,260,157,
|
29,29,29,29,0,0,160,200,161,204,204,0,157,157,260,157,
|
||||||
29,29,29,29,0,0,0,0,0,0,0,0,157,157,260,157,
|
29,29,29,29,0,0,0,0,0,0,0,0,157,157,260,157,
|
||||||
29,29,29,29,0,0,144,144,144,144,144,144,157,157,260,157,
|
29,29,29,29,0,0,144,144,144,144,144,144,157,157,260,157,
|
||||||
29,29,29,29,0,0,157,167,157,157,157,157,157,157,260,157,
|
29,29,29,29,0,0,157,167,157,157,157,157,157,157,260,157,
|
||||||
29,29,29,29,0,0,157,180,157,149,152,157,157,157,260,157,
|
29,29,29,29,0,0,157,180,157,149,152,157,157,157,260,157,
|
||||||
29,29,29,29,0,0,157,193,157,150,153,157,157,157,260,157,
|
29,29,29,29,0,0,157,193,157,150,153,157,157,157,260,157,
|
||||||
6,29,29,29,0,0,204,204,204,151,154,204,272,157,260,157,
|
6,29,29,29,0,0,204,204,204,151,154,204,0,157,260,157,
|
||||||
29,29,29,29,0,0,0,0,0,0,0,0,0,157,260,157,
|
29,29,29,29,0,0,0,0,0,0,0,0,0,157,260,157,
|
||||||
29,29,29,29,0,0,144,144,144,144,144,144,144,157,260,157,
|
29,29,29,29,0,0,144,144,144,144,144,144,144,157,260,157,
|
||||||
29,29,29,29,0,0,157,157,157,157,157,157,157,219,220,221,
|
29,29,29,29,0,0,157,157,157,157,157,157,157,219,220,221,
|
||||||
|
@ -518,7 +523,7 @@
|
||||||
</chunk>
|
</chunk>
|
||||||
<chunk x="16" y="0" width="16" height="16">
|
<chunk x="16" y="0" width="16" height="16">
|
||||||
157,157,157,157,267,268,157,696,697,157,157,193,157,157,235,236,
|
157,157,157,157,267,268,157,696,697,157,157,193,157,157,235,236,
|
||||||
157,272,204,204,280,281,204,709,710,204,204,204,204,204,204,204,
|
157,0,204,204,280,281,204,709,710,204,204,204,204,204,204,204,
|
||||||
157,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
157,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
157,144,144,144,144,144,144,144,144,144,144,144,144,144,144,144,
|
157,144,144,144,144,144,144,144,144,144,144,144,144,144,144,144,
|
||||||
157,157,157,178,179,157,157,157,157,157,157,157,157,157,157,157,
|
157,157,157,178,179,157,157,157,157,157,157,157,157,157,157,157,
|
||||||
|
|
|
@ -108,8 +108,8 @@ namespace DangerousD.GameCore.Managers
|
||||||
}
|
}
|
||||||
else if (type.Equals(typeof(Door)))
|
else if (type.Equals(typeof(Door)))
|
||||||
{
|
{
|
||||||
int gid = entity.Attributes["type"] is not null ? int.Parse(entity.Attributes["type"].Value) : 0;
|
int gid = entity.Attributes["gid"] is not null ? int.Parse(entity.Attributes["gid"].Value) : 0;
|
||||||
inst = (Entity)Activator.CreateInstance(type, pos, new Vector2(32, 48), new Rectangle(0, 0, 32, 48));
|
inst = (Entity)Activator.CreateInstance(type, pos, new Vector2(32, 48), new Rectangle((gid - 872)*32, 0, 32, 48));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue