更多的默认素材

This commit is contained in:
ckcz123 committed 2017-12-17 21:04:07 +08:00
1 parent 0de35b6258
commit 4df095ffc5
42 files changed
+13 -6

No files matched your search

+3 -2
View File
@@ -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,
+3 -1
View File
@@ -78,8 +78,10 @@ maps.prototype.getBlock = function (x, y, id) {
if (id == 12) tmp.event = {'cls': 'animates', 'id': 'poisonNet', 'noPass': false, 'trigger': 'passNet'}; // 毒网
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 == 15) tmp.event = {'cls': 'animates', 'id': 'water', 'noPass': true}; // 水
if (id == 20) tmp.event = {'cls': 'autotile', 'id': 'autotile', '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'}; // 黄钥匙