Commit a7063e42 authored by 李维's avatar 李维

Update scene

parent c714c7db
This diff is collapsed.
......@@ -76,11 +76,23 @@ export default class GameLogic {
}
initBg() {
console.log(this.g_formData.theme)
const bgNode_A = cc.find('Canvas/bgMain/bg_A');
bgNode_A.scale = this.g_systemOption.mapScaleMax;
// bgNode_A.height = cc.winSize.height;
// bgNode_A.width = cc.winSize.width;
console.log(bgNode_A.height, bgNode_A.width)
if(this.g_formData.theme == "A") {
bgNode_A.active = true;
} else {
bgNode_A.active = false;
}
const bgNode_D = cc.find('Canvas/bgMain/bg_D');
bgNode_D.scale = this.g_systemOption.mapScaleMax;
if(this.g_formData.theme == "A") {
bgNode_D.active = true;
} else {
bgNode_D.active = false;
}
}
resetPosition() {
......
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