This commit is contained in:
oc 2018-06-25 01:09:49 +08:00
parent 33325dc902
commit e318c26e65
5 changed files with 6 additions and 2 deletions

View File

@ -863,6 +863,8 @@ control.prototype.jumpHero = function (ex, ey, time, callback) {
core.setAlpha('ui', 1.0);
core.status.replay.animate=true;
core.playSound('jump.mp3');
var dx = ex-sx, dy=ey-sy, distance = Math.round(Math.sqrt(dx * dx + dy * dy));
var jump_peak = 6 + distance, jump_count = jump_peak * 2;
var currx = sx, curry = sy;

View File

@ -85,12 +85,14 @@ events.prototype.startGame = function (hard) {
if (core.flags.showBattleAnimateConfirm) { // 是否提供“开启战斗动画”的选择项
core.status.event.selection = core.flags.battleAnimate ? 0 : 1;
core.ui.drawConfirmBox("你想开启战斗动画吗?\n之后可以在菜单栏中开启或关闭。\n强烈建议新手开启此项", function () {
core.data.flags.battleAnimate = true;
core.flags.battleAnimate = true;
core.setLocalStorage('battleAnimate', true);
core.startGame(hard);
core.utils.__init_seed();
core.events.setInitData(hard);
}, function () {
core.data.flags.battleAnimate = false;
core.flags.battleAnimate = false;
core.setLocalStorage('battleAnimate', false);
core.startGame(hard);

View File

@ -675,7 +675,7 @@ maps.prototype.jumpBlock = function(sx,sy,ex,ey,time,immediateHide,callback) {
core.setOpacity('animate', opacityVal);
core.canvas.animate.drawImage(blockImage, 0, blockIcon * height, 32, height, block.x * 32, block.y * 32 +32 - height, 32, height);
core.playSound('jump.ogg');
core.playSound('jump.mp3');
var dx = ex-sx, dy=ey-sy, distance = Math.round(Math.sqrt(dx * dx + dy * dy));
var jump_peak = 6 + distance, jump_count = jump_peak * 2;

View File

@ -14,7 +14,7 @@ data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
'bgm.mp3'
],
"sounds" : [
'floor.mp3', 'attack.mp3', 'door.mp3', 'item.mp3', 'zone.mp3'
'floor.mp3', 'attack.mp3', 'door.mp3', 'item.mp3', 'zone.mp3', 'jump.mp3'
],
"startBackground" : "bg.jpg",
"startLogoStyle" : "color: black",

BIN
project/sounds/jump.mp3 Normal file

Binary file not shown.