diff --git a/libs/control.js b/libs/control.js index 8998ca2..b7a4032 100644 --- a/libs/control.js +++ b/libs/control.js @@ -196,6 +196,7 @@ control.prototype._animationFrame_globalAnimate = function (timestamp) { core.status.globalAnimateStatus++; if (core.status.floorId) { // Global Animate + core.status.globalAnimateObjs.forEach(function (block) { core.drawBlock(block, core.status.globalAnimateStatus); }); diff --git a/libs/maps.js b/libs/maps.js index ddca94e..19e63ea 100644 --- a/libs/maps.js +++ b/libs/maps.js @@ -1292,8 +1292,10 @@ maps.prototype.drawEvents = function (floorId, blocks, config) { core.clearMap('event'); core.clearMap('event2'); } + var toDrawCtx = core.getContextByName(config.ctx); if (!toDrawCtx) return; + var cacheCtx = toDrawCtx; if (config.onMap) { cacheCtx = core.bigmap.cacheCanvas; @@ -1784,8 +1786,13 @@ maps.prototype._drawThumbnail_drawTempCanvas = function (floorId, blocks, option maps.prototype._drawThumbnail_realDrawTempCanvas = function (floorId, blocks, options) { // 缩略图:背景 this.drawBg(floorId, options); + options.ctx.shadowColor = "black"; + options.ctx.shadowBlur = 5; + options.ctx.shadowOffsetX = 5; + options.ctx.shadowOffsetY = 5; // 缩略图:事件 this.drawEvents(floorId, blocks, options); + options.ctx.shadowColor = "transparent"; // 缩略图:勇士 if (options.heroLoc) { options.heroIcon = options.heroIcon || core.status.hero.image || 'hero.png'; diff --git a/project/floors/yiqu3.js b/project/floors/yiqu3.js index 551efe4..58d1199 100644 --- a/project/floors/yiqu3.js +++ b/project/floors/yiqu3.js @@ -80,7 +80,7 @@ main.floors.yiqu3= [140,140,140204,140206,140206, 0,140206,140206,140203,140,110204,110206,110206], [140,140,140199,170255,170252, 91,170254,170255,140197,140,140199,130192,130193], [140206,140206,140207,170263,170260,203,170262,170263,140205,140206,140207,130200,130201], - [130193,130193,130194,71835,170268, 0,170270,90648,130192,130193,130194, 31, 0], + [130193,130193,130194,170271,170268, 0,170270,90648,130192,130193,130194, 31, 0], [130201,130201,130202,71843,110122,205,110122,90649,130200,130201,130202, 0, 21], [140101, 0,202, 0,421, 0,421, 0, 31, 0, 82, 21, 0], [140109,201,201021,220013, 81,220013,220013,201021, 81,220013,220013,220013,220013], @@ -98,7 +98,7 @@ main.floors.yiqu3= [ 0, 0, 0, 0, 0,140206,110319, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0,170253,110327, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0,110335, 0, 0, 0, 0, 0, 0], - [ 0, 0, 0, 0,110114, 0,110114, 0, 0, 0, 0, 0, 0], + [ 0, 0, 0,71835,110114, 0,110114, 0, 0, 0, 0, 0, 0], [140093, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,201021,71784], diff --git a/project/plugins.js b/project/plugins.js index 885eee5..73f701b 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -2,7 +2,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = { "init": function () { this._afterLoadResources = function () { - core.canvas.event.canvas.style.filter = "drop-shadow(5px 5px 5px black)" + core.canvas.event.canvas.style.filter = 'drop-shadow(5px 5px 5px black)'; core.setTaskFloor = {} core.mitTaskFloor = {} core.tarTaskFloor = {} diff --git a/styles.css b/styles.css index 139471b..ab2fc66 100644 --- a/styles.css +++ b/styles.css @@ -544,9 +544,9 @@ p#name { } /* 注释下面这三行以开启抗锯齿 */ -/* .anti-aliasing { + .anti-aliasing { image-rendering: pixelated; -} */ +} .warning { transition: left cubic-bezier(0, 0.9, 1, 0.1) 2.5s;