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 @@
function injectProps(p) {
engine.injectProp(props, p);
}
//# sourceMappingURL=props.js.map
function getTexture(uuid) {
return engine.Texture.from(getAssetByUUID(uuid).uuid);
......@@ -25,7 +24,6 @@
inst.source = 'asset://' + engine.getAssetByName(name).uuid;
return inst;
}
//# sourceMappingURL=utils.js.map
var Element = (function (_super) {
tslib.__extends(Element, _super);
......@@ -141,7 +139,6 @@
};
return Element;
}(engine.Container));
//# sourceMappingURL=Element.js.map
var ElementType;
(function (ElementType) {
......@@ -359,7 +356,6 @@
];
return MapData;
}());
//# sourceMappingURL=MapData.js.map
var GameView = (function (_super) {
tslib.__extends(GameView, _super);
......@@ -529,8 +525,14 @@
if (this.gamestat == 1 && nshowtime < 1) {
this.gameOver();
}
if (nshowtime < 0) {
nshowtime = 0;
}
engine.globalEvent.dispatchEvent('game-time-update', { time: nshowtime });
}
if (time < 0) {
time = 0;
}
this._gametime = time;
},
enumerable: true,
......@@ -1678,7 +1680,6 @@
};
return GameView;
}(engine.Container));
//# sourceMappingURL=GameView.js.map
var GameWrapper = (function (_super) {
tslib.__extends(GameWrapper, _super);
......@@ -1722,7 +1723,6 @@
};
return GameWrapper;
}(engine.Container));
//# sourceMappingURL=GameWrapper.js.map
function index (props) {
prepareProps();
......@@ -1730,7 +1730,6 @@
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.
......@@ -248,8 +248,14 @@ export default class GameView extends engine.Container {
if(this.gamestat==1&&nshowtime<1){
this.gameOver();
}
if(nshowtime<0){
nshowtime = 0;
}
engine.globalEvent.dispatchEvent('game-time-update',{time:nshowtime});
}
if(time<0){
time = 0;
}
this._gametime = time;
}
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