diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-02 02:13:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-02 02:13:32 +0300 |
commit | 15fd117bffbb134339711b5e327e1cf35f742c14 (patch) | |
tree | 1822ea82db931d7671b9bfaafa692e9db9288607 /hercules/code/clienttoserver/maps.py | |
parent | c78db17d02605fc1c5eecb0f50f44479634249e3 (diff) | |
download | evol-tools-15fd117bffbb134339711b5e327e1cf35f742c14.tar.gz evol-tools-15fd117bffbb134339711b5e327e1cf35f742c14.tar.bz2 evol-tools-15fd117bffbb134339711b5e327e1cf35f742c14.tar.xz evol-tools-15fd117bffbb134339711b5e327e1cf35f742c14.zip |
Dont recode tmx to gat collision.
Diffstat (limited to 'hercules/code/clienttoserver/maps.py')
-rw-r--r-- | hercules/code/clienttoserver/maps.py | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/hercules/code/clienttoserver/maps.py b/hercules/code/clienttoserver/maps.py index 995aca1..d533335 100644 --- a/hercules/code/clienttoserver/maps.py +++ b/hercules/code/clienttoserver/maps.py @@ -93,10 +93,24 @@ def recreateMapCache(): tileType = 0 else: tileType = tile - firstgid; - if tileType == 0 or tileType == 4: - tiles.append(0) - else: - tiles.append(1) + # tmw collision format + # 0 - walkable ground + # 1 - non walkable wall + # 2 - air allowed shootable too + # 3 - water allowed water, shootable too + # 4 - sit, walkable ground + # 5 - none + + # server collision format + # 000 0 - walkable, shootable + # 001 1 - wall + # 010 2 - same with 0 + # 011 3 - walkable, shootable, water + # 100 4 - same with 0 + # 101 5 - shootable + # 110 6 - same with 0 + # 111 7 - none + tiles.append(tileType) except: None f.close() |