Commit 0e5d2450 authored by zjz1994's avatar zjz1994

音效暂存

parent 458393dd
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -12,6 +12,7 @@
function injectProps(p) {
engine.injectProp(props, p);
}
//# sourceMappingURL=props.js.map
function getTexture(uuid) {
return engine.Texture.from(getAssetByUUID(uuid).uuid);
......@@ -27,6 +28,7 @@
inst.source = 'asset://' + engine.getAssetByName(name).uuid;
return inst;
}
//# sourceMappingURL=utils.js.map
var Element = (function (_super) {
tslib.__extends(Element, _super);
......@@ -151,6 +153,7 @@
};
return Element;
}(engine.Container));
//# sourceMappingURL=Element.js.map
var ElementType;
(function (ElementType) {
......@@ -394,6 +397,7 @@
];
return MapData;
}());
//# sourceMappingURL=MapData.js.map
var boomAni = (function (_super) {
tslib.__extends(boomAni, _super);
......@@ -473,6 +477,7 @@
};
return boomAni;
}(engine.Container));
//# sourceMappingURL=boomAni.js.map
var GameView = (function (_super) {
tslib.__extends(GameView, _super);
......@@ -623,6 +628,7 @@
GameView.prototype.playComp = function () {
};
GameView.prototype.init = function (time, level, mode, mute) {
if (mute === void 0) { mute = 1; }
this.score = 0;
this.gametime = time;
this.seq = 1;
......@@ -1998,6 +2004,7 @@
}
};
GameView.prototype.playEffect = function (sound) {
console.log("音效播放", sound);
if (this.mute == 1) {
playSound(sound);
}
......@@ -2055,6 +2062,7 @@
};
return GameWrapper;
}(engine.Container));
//# sourceMappingURL=GameWrapper.js.map
function index (props) {
prepareProps();
......@@ -2062,6 +2070,7 @@
var instance = new GameWrapper();
return instance;
}
//# sourceMappingURL=index.js.map
return index;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -293,7 +293,7 @@ export default class GameView extends engine.Container {
// this.homeimgnight.stop(1);
}
init(time,level,mode,mute){
init(time,level,mode,mute=1){
this.score = 0;
this.gametime = time;
this.seq = 1;
......@@ -1867,6 +1867,7 @@ export default class GameView extends engine.Container {
}
//音效播放
playEffect(sound:string){
console.log("音效播放",sound);
if(this.mute==1){
playSound(sound);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment