Commit dc4280f0 authored by zjz1994's avatar zjz1994

代码暂存

parent 65ee3b38
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
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);
...@@ -25,7 +24,6 @@ ...@@ -25,7 +24,6 @@
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);
...@@ -141,7 +139,6 @@ ...@@ -141,7 +139,6 @@
}; };
return Element; return Element;
}(engine.Container)); }(engine.Container));
//# sourceMappingURL=Element.js.map
var ElementType; var ElementType;
(function (ElementType) { (function (ElementType) {
...@@ -359,7 +356,6 @@ ...@@ -359,7 +356,6 @@
]; ];
return MapData; return MapData;
}()); }());
//# sourceMappingURL=MapData.js.map
var GameView = (function (_super) { var GameView = (function (_super) {
tslib.__extends(GameView, _super); tslib.__extends(GameView, _super);
...@@ -529,8 +525,14 @@ ...@@ -529,8 +525,14 @@
if (this.gamestat == 1 && nshowtime < 1) { if (this.gamestat == 1 && nshowtime < 1) {
this.gameOver(); this.gameOver();
} }
if (nshowtime < 0) {
nshowtime = 0;
}
engine.globalEvent.dispatchEvent('game-time-update', { time: nshowtime }); engine.globalEvent.dispatchEvent('game-time-update', { time: nshowtime });
} }
if (time < 0) {
time = 0;
}
this._gametime = time; this._gametime = time;
}, },
enumerable: true, enumerable: true,
...@@ -1678,7 +1680,6 @@ ...@@ -1678,7 +1680,6 @@
}; };
return GameView; return GameView;
}(engine.Container)); }(engine.Container));
//# sourceMappingURL=GameView.js.map
var GameWrapper = (function (_super) { var GameWrapper = (function (_super) {
tslib.__extends(GameWrapper, _super); tslib.__extends(GameWrapper, _super);
...@@ -1722,7 +1723,6 @@ ...@@ -1722,7 +1723,6 @@
}; };
return GameWrapper; return GameWrapper;
}(engine.Container)); }(engine.Container));
//# sourceMappingURL=GameWrapper.js.map
function index (props) { function index (props) {
prepareProps(); prepareProps();
...@@ -1730,7 +1730,6 @@ ...@@ -1730,7 +1730,6 @@
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.
...@@ -248,8 +248,14 @@ export default class GameView extends engine.Container { ...@@ -248,8 +248,14 @@ export default class GameView extends engine.Container {
if(this.gamestat==1&&nshowtime<1){ if(this.gamestat==1&&nshowtime<1){
this.gameOver(); this.gameOver();
} }
if(nshowtime<0){
nshowtime = 0;
}
engine.globalEvent.dispatchEvent('game-time-update',{time:nshowtime}); engine.globalEvent.dispatchEvent('game-time-update',{time:nshowtime});
} }
if(time<0){
time = 0;
}
this._gametime = time; this._gametime = time;
} }
get gametime(){ get gametime(){
......
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