diff --git a/libs/events.js b/libs/events.js index 73497b87..0d63148c 100644 --- a/libs/events.js +++ b/libs/events.js @@ -1195,7 +1195,9 @@ events.prototype.changeFloor = function (floorId, stair, heroLoc, time, callback // 更改BGM if (core.isset(core.floors[floorId].bgm)) { - core.playBgm(core.floors[floorId].bgm); + var bgm = core.floors[floorId].bgm; + if (bgm instanceof Array) bgm = bgm[0]; + core.playBgm(bgm); } // 不存在事件时,更改画面色调 diff --git a/libs/ui.js b/libs/ui.js index a365323f..ea88e6ed 100644 --- a/libs/ui.js +++ b/libs/ui.js @@ -529,7 +529,7 @@ ui.prototype.drawTextBox = function(content) { core.clearMap("ui", content_left, content_top - 18, validWidth, top + height - content_top + 10); core.setAlpha('ui', textAttribute.background[3]); core.setFillStyle('ui', core.arrayToRGB(textAttribute.background)); - core.fillRect("ui", content_left, content_top - 18, validWidth, top + height - content_top + 10); + core.fillRect("ui", content_left, content_top - 18, validWidth, top + height - content_top + 11); core.setAlpha('ui', textAttribute.text[3]); core.setFillStyle('ui', core.arrayToRGB(textAttribute.text)); diff --git a/project/images/hero - 副本.png b/project/images/hero - 副本.png new file mode 100644 index 00000000..d81650af Binary files /dev/null and b/project/images/hero - 副本.png differ diff --git a/project/images/hero.png b/project/images/hero.png index d81650af..1cc9cb46 100644 Binary files a/project/images/hero.png and b/project/images/hero.png differ