Update animates
This commit is contained in:
parent
3ead5eab94
commit
24d185406a
@ -842,7 +842,7 @@ events.prototype.openDoor = function (id, x, y, needKey, callback) {
|
|||||||
if (core.interval.openDoorAnimate!=null) return;
|
if (core.interval.openDoorAnimate!=null) return;
|
||||||
|
|
||||||
// 是否存在门
|
// 是否存在门
|
||||||
if (!core.terrainExists(x, y, id)) {
|
if (!core.terrainExists(x, y, id) && id!='lava' && id!='star') {
|
||||||
if (core.isset(callback)) callback();
|
if (core.isset(callback)) callback();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -876,6 +876,7 @@ events.prototype.openDoor = function (id, x, y, needKey, callback) {
|
|||||||
}
|
}
|
||||||
var door = core.material.icons.animates[doorId];
|
var door = core.material.icons.animates[doorId];
|
||||||
core.status.replay.animate=true;
|
core.status.replay.animate=true;
|
||||||
|
core.removeGlobalAnimate(x,y);
|
||||||
core.interval.openDoorAnimate = window.setInterval(function () {
|
core.interval.openDoorAnimate = window.setInterval(function () {
|
||||||
state++;
|
state++;
|
||||||
if (state == 4) {
|
if (state == 4) {
|
||||||
|
|||||||
@ -56,36 +56,31 @@ icons_4665ee12_3a1f_44a4_bea3_0fccba634dc1 =
|
|||||||
'animates': {
|
'animates': {
|
||||||
'star': 0,
|
'star': 0,
|
||||||
'lava': 1,
|
'lava': 1,
|
||||||
'waterWall': 2,
|
'blueWater': 2,
|
||||||
'yellowDoor': 3,
|
'water': 3,
|
||||||
'blueDoor': 4,
|
'yellowDoor': 4,
|
||||||
'redDoor': 5,
|
'blueDoor': 5,
|
||||||
'greenDoor': 6,
|
'redDoor': 6,
|
||||||
'specialDoor': 7,
|
'greenDoor': 7,
|
||||||
'blueWallDoor': 8,
|
'specialDoor': 8,
|
||||||
'yellowWallDoor': 9,
|
'steelDoor': 9,
|
||||||
'whiteWallDoor': 10,
|
'yellowWallDoor': 10,
|
||||||
'steelDoor': 11,
|
'whiteWallDoor': 11,
|
||||||
'lavaDoor': 12,
|
'blueWallDoor': 12,
|
||||||
'grayLavaDoor': 13,
|
'lavaDoor': 13,
|
||||||
'starDoor': 14,
|
'starDoor': 14,
|
||||||
'mockBlueWallDoor': 15,
|
'starPortal': 15,
|
||||||
'mockYellowWallDoor': 16,
|
//'exclamation': 16,
|
||||||
'mockWhiteWallDoor': 17,
|
'portal': 17,
|
||||||
'iceYellowWallDoor': 18,
|
//'switch': 18,
|
||||||
'starPortal': 19,
|
'lavaNet': 19,
|
||||||
'exclamation': 20,
|
'poisonNet': 20,
|
||||||
'portal': 21,
|
'weakNet': 21,
|
||||||
'switch': 22,
|
'curseNet': 22,
|
||||||
'lavaNet': 23,
|
'downPortal': 23,
|
||||||
'poisonNet': 24,
|
'leftPortal': 24,
|
||||||
'weakNet': 25,
|
'rightPortal': 25,
|
||||||
'curseNet': 26,
|
'upPortal': 26,
|
||||||
'downPortal': 27,
|
|
||||||
'leftPortal': 28,
|
|
||||||
'rightPortal': 29,
|
|
||||||
'upPortal': 30,
|
|
||||||
'water': 31,
|
|
||||||
},
|
},
|
||||||
'npcs': {
|
'npcs': {
|
||||||
'man': 0,
|
'man': 0,
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 25 KiB |
@ -17,7 +17,8 @@ maps_90f36752_8815_4be8_b32b_d7fad1d0542e =
|
|||||||
'12':{'cls': 'animates', 'id': 'poisonNet', 'noPass': false, 'trigger': 'passNet'}, // 毒网
|
'12':{'cls': 'animates', 'id': 'poisonNet', 'noPass': false, 'trigger': 'passNet'}, // 毒网
|
||||||
'13':{'cls': 'animates', 'id': 'weakNet', 'noPass': false, 'trigger': 'passNet'}, // 衰网
|
'13':{'cls': 'animates', 'id': 'weakNet', 'noPass': false, 'trigger': 'passNet'}, // 衰网
|
||||||
'14':{'cls': 'animates', 'id': 'curseNet', 'noPass': false, 'trigger': 'passNet'}, // 咒网
|
'14':{'cls': 'animates', 'id': 'curseNet', 'noPass': false, 'trigger': 'passNet'}, // 咒网
|
||||||
'15':{'cls': 'animates', 'id': 'water', 'noPass': true}, // 水
|
'15':{'cls': 'animates', 'id': 'blueWater', 'noPass': true}, // 水
|
||||||
|
'16':{'cls': 'animates', 'id': 'water', 'noPass': true}, // 水
|
||||||
// 在这里添加更多地形
|
// 在这里添加更多地形
|
||||||
// 如果空位不足,可以从180以后开始继续放,只要不和现有的数字冲突即可
|
// 如果空位不足,可以从180以后开始继续放,只要不和现有的数字冲突即可
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user