Commit 835e078a authored by liujiaxin's avatar liujiaxin

feat: change image & position

parent b7c52902
...@@ -88,7 +88,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -88,7 +88,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
} else if (cc.sys.isNative && cc.sys.os == cc.sys.OS_WINDOWS) { } else if (cc.sys.isNative && cc.sys.os == cc.sys.OS_WINDOWS) {
console.log('汪汪汪') console.log('汪汪汪')
} else { } else {
throw ('非源生环境'); console.warn('非源生环境');
} }
} }
initSize() { initSize() {
...@@ -184,6 +184,10 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -184,6 +184,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
} else { } else {
console.log("callOcMethod('getEngineInfo') error" + success); console.log("callOcMethod('getEngineInfo') error" + success);
} }
if (!cc.sys.isNative) {
// @ts-ignores
window.air.getEngineInfoCallback(true)
}
} }
initBg() { initBg() {
// const bgNode = cc.find('Canvas/MainScene/SpaceView/bg'); // const bgNode = cc.find('Canvas/MainScene/SpaceView/bg');
...@@ -544,7 +548,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -544,7 +548,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
const operationMachine = createMachine(operationState); const operationMachine = createMachine(operationState);
this.gameMachineService = interpret(operationMachine).onTransition((state) => { this.gameMachineService = interpret(operationMachine).onTransition((state) => {
// console.log(1, state); console.log(1, state);
}); });
} }
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
"premultiplyAlpha": false, "premultiplyAlpha": false,
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 291, "width": 282,
"height": 324, "height": 300,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"letter_sos": { "letter_sos": {
......
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