Commit a7063e42 authored by 李维's avatar 李维

Update scene

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