swith to the end

This commit is contained in:
2026-04-03 17:45:20 +03:00
parent 70f0b7c780
commit 6c71f56189
5 changed files with 17 additions and 6 deletions
+3 -1
View File
@@ -24,6 +24,9 @@ export default {
mode: 'GamePlay'
});
manager = await new GameManager(engine, this.id);
manager.addEventListener('the-end', _=>{
this.$router.push('/');
})
window.addEventListener('resize', this.resize);
manager.loadScene(manager.scenarioData.scenes[0].data.id)
},
@@ -39,7 +42,6 @@ export default {
},
methods:{
targetClick(e){
engine.onClick(e, this.$refs.target);
},