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 @@ ...@@ -12,6 +12,7 @@
function injectProps(p) { function injectProps(p) {
engine.injectProp(props, p); engine.injectProp(props, p);
} }
//# sourceMappingURL=props.js.map
function getTexture(uuid) { function getTexture(uuid) {
return engine.Texture.from(getAssetByUUID(uuid).uuid); return engine.Texture.from(getAssetByUUID(uuid).uuid);
...@@ -27,6 +28,7 @@ ...@@ -27,6 +28,7 @@
inst.source = 'asset://' + engine.getAssetByName(name).uuid; inst.source = 'asset://' + engine.getAssetByName(name).uuid;
return inst; return inst;
} }
//# sourceMappingURL=utils.js.map
var Element = (function (_super) { var Element = (function (_super) {
tslib.__extends(Element, _super); tslib.__extends(Element, _super);
...@@ -151,6 +153,7 @@ ...@@ -151,6 +153,7 @@
}; };
return Element; return Element;
}(engine.Container)); }(engine.Container));
//# sourceMappingURL=Element.js.map
var ElementType; var ElementType;
(function (ElementType) { (function (ElementType) {
...@@ -394,6 +397,7 @@ ...@@ -394,6 +397,7 @@
]; ];
return MapData; return MapData;
}()); }());
//# sourceMappingURL=MapData.js.map
var boomAni = (function (_super) { var boomAni = (function (_super) {
tslib.__extends(boomAni, _super); tslib.__extends(boomAni, _super);
...@@ -473,6 +477,7 @@ ...@@ -473,6 +477,7 @@
}; };
return boomAni; return boomAni;
}(engine.Container)); }(engine.Container));
//# sourceMappingURL=boomAni.js.map
var GameView = (function (_super) { var GameView = (function (_super) {
tslib.__extends(GameView, _super); tslib.__extends(GameView, _super);
...@@ -623,6 +628,7 @@ ...@@ -623,6 +628,7 @@
GameView.prototype.playComp = function () { GameView.prototype.playComp = function () {
}; };
GameView.prototype.init = function (time, level, mode, mute) { GameView.prototype.init = function (time, level, mode, mute) {
if (mute === void 0) { mute = 1; }
this.score = 0; this.score = 0;
this.gametime = time; this.gametime = time;
this.seq = 1; this.seq = 1;
...@@ -1998,6 +2004,7 @@ ...@@ -1998,6 +2004,7 @@
} }
}; };
GameView.prototype.playEffect = function (sound) { GameView.prototype.playEffect = function (sound) {
console.log("音效播放", sound);
if (this.mute == 1) { if (this.mute == 1) {
playSound(sound); playSound(sound);
} }
...@@ -2055,6 +2062,7 @@ ...@@ -2055,6 +2062,7 @@
}; };
return GameWrapper; return GameWrapper;
}(engine.Container)); }(engine.Container));
//# sourceMappingURL=GameWrapper.js.map
function index (props) { function index (props) {
prepareProps(); prepareProps();
...@@ -2062,6 +2070,7 @@ ...@@ -2062,6 +2070,7 @@
var instance = new GameWrapper(); var instance = new GameWrapper();
return instance; return instance;
} }
//# sourceMappingURL=index.js.map
return index; 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 { ...@@ -293,7 +293,7 @@ export default class GameView extends engine.Container {
// this.homeimgnight.stop(1); // this.homeimgnight.stop(1);
} }
init(time,level,mode,mute){ init(time,level,mode,mute=1){
this.score = 0; this.score = 0;
this.gametime = time; this.gametime = time;
this.seq = 1; this.seq = 1;
...@@ -1867,6 +1867,7 @@ export default class GameView extends engine.Container { ...@@ -1867,6 +1867,7 @@ export default class GameView extends engine.Container {
} }
//音效播放 //音效播放
playEffect(sound:string){ playEffect(sound:string){
console.log("音效播放",sound);
if(this.mute==1){ if(this.mute==1){
playSound(sound); 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