Animate SE

This commit is contained in:
oc 2018-07-06 00:31:26 +08:00
parent 4c4bf20dee
commit b42da2f660
5 changed files with 6 additions and 2 deletions

View File

@ -108,6 +108,7 @@ loader.prototype.loadAnimates = function () {
content = JSON.parse(content);
var data = {};
data.ratio = content.ratio;
data.se = content.se;
data.images = [];
data.images_rev = [];
content.bitmaps.forEach(function (t2) {

View File

@ -974,6 +974,9 @@ maps.prototype.drawAnimate = function (name, x, y, callback) {
var centerX = 32*x+16, centerY = 32*y+16;
var index=0;
// 播放音效
core.playSound(animate.se);
var draw = function (index) {
core.clearMap('animate', 0, 0, 416, 416);

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,7 @@ data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"bg.jpg"
],
"animates" : [
"hand", "sword", "zone",
"hand", "sword", "zone"
],
"bgms" : [
'bgm.mp3'

Binary file not shown.