clearMap all

This commit is contained in:
ckcz123 2018-12-18 14:02:22 +08:00
parent 515deab7c9
commit 457ef09e89
5 changed files with 5 additions and 10 deletions

View File

@ -2198,7 +2198,6 @@ if (core.getFlag("door",0)==2) {
var replaying = core.status.replay.replaying;
core.stopReplay();
core.waitHeroToStop(function() {
core.removeGlobalAnimate(0,0,true);
core.clearMap('all'); // 清空全地图
core.deleteAllCanvas();
core.drawText([

View File

@ -223,14 +223,10 @@ events.prototype.lose = function (reason) {
////// 游戏结束 //////
events.prototype.gameOver = function (ending, fromReplay, norank) {
// 清空图片和天气
core.clearMap('animate');
core.clearMap('weather');
core.clearMap('all');
core.deleteAllCanvas();
core.dom.gif2.innerHTML = "";
core.animateFrame.weather.type = null;
core.animateFrame.weather.level = 0;
core.animateFrame.weather.nodes = [];
core.setFg(null, 0);
core.setWeather();
core.ui.closePanel();
// 下载录像

View File

@ -482,7 +482,6 @@ maps.prototype.drawMap = function (floorId, callback) {
return;
}
core.clearMap('all');
core.removeGlobalAnimate(null, null, true);
var drawBg = function(){
var width = core.floors[floorId].width || 13;

View File

@ -32,6 +32,7 @@ ui.prototype.clearMap = function (name, x, y, width, height) {
core.canvas[m].clearRect(0, 0, core.bigmap.width*32, core.bigmap.height*32);
}
core.dom.gif.innerHTML = "";
core.removeGlobalAnimate(0,0,true);
}
else {
var ctx = this.getContextByName(name);

View File

@ -58,9 +58,9 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
var replaying = core.status.replay.replaying;
core.stopReplay();
core.waitHeroToStop(function() {
core.removeGlobalAnimate(0,0,true);
core.clearMap('all'); // 清空全地图
core.deleteAllCanvas(); // 删除所有创建的画布
core.dom.gif2.innerHTML = "";
// 请注意:
// 成绩统计时是按照hp进行上传并排名因此光在这里改${status:hp}是无效的
// 如需按照其他的的分数统计方式请先将hp设置为你的得分