This commit is contained in:
2026-04-12 21:55:31 +03:00
parent 0df683aa8a
commit 36bd33b1f9
15 changed files with 79 additions and 12 deletions
+2 -1
View File
@@ -24,7 +24,8 @@ export default {
mode: 'GamePlay'
});
manager = await new GameManager(engine, this.id);
manager.addEventListener('the-end', _=>{
manager.addEventListener('the-end', async e =>{
await this.$api.user.addGameData({ id: this.id, score: e.score });
this.$router.push('/');
})
window.addEventListener('resize', this.resize);