diff --git a/images/animates.png b/images/animates.png index 20949a3a..01ff9157 100644 Binary files a/images/animates.png and b/images/animates.png differ diff --git a/images/meaning.txt b/images/meaning.txt index ff635d55..ed1e714b 100644 --- a/images/meaning.txt +++ b/images/meaning.txt @@ -22,7 +22,9 @@ 12,animates,24 # 毒网(经过中毒) 13,animates,25 # 衰网(经过衰弱) 14,animates,26 # 咒网(经过诅咒) +15,animates,31 # 水 # 可自行往后添加 +20,autotile,0 # Autotile ### 21-80 物品 ### # 消耗品 diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/autotile0.png b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile0.png new file mode 100644 index 00000000..18e92ecf Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile0.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/autotile1.png b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile1.png new file mode 100644 index 00000000..2dacd883 Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile1.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/autotile10.png b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile10.png new file mode 100644 index 00000000..82d9e269 Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile10.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/autotile11.png b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile11.png new file mode 100644 index 00000000..3eb0accc Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile11.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/autotile12.png b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile12.png new file mode 100644 index 00000000..9d456308 Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile12.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/autotile13.png b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile13.png new file mode 100644 index 00000000..d840f3c9 Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile13.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/autotile14.png b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile14.png new file mode 100644 index 00000000..f99e3034 Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile14.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/autotile2.png b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile2.png new file mode 100644 index 00000000..496bdc9a Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile2.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/autotile3.png b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile3.png new file mode 100644 index 00000000..c7a9179d Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile3.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/autotile4.png b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile4.png new file mode 100644 index 00000000..bd03b5da Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile4.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/autotile5.png b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile5.png new file mode 100644 index 00000000..5ac615f5 Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile5.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/autotile6.png b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile6.png new file mode 100644 index 00000000..daba005d Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile6.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/autotile7.png b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile7.png new file mode 100644 index 00000000..d08a3510 Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile7.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/autotile8.png b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile8.png new file mode 100644 index 00000000..c1968666 Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile8.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/autotile9.png b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile9.png new file mode 100644 index 00000000..7145c2cf Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/autotile9.png differ diff --git a/images/hero2.png b/images/常用素材:如需使用请直接替换目录中的对应文件/hero0.png similarity index 100% rename from images/hero2.png rename to images/常用素材:如需使用请直接替换目录中的对应文件/hero0.png diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/hero1.png b/images/常用素材:如需使用请直接替换目录中的对应文件/hero1.png new file mode 100644 index 00000000..0db106f3 Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/hero1.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/hero10.png b/images/常用素材:如需使用请直接替换目录中的对应文件/hero10.png new file mode 100644 index 00000000..d1e6243d Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/hero10.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/hero2.png b/images/常用素材:如需使用请直接替换目录中的对应文件/hero2.png new file mode 100644 index 00000000..6dfb4d8f Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/hero2.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/hero3.png b/images/常用素材:如需使用请直接替换目录中的对应文件/hero3.png new file mode 100644 index 00000000..309a0307 Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/hero3.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/hero4.png b/images/常用素材:如需使用请直接替换目录中的对应文件/hero4.png new file mode 100644 index 00000000..5c51ab94 Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/hero4.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/hero5.png b/images/常用素材:如需使用请直接替换目录中的对应文件/hero5.png new file mode 100644 index 00000000..03e819ec Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/hero5.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/hero6.png b/images/常用素材:如需使用请直接替换目录中的对应文件/hero6.png new file mode 100644 index 00000000..ce396cf2 Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/hero6.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/hero7.png b/images/常用素材:如需使用请直接替换目录中的对应文件/hero7.png new file mode 100644 index 00000000..d81650af Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/hero7.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/hero8.png b/images/常用素材:如需使用请直接替换目录中的对应文件/hero8.png new file mode 100644 index 00000000..5b5b0fec Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/hero8.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/hero9.png b/images/常用素材:如需使用请直接替换目录中的对应文件/hero9.png new file mode 100644 index 00000000..8c308889 Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/hero9.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/items0:经典.png b/images/常用素材:如需使用请直接替换目录中的对应文件/items0:经典.png new file mode 100644 index 00000000..c1458fe0 Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/items0:经典.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/items1:圆形宝石.png b/images/常用素材:如需使用请直接替换目录中的对应文件/items1:圆形宝石.png new file mode 100644 index 00000000..7150fe9f Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/items1:圆形宝石.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/terrains0:经典.png b/images/常用素材:如需使用请直接替换目录中的对应文件/terrains0:经典.png new file mode 100644 index 00000000..a28642a0 Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/terrains0:经典.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/terrains1:草地浅色.png b/images/常用素材:如需使用请直接替换目录中的对应文件/terrains1:草地浅色.png new file mode 100644 index 00000000..78134c13 Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/terrains1:草地浅色.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/terrains1:草地深色.png b/images/常用素材:如需使用请直接替换目录中的对应文件/terrains1:草地深色.png new file mode 100644 index 00000000..b5fc6cec Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/terrains1:草地深色.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/terrains2:冰雪.png b/images/常用素材:如需使用请直接替换目录中的对应文件/terrains2:冰雪.png new file mode 100644 index 00000000..fc980408 Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/terrains2:冰雪.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/terrains3.png b/images/常用素材:如需使用请直接替换目录中的对应文件/terrains3.png new file mode 100644 index 00000000..da690f39 Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/terrains3.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/terrains4:木板.png b/images/常用素材:如需使用请直接替换目录中的对应文件/terrains4:木板.png new file mode 100644 index 00000000..5f0e6442 Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/terrains4:木板.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/terrains5.png b/images/常用素材:如需使用请直接替换目录中的对应文件/terrains5.png new file mode 100644 index 00000000..643c3a99 Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/terrains5.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/terrains6:沙地.png b/images/常用素材:如需使用请直接替换目录中的对应文件/terrains6:沙地.png new file mode 100644 index 00000000..79730d6c Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/terrains6:沙地.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/terrains7:星空神殿.png b/images/常用素材:如需使用请直接替换目录中的对应文件/terrains7:星空神殿.png new file mode 100644 index 00000000..6e6ceec3 Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/terrains7:星空神殿.png differ diff --git a/images/常用素材:如需使用请直接替换目录中的对应文件/terrains8:一层小塔.png b/images/常用素材:如需使用请直接替换目录中的对应文件/terrains8:一层小塔.png new file mode 100644 index 00000000..6ac4277d Binary files /dev/null and b/images/常用素材:如需使用请直接替换目录中的对应文件/terrains8:一层小塔.png differ diff --git a/libs/core.js b/libs/core.js index 4f904d86..b77b2885 100644 --- a/libs/core.js +++ b/libs/core.js @@ -1719,6 +1719,12 @@ core.prototype.drawAutotileBlock = function (map, x, y, size, autotile, index) { } } +core.prototype.autotileExists = function (x, y, floorId) { + var block = core.getBlock(x,y,floorId); + if (block==null) return false; + return block.block.event.cls == 'autotile'; +} + core.prototype.noPassExists = function (x, y, floorId) { var block = core.getBlock(x,y,floorId); if (block==null) return false; diff --git a/libs/icons.js b/libs/icons.js index 63004e1f..0d54cad5 100644 --- a/libs/icons.js +++ b/libs/icons.js @@ -40,7 +40,7 @@ icons.prototype.init = function () { 'animates': { 'star': 0, 'lava': 1, - 'water': 2, + 'waterWall': 2, 'yellowDoor': 3, 'blueDoor': 4, 'redDoor': 5, @@ -68,7 +68,8 @@ icons.prototype.init = function () { 'downPortal': 27, 'leftPortal': 28, 'rightPortal': 29, - 'upPortal': 30 + 'upPortal': 30, + 'water': 31, }, 'npcs': { 'man': 0, diff --git a/libs/maps.js b/libs/maps.js index 48e35c02..d10c21ee 100644 --- a/libs/maps.js +++ b/libs/maps.js @@ -79,7 +79,10 @@ maps.prototype.getBlock = function (x, y, id) { if (id == 13) tmp.event = {'cls': 'animates', 'id': 'weakNet', 'noPass': false, 'trigger': 'passNet'}; // 衰网 if (id == 14) tmp.event = {'cls': 'animates', 'id': 'curseNet', 'noPass': false, 'trigger': 'passNet'}; // 咒网 - if (id == 20) tmp.event = {'cls': 'autotile', 'id': 'autotile', 'noPass': true}; + if (id == 15) tmp.event = {'cls': 'animates', 'id': 'water', 'noPass': true}; // 水 + + // autotile: 20 + if (id == 20) tmp.event = {'cls': 'autotile', 'id': 'autotile', 'noPass': true}; // autotile // 21-80 物品 if (id == 21) tmp.event = {'cls': 'items', 'id': 'yellowKey'}; // 黄钥匙 diff --git a/更新内容.txt b/更新内容.txt index 39e845ca..0c504483 100644 --- a/更新内容.txt +++ b/更新内容.txt @@ -1,6 +1,8 @@ -新增:支持Autotile +新增:可视化地图编辑工具 +新增:支持Autotile √ 新增:怪物支持双属性 √ -新增:单向箭头、感叹号 +新增:单向箭头、感叹号 √ +新增:怪物P图工具 快捷道具使用:1破2炸3飞;读档改为D键 √ -更多的默认素材;无需P图,直接替换即可 +更多的默认素材;无需P图,直接替换即可 √ 破甲、反击、净化等效果放全局变量 √