From c9d2c5d1834ee80707a54d60ac8fa36b3e5a122b Mon Sep 17 00:00:00 2001 From: wmrmrx Date: Sun, 23 Jul 2023 00:08:46 -0300 Subject: [PATCH] Define redirections and add buttons --- components/GameButtons.vue | 3 + pages/end.vue | 13 ++++ pages/game.vue | 135 +++++++++++++++++++++++++++++++++++++ pages/index.vue | 114 ++----------------------------- pages/leaderboard.vue | 13 ++++ 5 files changed, 169 insertions(+), 109 deletions(-) create mode 100644 pages/end.vue create mode 100644 pages/game.vue create mode 100644 pages/leaderboard.vue diff --git a/components/GameButtons.vue b/components/GameButtons.vue index 4fcd37c..f9a9b31 100644 --- a/components/GameButtons.vue +++ b/components/GameButtons.vue @@ -11,12 +11,15 @@ export default { methods: { startGame() { // Lógica para iniciar o jogo + this.$router.push("game"); }, exitGame() { // Lógica para sair do jogo + this.$router.push("end"); }, showScore() { // Lógica para exibir o placar + this.$router.push("leaderboard"); }, }, }; diff --git a/pages/end.vue b/pages/end.vue new file mode 100644 index 0000000..a19c86d --- /dev/null +++ b/pages/end.vue @@ -0,0 +1,13 @@ + + + diff --git a/pages/game.vue b/pages/game.vue new file mode 100644 index 0000000..3c0ffbb --- /dev/null +++ b/pages/game.vue @@ -0,0 +1,135 @@ + + + + + + + diff --git a/pages/index.vue b/pages/index.vue index 9f29772..4ea35d4 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,28 +1,11 @@ - - diff --git a/pages/leaderboard.vue b/pages/leaderboard.vue new file mode 100644 index 0000000..1ac2e4d --- /dev/null +++ b/pages/leaderboard.vue @@ -0,0 +1,13 @@ + + +