diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 4206591..36cd2b7 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -1,6 +1,9 @@ name: release-tag -on: push +on: + push: + branches: + - main jobs: release-image: diff --git a/app.vue b/app.vue index 805d415..cb57fa7 100644 --- a/app.vue +++ b/app.vue @@ -28,16 +28,9 @@ onMounted(async () => { diff --git a/components/LobbyView.vue b/components/LobbyView.vue index 256b420..1892cf2 100644 --- a/components/LobbyView.vue +++ b/components/LobbyView.vue @@ -1,16 +1,18 @@ - + + \ No newline at end of file diff --git a/helpers/audioHelpers.ts b/helpers/audioHelpers.ts new file mode 100644 index 0000000..c2d3163 --- /dev/null +++ b/helpers/audioHelpers.ts @@ -0,0 +1,4 @@ +export function playSound(soundUrl: string): void { + const audio = new Audio(soundUrl); + audio.play(); +} \ No newline at end of file diff --git a/netcode/index.ts b/netcode/index.ts index 595bfbd..c156a47 100644 --- a/netcode/index.ts +++ b/netcode/index.ts @@ -25,7 +25,7 @@ export class GameObjectRegister { readonly turns: Map; readonly games: Map - context: "lobby" | "login" | "pregame" | "game" = "login"; + context: "lobby" | "login" | "pregame" | "game" | "rules" = "login"; private readonly objects: Map; current_game: Ref lobby: Ref; diff --git a/pages/index.vue b/pages/index.vue new file mode 100644 index 0000000..2b25cc2 --- /dev/null +++ b/pages/index.vue @@ -0,0 +1,37 @@ + + + + + \ No newline at end of file diff --git a/pages/rules.vue b/pages/rules.vue new file mode 100644 index 0000000..c9cd031 --- /dev/null +++ b/pages/rules.vue @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/public/sounds/buy1.mp3 b/public/sounds/buy1.mp3 new file mode 100644 index 0000000..e9a6cfa Binary files /dev/null and b/public/sounds/buy1.mp3 differ diff --git a/public/sounds/splat1.mp3 b/public/sounds/splat1.mp3 new file mode 100644 index 0000000..7b79c37 Binary files /dev/null and b/public/sounds/splat1.mp3 differ diff --git a/public/sounds/splat2.mp3 b/public/sounds/splat2.mp3 new file mode 100644 index 0000000..4883122 Binary files /dev/null and b/public/sounds/splat2.mp3 differ