Commit cf8cb875 authored by 任建锋's avatar 任建锋

爹爹高2添加配置项

parent a098420b
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -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);
......@@ -41,6 +42,7 @@
function playSound(name) {
engine.playSound(engine.getAssetByName(name).uuid, { keep: true });
}
//# sourceMappingURL=utils.js.map
var Block = (function (_super) {
tslib.__extends(Block, _super);
......@@ -135,6 +137,7 @@
};
return Block;
}(engine.Container));
//# sourceMappingURL=Block.js.map
var Background = (function (_super) {
tslib.__extends(Background, _super);
......@@ -163,6 +166,7 @@
};
return Background;
}(engine.Container));
//# sourceMappingURL=Background.js.map
var svgaAssets = {
aniReady: { name: '准备立正', dir: 1 },
......@@ -379,6 +383,7 @@
};
return Player;
}(engine.Container));
//# sourceMappingURL=Player.js.map
var Base = (function (_super) {
tslib.__extends(Base, _super);
......@@ -393,6 +398,7 @@
};
return Base;
}(engine.Image));
//# sourceMappingURL=Base.js.map
var GuideLayer = (function (_super) {
tslib.__extends(GuideLayer, _super);
......@@ -445,6 +451,7 @@
};
return GuideLayer;
}(engine.Container));
//# sourceMappingURL=GuideLayer.js.map
var GoldBag = (function (_super) {
tslib.__extends(GoldBag, _super);
......@@ -483,6 +490,7 @@
};
return GoldBag;
}(engine.Container));
//# sourceMappingURL=GoldBag.js.map
var JumpTips = (function (_super) {
tslib.__extends(JumpTips, _super);
......@@ -527,6 +535,7 @@
};
return JumpTips;
}(engine.Container));
//# sourceMappingURL=JumpTips.js.map
var ObjectPool = engine.ObjectPool;
var PoolName = 'gold-bag';
......@@ -584,9 +593,9 @@
scoreAddTipsContainer.anchorY = scoreAddTipsContainer.height / 2;
var scoreAddTips = this.scoreAddTips = new engine.Label();
scoreAddTips.width = 750;
scoreAddTips.fillColor = "#fc4454";
scoreAddTips.fillColor = props.scoreAddFontColor;
scoreAddTips.textAlign = engine.TEXT_ALIGN.CENTER;
scoreAddTips.size = 50;
scoreAddTips.size = props.scoreAddFontSize;
scoreAddTips.alpha = 0;
scoreAddTips.text = "+0";
scoreAddTips.x = this.player.x - scoreAddTips.width / 2;
......@@ -1041,6 +1050,7 @@
};
return JumpHigh;
}(engine.Container));
//# sourceMappingURL=JumpHigh.js.map
function index (props) {
prepareProps();
......@@ -1048,6 +1058,7 @@
var instance = new JumpHigh();
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.
......@@ -162,6 +162,16 @@
"type": "number",
"default": -130
},
"scoreAddFontColor": {
"alias": "加分提示字体颜色",
"type": "string",
"default": "#fc4454"
},
"scoreAddFontSize": {
"alias": "加分提示字体颜色",
"type": "number",
"default": 50
},
"jumpTipsOffset": {
"alias": "跳跃文案偏移",
"type": "vector2",
......
......@@ -117,9 +117,9 @@ export default class GameView extends engine.Container {
let scoreAddTips = this.scoreAddTips = new engine.Label();
scoreAddTips.width=750;
scoreAddTips.fillColor = "#fc4454";
scoreAddTips.fillColor = props.scoreAddFontColor;
scoreAddTips.textAlign=engine.TEXT_ALIGN.CENTER;
scoreAddTips.size = 50;
scoreAddTips.size = props.scoreAddFontSize;
scoreAddTips.alpha=0;
scoreAddTips.text = "+0";
scoreAddTips.x = this.player.x-scoreAddTips.width / 2;
......
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