diff --git a/src/components/GameDesigner/GameDesigner.vue b/src/components/GameDesigner/GameDesigner.vue index 713ced2..eb2c9e4 100644 --- a/src/components/GameDesigner/GameDesigner.vue +++ b/src/components/GameDesigner/GameDesigner.vue @@ -14,6 +14,23 @@ +
@@ -75,6 +92,7 @@ export default { return this.scenesList[0]; }, currentObject(){ + console.log('currentObject', this.objectsList[0]); return this.objectsList[0]; }, sceneObjects(){ diff --git a/src/components/GamePlaying/GamePlaying.vue b/src/components/GamePlaying/GamePlaying.vue index 3fd033c..86274fa 100644 --- a/src/components/GamePlaying/GamePlaying.vue +++ b/src/components/GamePlaying/GamePlaying.vue @@ -185,17 +185,17 @@ export default { // gameEngine.camera.scale.copy(l.camera.position) } - // let testGame1 = new Game1(gameEngine, '/static/textures/game1-test.jpg', 2, 3); - // gameEngine.activeObjects.add(testGame1.game); - // testGame1.game.position.set(0, 1, -5); + let testGame1 = new Game1(gameEngine, '/static/textures/game1-test.jpg', 2, 3); + gameEngine.activeObjects.add(testGame1.game); + testGame1.game.position.set(0, 1, -5); - // let testGame2 = new Game2(gameEngine, '/static/textures/game2-test.jpg', 3, 3); - // gameEngine.activeObjects.add(testGame2.game); - // testGame2.game.position.set(0, 1, 5); + let testGame2 = new Game2(gameEngine, '/static/textures/game2-test.jpg', 3, 3); + gameEngine.activeObjects.add(testGame2.game); + testGame2.game.position.set(0, 1, 5); - // let testGame4 = new Game4(gameEngine, '/static/feathers-game.glb', 3, 4); - // gameEngine.activeObjects.add(testGame4.game); - // testGame4.game.position.set(0, 1, 5); + let testGame4 = new Game4(gameEngine, '/static/feathers-game.glb', 3, 4); + gameEngine.activeObjects.add(testGame4.game); + testGame4.game.position.set(0, 1, 5); }, async expandScenarioData(scene){ scene.data.$environment = (await this.$api.gameObject.load(scene.data.environment)).data diff --git a/vite.config.mjs b/vite.config.mjs index 7830939..b1b78d7 100644 --- a/vite.config.mjs +++ b/vite.config.mjs @@ -72,7 +72,7 @@ export default defineConfig({ }, hmr:true, strictPort: true, - host:'192.168.31.137', + host:'192.168.31.137', //'192.168.83.59',// proxy:{ '/api': { target: 'https://localhost:3000',