Compare commits
10
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6c56c8682f | ||
|
|
92a9d52a8c | ||
|
|
80f6d02fc7 | ||
|
|
da54495d1c | ||
|
|
f60ec850f0 | ||
|
|
bce8edc150 | ||
|
|
fadc8cc451 | ||
|
|
8cb8bdfc5e | ||
|
|
0f1ab017ed | ||
|
|
9384f8f23e |
+24
-28
@@ -1,19 +1,16 @@
|
|||||||
name: release-tag
|
name: release-tag
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
|
||||||
types: [released]
|
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- main
|
- "**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release-image:
|
release-image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DOCKER_ORG: heronfief
|
REPO_NAME: ${{ gitea.repository }}
|
||||||
DOCKER_LATEST: nightly
|
|
||||||
ENDPOINT: git.legonzaur.fr
|
ENDPOINT: git.legonzaur.fr
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -23,24 +20,10 @@ jobs:
|
|||||||
lfs: false
|
lfs: false
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Get Meta
|
- name: LFS Checkout
|
||||||
id: meta
|
|
||||||
run: |
|
|
||||||
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
|
|
||||||
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: setup private key
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.RUNNER_SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
|
git remote set-url origin https://${{ env.ENDPOINT }}/${{ env.REPO_NAME }}.git
|
||||||
chmod 400 ~/.ssh/id_ed25519
|
|
||||||
echo "{{ secrets.INSTANCE_SSH_PUBLIC_KEY }} > ~/.ssh/known_hosts"
|
|
||||||
|
|
||||||
- name: git lfs pull
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
ssh-keyscan ${{ env.ENDPOINT }} >> ~/.ssh/known_hosts
|
|
||||||
git remote set-url origin git@${{ env.ENDPOINT }}:${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}.git
|
|
||||||
git lfs pull
|
git lfs pull
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
@@ -50,15 +33,28 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Docker meta
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: ${{ env.ENDPOINT }}/${{ env.REPO_NAME }}
|
||||||
|
tags: |
|
||||||
|
type=schedule
|
||||||
|
type=ref,event=branch
|
||||||
|
type=semver,pattern={{version}}
|
||||||
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
|
type=semver,pattern={{major}}
|
||||||
|
type=sha
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
secrets: |
|
build-args: |
|
||||||
"NUXT_PUBLIC_WEBSOCKET_ENDPOINT=${{ secrets.NUXT_PUBLIC_WEBSOCKET_ENDPOINT }}"
|
NUXT_PUBLIC_ENDPOINT=${{ vars.NUXT_PUBLIC_ENDPOINT }}
|
||||||
"NUXT_PUBLIC_DISCORD_LOGIN_ENDPOINT=${{ secrets.NUXT_PUBLIC_DISCORD_LOGIN_ENDPOINT }}"
|
NUXT_PUBLIC_DISCORD_LOGIN_ENDPOINT=${{ vars.NUXT_PUBLIC_DISCORD_LOGIN_ENDPOINT }}
|
||||||
|
NUXT_PUBLIC_WELCOME_MESSAGE=${{ vars.NUXT_PUBLIC_WELCOME_MESSAGE }}
|
||||||
push: true
|
push: true
|
||||||
tags: | # replace it with your local IP and tags
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
${{ env.ENDPOINT }}/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
${{ env.ENDPOINT }}/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }}
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import goStore, { oauth2_register_discord, setup_websocket, heron_cookie_login } from "@/netcode";
|
import goStore, { oauth2_register_discord, setup_websocket, heron_cookie_login } from "@/netcode";
|
||||||
|
|
||||||
const router = useRouter();
|
await setup_websocket()
|
||||||
|
|
||||||
useHead
|
useHead
|
||||||
({
|
({
|
||||||
@@ -10,6 +10,27 @@ useHead
|
|||||||
: 'Héron Realms',
|
: 'Héron Realms',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const heron_session = useCookie('heron_session')
|
||||||
|
const route = useRoute()
|
||||||
|
|
||||||
|
onMounted(async () => {
|
||||||
|
const code = route.query.code
|
||||||
|
if (!code) { return }
|
||||||
|
if (Array.isArray(code)) { return }
|
||||||
|
await setup_websocket()
|
||||||
|
oauth2_register_discord(code)
|
||||||
|
history.pushState(
|
||||||
|
{},
|
||||||
|
'',
|
||||||
|
'/'
|
||||||
|
)
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
onMounted(async () => {
|
||||||
|
if (!heron_session.value) { return }
|
||||||
|
heron_cookie_login(heron_session.value)
|
||||||
|
})
|
||||||
|
|
||||||
function keyDownHandler(e: KeyboardEvent) {
|
function keyDownHandler(e: KeyboardEvent) {
|
||||||
if (e.repeat) { return }
|
if (e.repeat) { return }
|
||||||
@@ -64,6 +85,8 @@ onUnmounted(() => {
|
|||||||
window.removeEventListener("mouseup", mouseUpHandler)
|
window.removeEventListener("mouseup", mouseUpHandler)
|
||||||
document.removeEventListener("mousemove", follow_mouse)
|
document.removeEventListener("mousemove", follow_mouse)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
onDeactivated
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div class="root_dom_div">
|
<div class="root_dom_div">
|
||||||
|
|||||||
@@ -23,12 +23,12 @@ void main(){
|
|||||||
|
|
||||||
q=q*.5+.5;
|
q=q*.5+.5;
|
||||||
vec2 r=vec2(0.);
|
vec2 r=vec2(0.);
|
||||||
r.x=fbm(st+1.*q+vec2(1.7,9.2)+.00215*u_time);
|
r.x=fbm(st+1.*q+vec2(1.7,9.2)+.00515*u_time);
|
||||||
r.y=fbm(st+1.*q+vec2(8.3,2.8)+.00526*u_time);
|
r.y=fbm(st+1.*q+vec2(8.3,2.8)+.0126*u_time);
|
||||||
r=r*.5+.5;
|
r=r*.5+.5;
|
||||||
|
|
||||||
float f=fbm(st+r);
|
float f=fbm(st+r);
|
||||||
f = floor((f+.4)*4.)/4.;
|
|
||||||
vec3 color=mix(u_color_start,u_color_end,f*.3);
|
vec3 color=mix(u_color_start,u_color_end,f*.3);
|
||||||
|
|
||||||
gl_FragColor=vec4(color,1.);
|
gl_FragColor=vec4(color,1.);
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ onMounted(() => {
|
|||||||
max-width: 256px;
|
max-width: 256px;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
|
||||||
margin-bottom: 0px;
|
margin-bottom: 0px;
|
||||||
margin-top: var(--margin-bottom);
|
margin-top: var(--margin-bottom);
|
||||||
transition: filter .125s cubic-bezier(0.075, 0.82, 0.165, 1), rotate 0.075s cubic-bezier(1, 1.81, .59, 1.42);
|
transition: filter .125s cubic-bezier(0.075, 0.82, 0.165, 1), rotate 0.075s cubic-bezier(1, 1.81, .59, 1.42);
|
||||||
@@ -95,7 +94,6 @@ onMounted(() => {
|
|||||||
.card_image {
|
.card_image {
|
||||||
max-height: var(--max-height);
|
max-height: var(--max-height);
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
height: var(--max-height);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.card_image.outlined {
|
.card_image.outlined {
|
||||||
@@ -140,12 +138,7 @@ onMounted(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.card.wrapped {
|
.card.wrapped {
|
||||||
max-height: 6px;
|
max-width: 10px;
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card.wrapped .card_image {
|
|
||||||
filter: drop-shadow(.5px .5px .5px gray) drop-shadow(-.5px -.5px .5px gray);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#contextMenuButtons {
|
#contextMenuButtons {
|
||||||
|
|||||||
+19
-16
@@ -12,38 +12,41 @@ const props = withDefaults(defineProps<Props>(), {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="cards_container">
|
<div>
|
||||||
<template v-if="props.stack.length > 0" v-for="c in props.stack">
|
<div class="cards_container">
|
||||||
<CardPreview :card_id="c?.card_id" :wrapped="true">
|
<template v-if="props.stack.length > 0" v-for="c in props.stack">
|
||||||
<slot></slot>
|
<CardPreview :card_id="c?.card_id" :wrapped="true">
|
||||||
</CardPreview>
|
<slot></slot>
|
||||||
</template>
|
</CardPreview>
|
||||||
<template v-if="props.stack.length == 0">
|
</template>
|
||||||
<div class="empty">
|
<template v-if="props.stack.length == 0">
|
||||||
<img :class="`card_image`" :src="'/cards/background.png'" draggable="false">
|
<div class="empty">
|
||||||
</div>
|
<img :class="`card_image`" :src="'/cards/background.png'" draggable="false">
|
||||||
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.cards_container::before {
|
.cards_container::before {
|
||||||
height: calc(250px - 10px);
|
width: calc(185px - 10px);
|
||||||
display: block;
|
display: block;
|
||||||
content: "";
|
content: "";
|
||||||
width: 0;
|
height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cards_container {
|
.cards_container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column-reverse;
|
flex-direction: row-reverse;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
min-width: 200px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.empty {
|
.empty {
|
||||||
max-height: 10px;
|
max-width: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.empty>.card_image {
|
.empty>.card_image {
|
||||||
|
|||||||
@@ -0,0 +1,144 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import goStore from '~/netcode';
|
||||||
|
import type { Player } from '~/netcode/Player';
|
||||||
|
import { playSound } from '~/helpers/audioHelpers';
|
||||||
|
|
||||||
|
const current_players = computed<Array<Player>>(() => Array.from(goStore.current_game?.players ?? []).filter(p => p.team === goStore.current_game?.current_turn))
|
||||||
|
|
||||||
|
watch(
|
||||||
|
() => goStore.current_game?.current_turn?.uuid,
|
||||||
|
() => {
|
||||||
|
if (goStore.current_game?.current_turn?.uuid == goStore.self?.team?.uuid) {
|
||||||
|
playSound('/sounds/ding.mp3')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
watch(
|
||||||
|
() => goStore.current_game?.losers,
|
||||||
|
() => {
|
||||||
|
if (goStore.self?.uuid && goStore.current_game?.losers && goStore.current_game.losers.includes(goStore.self.uuid)) {
|
||||||
|
showLoserScreen()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
watch(
|
||||||
|
() => goStore.current_game?.ended,
|
||||||
|
() => {
|
||||||
|
if (goStore.current_game?.ended && goStore.self?.uuid && goStore.current_game?.losers && !goStore.current_game.losers.includes(goStore.self.uuid)) {
|
||||||
|
showWinnerScreen()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
watch(
|
||||||
|
() => goStore.current_game?.players,
|
||||||
|
(newList, oldList) => {
|
||||||
|
if (!oldList || !newList) { return }
|
||||||
|
if (goStore.current_game?.started) { return }
|
||||||
|
if (newList?.length > oldList.length) {
|
||||||
|
playSound('/sounds/teleport.mp3')
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
const showResults = ref(false)
|
||||||
|
const showOptions = ref(false)
|
||||||
|
const isWinner = ref(false)
|
||||||
|
|
||||||
|
function showLoserScreen() {
|
||||||
|
// playSound('/sounds/ding.mp3')
|
||||||
|
showResults.value = true
|
||||||
|
isWinner.value = false
|
||||||
|
}
|
||||||
|
|
||||||
|
function showWinnerScreen() {
|
||||||
|
// playSound('/sounds/ding.mp3')
|
||||||
|
showResults.value = true
|
||||||
|
isWinner.value = true
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div @contextmenu.prevent="false" id="game_board">
|
||||||
|
<AnimatedBackground></AnimatedBackground>
|
||||||
|
<div id="market">
|
||||||
|
<MarketCards></MarketCards>
|
||||||
|
</div>
|
||||||
|
<div id="player_list_container">
|
||||||
|
<div id="player_list">
|
||||||
|
<PlayerListElement v-for="p in goStore.current_game?.players" :player="p">
|
||||||
|
</PlayerListElement>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="current_player">
|
||||||
|
<template v-for="p in current_players">
|
||||||
|
<!-- <AnimatedBackground :color-start="goStore.self == p ? [.0, .3, .3] : undefined"
|
||||||
|
:color-end="goStore.self == p ? [.0, 1, 1] : undefined" /> -->
|
||||||
|
<PlayerSlot :player="p"></PlayerSlot>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<ResultDialog :isVisible="showResults" :won="isWinner" :players="goStore.current_game?.players"
|
||||||
|
@close="showResults = false">
|
||||||
|
</ResultDialog>
|
||||||
|
<GlobalOverlay></GlobalOverlay>
|
||||||
|
<SelfView></SelfView>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
#game_board {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 450px;
|
||||||
|
grid-template-rows: min-content 1fr;
|
||||||
|
grid-template-areas:
|
||||||
|
"market player_list"
|
||||||
|
"current_player player_list";
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#player_list,
|
||||||
|
#current_player {
|
||||||
|
overflow: auto;
|
||||||
|
position: relative;
|
||||||
|
isolation: isolate;
|
||||||
|
/* background: url('/images/bg-darkgrass.png'); */
|
||||||
|
}
|
||||||
|
|
||||||
|
#current_player {
|
||||||
|
grid-area: current_player;
|
||||||
|
}
|
||||||
|
|
||||||
|
#market {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#player_list_container {
|
||||||
|
grid-area: player_list;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
height: 100%;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
/* background-image: url("/images/bg-darkgrass.png"); */
|
||||||
|
}
|
||||||
|
|
||||||
|
#player_list {
|
||||||
|
min-height: 90%;
|
||||||
|
background: rgba(0, 0, 0, 0.35);
|
||||||
|
border: 5px solid #000;
|
||||||
|
border-radius: 10px;
|
||||||
|
filter: drop-shadow(2.5px 7.5px 1px rgba(0, 0, 0, .60));
|
||||||
|
margin: 10px;
|
||||||
|
backdrop-filter: blur(10px) contrast(90%) brightness(165%);
|
||||||
|
background: rgba(26, 70, 91, 0.7);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#player_list .card {
|
||||||
|
--max-height: 90px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -10,14 +10,6 @@ function killErika() {
|
|||||||
playSound('/sounds/splat1.mp3')
|
playSound('/sounds/splat1.mp3')
|
||||||
erika_alive.value = false;
|
erika_alive.value = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Autojoin broken
|
|
||||||
// watch(() => goStore.context, () => {
|
|
||||||
// console.log(goStore.context)
|
|
||||||
// if (goStore.context == "pregame") {
|
|
||||||
// router.push(`/games/${goStore.current_game?.uuid}`)
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
@@ -34,8 +26,7 @@ function killErika() {
|
|||||||
|
|
||||||
<div class="games-list-zone">
|
<div class="games-list-zone">
|
||||||
<div v-for="g in goStore.lobby?.games">
|
<div v-for="g in goStore.lobby?.games">
|
||||||
<button v-if="g" @click="router.push({ path: `/games/${g.uuid}` })"
|
<button v-if="g" @click="join_game(g.uuid)" :class="goStore.discordId == g.owner ? 'own_game' : ''">
|
||||||
:class="goStore.discordId == g.owner ? 'own_game' : ''">
|
|
||||||
<template v-if="g.started && g.ended">
|
<template v-if="g.started && g.ended">
|
||||||
GAME OVER
|
GAME OVER
|
||||||
</template>
|
</template>
|
||||||
@@ -66,7 +57,7 @@ function killErika() {
|
|||||||
|
|
||||||
<div class="overlay" v-if="erika_alive">
|
<div class="overlay" v-if="erika_alive">
|
||||||
<div class="erika-zone">
|
<div class="erika-zone">
|
||||||
<img @click="router.push('/rules')" class="overlay-image"
|
<img @click="router.push({ path: 'rules' })" class="overlay-image"
|
||||||
src="https://static.wikia.nocookie.net/umineko/images/9/9d/PC_Erika.Casual.Sprite_36.png"
|
src="https://static.wikia.nocookie.net/umineko/images/9/9d/PC_Erika.Casual.Sprite_36.png"
|
||||||
alt="pétasse" />
|
alt="pétasse" />
|
||||||
<div class="overlay-button">
|
<div class="overlay-button">
|
||||||
@@ -85,6 +76,8 @@ function killErika() {
|
|||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { navigateTo, useRuntimeConfig } from 'nuxt/app';
|
import goStore, { netcode_create_game, join_game } from '~/netcode';
|
||||||
import goStore, { netcode_create_game, join_game } from '../netcode';
|
|
||||||
|
|
||||||
const config = useRuntimeConfig()
|
const config = useRuntimeConfig()
|
||||||
|
|
||||||
@@ -104,4 +103,4 @@ footer {
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
</style>import { useRuntimeConfig, navigateTo } from 'nuxt/app';
|
</style>
|
||||||
+16
-57
@@ -2,59 +2,35 @@
|
|||||||
import goStore, { buy, useEffect } from '@/netcode';
|
import goStore, { buy, useEffect } from '@/netcode';
|
||||||
import { CardEffects, type Effect } from '@/netcode/Effect'
|
import { CardEffects, type Effect } from '@/netcode/Effect'
|
||||||
import { CardType } from '@/netcode/Card'
|
import { CardType } from '@/netcode/Card'
|
||||||
import gsap from 'gsap'
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const isTurn = computed(() => goStore.self && goStore.current_game?.started && (goStore.self.team == goStore.current_game.current_turn))
|
const isTurn = computed(() => goStore.self && goStore.current_game?.started && (goStore.self.team == goStore.current_game.current_turn))
|
||||||
const clientStore = useClientSideStore()
|
const clientStore = useClientSideStore()
|
||||||
|
|
||||||
const buyableFiregem = computed(() => goStore?.current_game?.gem_stack.at(-1))
|
const buyableFiregem = computed(() => goStore?.current_game?.gem_stack.at(-1))
|
||||||
|
|
||||||
|
|
||||||
function onBeforeEnter(el: Element) {
|
|
||||||
(el as HTMLElement).style.visibility = "hidden"
|
|
||||||
const element = el as HTMLElement
|
|
||||||
element.style.top = element.offsetTop + "px"
|
|
||||||
element.style.left = element.offsetLeft + "px"
|
|
||||||
element.style.zIndex = "999"
|
|
||||||
}
|
|
||||||
|
|
||||||
function onEnter(el: any, done: () => unknown) {
|
|
||||||
console.log("enter")
|
|
||||||
// setTimeout(() => {
|
|
||||||
// el.style.visibility = null
|
|
||||||
// done()
|
|
||||||
// }, 1000)
|
|
||||||
done()
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div id="market">
|
<div id="market">
|
||||||
<CardPreview :tilted="false" :card_id="undefined"></CardPreview>
|
<CardPreview :tilted="false" :card_id="undefined"></CardPreview>
|
||||||
<div class="separator"></div>
|
<div class="separator"></div>
|
||||||
<TransitionGroup name="market_card">
|
<CardPreview :tilted="false" :card_id="c?.card_id" v-for="c in goStore.current_game?.market"
|
||||||
<CardPreview :tilted="false" :card_id="c?.card_id" v-for="c in goStore.current_game?.market"
|
@click="c && buy(c)">
|
||||||
:key="c?.card_id" @click="c && buy(c)">
|
<template
|
||||||
<template
|
v-if="isTurn && goStore.self?.turn && c && c.cost && (goStore.self?.turn.gold_reserve ?? 0) >= c.cost">
|
||||||
v-if="isTurn && goStore.self?.turn && c && c.cost && (goStore.self?.turn.gold_reserve ?? 0) >= c.cost">
|
<button @click.stop="buy(c)">BUY</button>
|
||||||
<button @click.stop="buy(c)">BUY</button>
|
<button @click.stop="clientStore.findUseEffect(CardEffects.PLAY_NEXT_CARD_BOUGHT, c);"
|
||||||
<button @click.stop="clientStore.findUseEffect(CardEffects.PLAY_NEXT_CARD_BOUGHT, c);"
|
v-if="clientStore.activatedClientside.find((e: Effect) => (e.effect == CardEffects.PLAY_NEXT_CARD_BOUGHT) && e.usable)">
|
||||||
v-if="clientStore.activatedClientside.find((e: Effect) => (e.effect == CardEffects.PLAY_NEXT_CARD_BOUGHT) && e.usable)">
|
BUY IN HAND</button>
|
||||||
BUY IN HAND</button>
|
<button @click.stop="clientStore.findUseEffect(CardEffects.STACK_NEXT_CARD_BOUGHT, c)"
|
||||||
<button @click.stop="clientStore.findUseEffect(CardEffects.STACK_NEXT_CARD_BOUGHT, c)"
|
v-if="clientStore.activatedClientside.find((e: Effect) => (e.effect == CardEffects.STACK_NEXT_CARD_BOUGHT) && e.usable)">
|
||||||
v-if="clientStore.activatedClientside.find((e: Effect) => (e.effect == CardEffects.STACK_NEXT_CARD_BOUGHT) && e.usable)">
|
BUY IN STACK (generic)</button>
|
||||||
BUY IN STACK (generic)</button>
|
|
||||||
|
|
||||||
<button @click.stop="clientStore.findUseEffect(CardEffects.STACK_NEXT_ACTION_BOUGHT, c)"
|
<button @click.stop="clientStore.findUseEffect(CardEffects.STACK_NEXT_ACTION_BOUGHT, c)"
|
||||||
v-if="c.card_type == CardType.ACTION && clientStore.activatedClientside.find((e: Effect) => (e.effect == CardEffects.STACK_NEXT_ACTION_BOUGHT) && e.usable)">
|
v-if="c.card_type == CardType.ACTION && clientStore.activatedClientside.find((e: Effect) => (e.effect == CardEffects.STACK_NEXT_ACTION_BOUGHT) && e.usable)">
|
||||||
BUY IN STACK (actions)</button>
|
BUY IN STACK (actions)</button>
|
||||||
</template>
|
</template>
|
||||||
</CardPreview>
|
</CardPreview>
|
||||||
</TransitionGroup>
|
|
||||||
<div class="separator"></div>
|
<div class="separator"></div>
|
||||||
<CardPreview :tilted="false" :card_id="goStore.current_game?.gem_stack.at(-1)?.card_id"
|
<CardPreview :tilted="false" :card_id="goStore.current_game?.gem_stack.at(-1)?.card_id"
|
||||||
@click="buy(goStore.current_game?.gem_stack.at(-1)!)">
|
@click="buy(goStore.current_game?.gem_stack.at(-1)!)">
|
||||||
@@ -76,23 +52,6 @@ function onEnter(el: any, done: () => unknown) {
|
|||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
/* .market_card-leave-active,
|
|
||||||
.market_card-move {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.market_card-enter-from {
|
|
||||||
transform: translate(-500px);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.market_card-enter-active,
|
|
||||||
.market_card-leave-active {
|
|
||||||
transition: all 0.5s cubic-bezier(0.55, 0, 0.1, 1);
|
|
||||||
} */
|
|
||||||
</style>
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
#market {
|
#market {
|
||||||
width: min-content;
|
width: min-content;
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ const props = defineProps<Props>()
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="player-icon-container">
|
<div class="player-icon-container">
|
||||||
<img class="avatar" v-if="props.player.image" :src="props.player.image" draggable="false">
|
<img class="avatar" v-if="props.player.image" :src="props.player.image">
|
||||||
<b class="player-name">{{ props.player.username }}</b>
|
<b class="player-name">{{ props.player.username }}</b>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -31,7 +31,7 @@ const props = defineProps<Props>()
|
|||||||
|
|
||||||
.player-name {
|
.player-name {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
|
|
||||||
color: white;
|
color: white;
|
||||||
|
|||||||
@@ -2,8 +2,7 @@
|
|||||||
import goStore from '@/netcode';
|
import goStore from '@/netcode';
|
||||||
import type { Player } from "~/netcode/Player";
|
import type { Player } from "~/netcode/Player";
|
||||||
|
|
||||||
const emit = defineEmits(['click'])
|
const settingsStore = useSettingsStore()
|
||||||
|
|
||||||
|
|
||||||
const view = ref<"main" | "discard">("main")
|
const view = ref<"main" | "discard">("main")
|
||||||
|
|
||||||
@@ -11,116 +10,150 @@ function show(data: "main" | "discard") {
|
|||||||
view.value = data
|
view.value = data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export interface Props {
|
export interface Props {
|
||||||
player: Player;
|
player: Player;
|
||||||
focused?: Player
|
|
||||||
}
|
}
|
||||||
const props = defineProps<Props>()
|
const props = defineProps<Props>()
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="player_list_element" @click="$emit('click')"
|
<div :class="`player_list_element ${goStore.self === props.player ? 'self' : ''}`">
|
||||||
:class="{ self: props.player == goStore.self, focused: props.focused == props.player, isTurn: props.player.team == goStore.current_game?.current_turn }">
|
<!-- <AnimatedBackground v-if="goStore.self === props.player" :color-start="[.0, .3, .3]" :color-end="[.0, 1, 1]" /> -->
|
||||||
<div id="player_banner" class="small">
|
<div class="button" id="player_list_buttons">
|
||||||
<div class="ready-bubble not-ready" v-if="!props.player.ready && !goStore.current_game?.started">Pas encore
|
<div class="main_button" @click="show('main')">
|
||||||
prêt...
|
<div class="tooltip">Board</div>
|
||||||
|
<img :src="`/cards/${settingsStore.cardStyle}/${player.board.at(-1)?.card_id.toString().padStart(3, '0') ?? 'background'}.png`"
|
||||||
|
draggable="false" :class="view === 'main' && 'selected'">
|
||||||
|
<span class="button_card_number">{{ player.board.length }}</span>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="ready-bubble ready" v-if="props.player.ready && !goStore.current_game?.started">Prêt!</div>
|
<div class="stack_button">
|
||||||
<div id="player_info">
|
<div class="tooltip">Stack</div>
|
||||||
<PlayerIcon :player="props.player"></PlayerIcon>
|
<img :src="'/cards/background.png'" draggable="false">
|
||||||
|
<span class="button_card_number">{{ player.stack_pile.length }}</span>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div id="player_stats">
|
<div class="discard_button" @click="show('discard')">
|
||||||
<template v-if="goStore.current_game?.started">
|
<div class="tooltip">Discard</div>
|
||||||
<PlayerStats :player="props.player">
|
<img :src="`/cards/${settingsStore.cardStyle}/${player.discard_pile.at(-1)?.card_id.toString().padStart(3, '0') ?? 'background'}.png`"
|
||||||
</PlayerStats>
|
draggable="false" :class="view === 'discard' && 'selected'">
|
||||||
</template>
|
<span class="button_card_number">{{ player.discard_pile.length }}</span>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="view">
|
||||||
|
<PlayerSlot :player="player" :hide_stack_and_discard="true" v-if="view == 'main'" />
|
||||||
|
<template v-if="view == 'discard'">
|
||||||
|
<CardPreview :tilted="false" v-for=" card in player.discard_pile " :card_id="card.card_id">
|
||||||
|
</CardPreview>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.player_list_element {
|
.button>div>img:not(.selected) {
|
||||||
border-radius: 10px;
|
filter: brightness(.5)
|
||||||
margin: 10px;
|
|
||||||
filter: drop-shadow(2.5px 7.5px 1px rgba(0, 0, 0, .60));
|
|
||||||
transform: translate(-2.5px, -7.5px);
|
|
||||||
backdrop-filter: blur(5px);
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
box-sizing: border-box;
|
|
||||||
transition: all .1s;
|
|
||||||
width: 300px;
|
|
||||||
cursor: pointer
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.player_list_element::before {
|
|
||||||
border-radius: 10px;
|
|
||||||
background: rgb(15, 179, 255);
|
.tooltip {
|
||||||
content: "";
|
visibility: hidden;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
transition: .1s transform;
|
||||||
left: 0;
|
background: white;
|
||||||
width: 100%;
|
right: -0px;
|
||||||
height: 100%;
|
border-top-right-radius: 1em;
|
||||||
opacity: .5;
|
border-bottom-right-radius: 1em;
|
||||||
|
padding-right: 1em;
|
||||||
|
transition-property: visibility, transform;
|
||||||
|
transition-duration: 0.5s, 0.1s;
|
||||||
|
transition-timing-function: ease-in-out, ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.player_list_element.focused {
|
.button {
|
||||||
filter: unset;
|
|
||||||
transform: unset;
|
|
||||||
}
|
|
||||||
|
|
||||||
.player_list_element.isTurn::before {
|
|
||||||
opacity: .1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.player_list_element.self::before {
|
|
||||||
background: rgb(33, 177, 76);
|
|
||||||
}
|
|
||||||
|
|
||||||
#player_banner {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
grid-area: player_stats;
|
flex-direction: column;
|
||||||
flex-direction: row;
|
align-items: stretch;
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
position: sticky;
|
|
||||||
top: 0;
|
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
pointer-events: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#player_banner.small {
|
.button>div {
|
||||||
flex-direction: row
|
flex: 1 1 0;
|
||||||
}
|
border-right: 5px solid black;
|
||||||
|
width: 45px;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
#player_banner>* {
|
|
||||||
pointer-events: all;
|
|
||||||
}
|
|
||||||
|
|
||||||
#player_stats {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
grid-area: player_stats;
|
justify-content: center;
|
||||||
flex-direction: row;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button>div:not(.stack_button) {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button div:hover .tooltip {
|
||||||
|
visibility: visible;
|
||||||
|
display: block;
|
||||||
|
transform: translateX(100%);
|
||||||
|
transition-duration: 0, 0.1s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button_card_number {
|
||||||
|
font-size: 2em;
|
||||||
|
position: absolute;
|
||||||
|
text-shadow: white 0 0 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.button>div:not(:last-child) {
|
||||||
|
border-bottom: 5px solid black;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.player_list_element {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: min-content 1fr;
|
||||||
|
grid-template-areas:
|
||||||
|
"button player";
|
||||||
|
border: 5px solid black;
|
||||||
|
min-height: 200px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.player_list_element.self {
|
||||||
|
/* background-image: url('/images/bg-grass.png'); */
|
||||||
|
}
|
||||||
|
|
||||||
|
.view {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
align-content: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
.ready-bubble {
|
<style>
|
||||||
color: white;
|
#player_list_buttons img {
|
||||||
padding: 0.5em;
|
max-width: 100%;
|
||||||
border-radius: 1em;
|
object-fit: contain;
|
||||||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
position: absolute;
|
||||||
|
display: block;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
margin: auto 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ready {
|
.view #contextMenuButtons button:not(.enemy_action) {
|
||||||
background-color: green;
|
display: none
|
||||||
}
|
|
||||||
|
|
||||||
.not-ready {
|
|
||||||
background-color: maroon;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
+173
-38
@@ -26,7 +26,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|||||||
hide_stack_and_discard: () => false,
|
hide_stack_and_discard: () => false,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const discard_unwrapped = ref(false)
|
||||||
const isPlayerTurn = computed(() => props.player.team === goStore.current_game?.current_turn);
|
const isPlayerTurn = computed(() => props.player.team === goStore.current_game?.current_turn);
|
||||||
const isSelf = computed(() => props.player.uuid === goStore.self?.uuid);
|
const isSelf = computed(() => props.player.uuid === goStore.self?.uuid);
|
||||||
const isSelfTurn = computed(() => goStore.self?.team === goStore.current_game?.current_turn)
|
const isSelfTurn = computed(() => goStore.self?.team === goStore.current_game?.current_turn)
|
||||||
@@ -38,8 +38,8 @@ const make_discard = (target: Player) =>
|
|||||||
clientStore.findUseEffect(CardEffects.MAKE_DISCARD, target);
|
clientStore.findUseEffect(CardEffects.MAKE_DISCARD, target);
|
||||||
const sacrifice = (target: Card) => clientStore.findUseEffect(CardEffects.SACRIFICE, target);
|
const sacrifice = (target: Card) => clientStore.findUseEffect(CardEffects.SACRIFICE, target);
|
||||||
const stun = (target: Card) => clientStore.findUseEffect(CardEffects.STUN, target)
|
const stun = (target: Card) => clientStore.findUseEffect(CardEffects.STUN, target)
|
||||||
// const restack_discarded_champion = (target: Card) => clientStore.findUseEffect(CardEffects.RESTACK_DISCARDED_CHAMPION, target)
|
const restack_discarded_champion = (target: Card) => clientStore.findUseEffect(CardEffects.RESTACK_DISCARDED_CHAMPION, target)
|
||||||
// const restack_discarded_card = (target: Card) => clientStore.findUseEffect(CardEffects.RESTACK_DISCARDED_CARD, target)
|
const restack_discarded_card = (target: Card) => clientStore.findUseEffect(CardEffects.RESTACK_DISCARDED_CARD, target)
|
||||||
const prepare_champion = (target: Card) => clientStore.findUseEffect(CardEffects.PREPARE, target)
|
const prepare_champion = (target: Card) => clientStore.findUseEffect(CardEffects.PREPARE, target)
|
||||||
|
|
||||||
|
|
||||||
@@ -91,19 +91,70 @@ function check_for_guard(player: Player) {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="player" :class="{ turn: isPlayerTurn, self: isSelf }">
|
<div class="player" :class="{ turn: isPlayerTurn, discard_unwrapped, self: isSelf }">
|
||||||
<div id="player_banner" class="big">test</div>
|
<template v-if="!hide_stack_and_discard">
|
||||||
<div id="turn_buttons">
|
<div class="stack">
|
||||||
<button id="end_turn" class="end_turn_button turn_icon" :class="{ hidden: !isSelfTurn }"
|
|
||||||
@click="checkEndTurn">END TURN</button>
|
|
||||||
|
|
||||||
<div class="warning"
|
<CardsGrouped :stack="props.player.stack_pile">
|
||||||
:class="{ 'warning-fire-gem': warningText == 'P\'tite Fire gem?', 'visible': warning }">
|
<!-- <button v-if="isSelf && isTurn" @click="draw">DRAW</button> -->
|
||||||
/!\<br>{{ warningText }}
|
</CardsGrouped>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="discard" :class="{ invisible: discard_unwrapped }" @click="() => discard_unwrapped = true">
|
||||||
|
<CardsGrouped :stack="props.player.discard_pile" :visible="!discard_unwrapped"> </CardsGrouped>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="discard_overlay" v-if="discard_unwrapped">
|
||||||
|
<CardPreview :tilted="false" v-if="discard_unwrapped" :card_id="c.card_id"
|
||||||
|
v-for="c in props.player.discard_pile">
|
||||||
|
<template v-if="goStore.self?.turn && c && isSelf && isPlayerTurn">
|
||||||
|
<button
|
||||||
|
v-if="clientStore.activatedClientside.find((e: Effect) => (e.effect == CardEffects.SACRIFICE) && e.usable)"
|
||||||
|
@click.stop="sacrifice(c)">
|
||||||
|
SACRIFICE
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
v-if="c.card_type == CardType.CHAMPION && clientStore.activatedClientside.find((e: Effect) => (e.effect == CardEffects.RESTACK_DISCARDED_CHAMPION) && e.usable)"
|
||||||
|
@click.stop="restack_discarded_champion(c)">
|
||||||
|
RESTACK_DISCARDED_CHAMPION
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
v-if="clientStore.activatedClientside.find((e: Effect) => (e.effect == CardEffects.RESTACK_DISCARDED_CARD) && e.usable)"
|
||||||
|
@click.stop="restack_discarded_card(c)">
|
||||||
|
RESTACK_DISCARDED_CARD
|
||||||
|
</button>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
</CardPreview>
|
||||||
|
</div>
|
||||||
|
<div :id="`discard_unwrapped_bg`" :class="`${discard_unwrapped ? 'unwrapped' : ''}`"
|
||||||
|
@click="() => discard_unwrapped = false"></div>
|
||||||
|
</template>
|
||||||
|
<div id="player_banner" :class="hide_stack_and_discard ? 'small' : 'big'">
|
||||||
|
<div class="ready-bubble not-ready" v-if="!props.player.ready && !goStore.current_game?.started">Pas encore
|
||||||
|
prêt...
|
||||||
|
</div>
|
||||||
|
<div class="ready-bubble ready" v-if="props.player.ready && !goStore.current_game?.started">Prêt!</div>
|
||||||
|
<div id="player_info">
|
||||||
|
<PlayerIcon :player="props.player"></PlayerIcon>
|
||||||
|
</div>
|
||||||
|
<div id="player_stats">
|
||||||
|
<template v-if="goStore.current_game?.started">
|
||||||
|
<PlayerStats :player="props.player">
|
||||||
|
</PlayerStats>
|
||||||
|
<template v-if="!hide_stack_and_discard">
|
||||||
|
<button id="end_turn" class="end_turn_button turn_icon" :class="{ hidden: !isSelfTurn }"
|
||||||
|
@click="checkEndTurn">END TURN</button>
|
||||||
|
|
||||||
|
<div class="warning"
|
||||||
|
:class="{ 'warning-fire-gem': warningText == 'P\'tite Fire gem?', 'visible': warning }">
|
||||||
|
/!\<br>{{ warningText }}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="current_player_board">
|
<div id="current_player_board">
|
||||||
<div class="other_player_buttons_container">
|
<div class="other_player_buttons_container">
|
||||||
<button @click.stop="damage_team(props.player.team)"
|
<button @click.stop="damage_team(props.player.team)"
|
||||||
@@ -127,16 +178,13 @@ function check_for_guard(player: Player) {
|
|||||||
|
|
||||||
<div class="cards_container">
|
<div class="cards_container">
|
||||||
<!-- HAND -->
|
<!-- HAND -->
|
||||||
<template v-if="props.player != goStore.self">
|
<CardPreview :card_id="c?.card_id" v-for="c in props.player.hand" @click="c && playCard(c)">
|
||||||
<CardPreview :card_id="c?.card_id" v-for="c in props.player.hand" @click="c && playCard(c)">
|
<button
|
||||||
<button
|
v-if="props.player.turn && c && isSelf && (props.player.turn.discard_markers + props.player.turn.fuck_u_markers) > 0"
|
||||||
v-if="props.player.turn && c && isSelf && (props.player.turn.discard_markers + props.player.turn.fuck_u_markers) > 0"
|
@click.stop="discard(c)">
|
||||||
@click.stop="discard(c)">
|
DISCARD
|
||||||
DISCARD
|
</button>
|
||||||
</button>
|
</CardPreview>
|
||||||
</CardPreview>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<!-- BOARD -->
|
<!-- BOARD -->
|
||||||
<CardPreview :card_id="c.card_id" v-for="c in props.player.board" @click="lockCard(c)"
|
<CardPreview :card_id="c.card_id" v-for="c in props.player.board" @click="lockCard(c)"
|
||||||
:locked="props.player.turn && c.uuid in props.player.turn.cards_locked">
|
:locked="props.player.turn && c.uuid in props.player.turn.cards_locked">
|
||||||
@@ -220,13 +268,6 @@ function check_for_guard(player: Player) {
|
|||||||
background-color: rgba(255, 165, 0, 0.7);
|
background-color: rgba(255, 165, 0, 0.7);
|
||||||
}
|
}
|
||||||
|
|
||||||
#turn_buttons {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 0;
|
|
||||||
left: 50%;
|
|
||||||
transform: translateX(-50%);
|
|
||||||
}
|
|
||||||
|
|
||||||
#end_turn {
|
#end_turn {
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -263,24 +304,74 @@ function check_for_guard(player: Player) {
|
|||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.discard_overlay {
|
||||||
|
z-index: 9;
|
||||||
|
display: flex;
|
||||||
|
/* background: blue; */
|
||||||
|
pointer-events: none;
|
||||||
|
gap: 2px;
|
||||||
|
flex-wrap: wrap-reverse;
|
||||||
|
align-content: flex-end;
|
||||||
|
cursor: default;
|
||||||
|
position: absolute;
|
||||||
|
padding-bottom: inherit;
|
||||||
|
padding-left: 40px;
|
||||||
|
height: calc(100% - 64px);
|
||||||
|
padding-top: 64px;
|
||||||
|
width: calc(100% -40px);
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#discard_unwrapped_bg {
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
z-index: 8;
|
||||||
|
background: rgba(0, 0, 0, 0.5);
|
||||||
|
pointer-events: all;
|
||||||
|
padding: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
#discard_unwrapped_bg.unwrapped {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
.player {
|
.player {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: min-content 1fr;
|
||||||
grid-template-rows: min-content 1fr;
|
grid-template-rows: min-content min-content 1fr;
|
||||||
/* border-top: 5px solid black; */
|
/* border-top: 5px solid black; */
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"player_stats"
|
"player_stats player_stats"
|
||||||
"player";
|
"stack player"
|
||||||
|
"discard player";
|
||||||
transition: all 1s;
|
transition: all 1s;
|
||||||
justify-items: center;
|
|
||||||
/* margin-bottom: -75px;
|
/* margin-bottom: -75px;
|
||||||
padding-bottom: 75px; */
|
padding-bottom: 75px; */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.discard_overlay {
|
||||||
|
grid-template-areas:
|
||||||
|
"player_stats player_stats"
|
||||||
|
"stack player";
|
||||||
|
}
|
||||||
|
|
||||||
#current_player_board {
|
#current_player_board {
|
||||||
grid-area: player;
|
grid-area: player;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.other_player_buttons_container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.damage_button {
|
.damage_button {
|
||||||
background-color: #ff4d4d;
|
background-color: #ff4d4d;
|
||||||
color: white;
|
color: white;
|
||||||
@@ -362,6 +453,28 @@ function check_for_guard(player: Player) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#player_banner {
|
||||||
|
display: flex;
|
||||||
|
grid-area: player_stats;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
padding-top: 1em;
|
||||||
|
z-index: 1;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#player_banner.small {
|
||||||
|
flex-direction: column
|
||||||
|
}
|
||||||
|
|
||||||
|
#player_banner>* {
|
||||||
|
pointer-events: all;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#player_info {
|
#player_info {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -369,9 +482,9 @@ function check_for_guard(player: Player) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#player_banner.big {
|
#player_banner.big {
|
||||||
/* padding: 0;
|
padding: 0;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%); */
|
transform: translateX(-50%);
|
||||||
max-width: min-content;
|
max-width: min-content;
|
||||||
border: 5px solid black;
|
border: 5px solid black;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
@@ -379,7 +492,13 @@ function check_for_guard(player: Player) {
|
|||||||
backdrop-filter: blur(5px) brightness(80%) grayscale(80%);
|
backdrop-filter: blur(5px) brightness(80%) grayscale(80%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#player_stats {
|
||||||
|
display: flex;
|
||||||
|
grid-area: player_stats;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
#player_banner img {
|
#player_banner img {
|
||||||
height: 50px;
|
height: 50px;
|
||||||
@@ -425,6 +544,22 @@ function check_for_guard(player: Player) {
|
|||||||
/* Remove shadow on click */
|
/* Remove shadow on click */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ready-bubble {
|
||||||
|
color: white;
|
||||||
|
padding: 0.5em;
|
||||||
|
border-radius: 1em;
|
||||||
|
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
||||||
|
margin-bottom: 3%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ready {
|
||||||
|
background-color: green;
|
||||||
|
}
|
||||||
|
|
||||||
|
.not-ready {
|
||||||
|
background-color: maroon;
|
||||||
|
}
|
||||||
|
|
||||||
.suicide_effect {
|
.suicide_effect {
|
||||||
background: linear-gradient(to bottom right, #666666, #ccc);
|
background: linear-gradient(to bottom right, #666666, #ccc);
|
||||||
color: red;
|
color: red;
|
||||||
|
|||||||
@@ -17,20 +17,20 @@ const props = defineProps<Props>()
|
|||||||
{{ player.team?.health }}
|
{{ player.team?.health }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="turn_icon" v-if="showTurnData">
|
<div class="turn_icon">
|
||||||
<img src="/images/gold.png" class="icon_img" draggable="false" />
|
<img src="/images/gold.png" class="icon_img" draggable="false" />
|
||||||
<span class="turn_icon_number">
|
<span class="turn_icon_number">
|
||||||
{{ player.turn?.gold_reserve }}
|
{{ player.turn?.gold_reserve }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="turn_icon" v-if="showTurnData">
|
<div class="turn_icon">
|
||||||
<img src="/images/damage.png" class="icon_img" draggable="false" />
|
<img src="/images/damage.png" class="icon_img" draggable="false" />
|
||||||
<span class="turn_icon_number">
|
<span class="turn_icon_number">
|
||||||
{{ player.turn?.damage_reserve }}
|
{{ player.turn?.damage_reserve }}
|
||||||
</span>
|
</span>
|
||||||
</div> -->
|
</div>
|
||||||
<div class="turn_icon">
|
<div class="turn_icon">
|
||||||
<img src="/images/fuck.svg" class="icon_img" draggable="false" />
|
<span class="icon_img">🖕</span>
|
||||||
<span class="turn_icon_number">{{ (player.turn?.discard_markers ?? 0) + (player.turn?.fuck_u_markers ?? 0)
|
<span class="turn_icon_number">{{ (player.turn?.discard_markers ?? 0) + (player.turn?.fuck_u_markers ?? 0)
|
||||||
}}</span>
|
}}</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -47,11 +47,11 @@ const props = defineProps<Props>()
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
height: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
img.icon_img {
|
img.icon_img {
|
||||||
height: 50px;
|
height: 50px;
|
||||||
width: 50px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
span.icon_img {
|
span.icon_img {
|
||||||
|
|||||||
@@ -0,0 +1,319 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
|
||||||
|
import type { Card } from '~/netcode/Card';
|
||||||
|
|
||||||
|
const router = useRouter();
|
||||||
|
|
||||||
|
</script>
|
||||||
|
<template>
|
||||||
|
<div class="background">
|
||||||
|
<div class="overlay-2">
|
||||||
|
<div class="erika-zone-2">
|
||||||
|
<img @click="router.push({ path: '/' })" class="overlay-image"
|
||||||
|
src="https://static.wikia.nocookie.net/umineko/images/9/9d/PC_Erika.Casual.Sprite_36.png"
|
||||||
|
alt="pétasse" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="text-content">
|
||||||
|
<h1>Règles de Héron Realms</h1>
|
||||||
|
<section>
|
||||||
|
<p>Héron Realms, c'est un jeu de <span style="text-decoration:line-through;">héron building</span>
|
||||||
|
deck-building.</p>
|
||||||
|
<p>Tout le monde part d'un même deck de base.</p>
|
||||||
|
<p>Le but du jeu est de l'enrichir pour obtenir de quoi gagner.</p>
|
||||||
|
<p>Et comme la violence est une solution universelle, ça se traduit en battre ses adversaires.</p>
|
||||||
|
<p>​</p>
|
||||||
|
<p>Et quoi de mieux pour faire ça que des cartes colorées?</p>
|
||||||
|
<div class="card-row">
|
||||||
|
<CardPreview :card_id="6" :tilted="false"></CardPreview>
|
||||||
|
<CardPreview :card_id="19" :tilted="false"></CardPreview>
|
||||||
|
<CardPreview :card_id="36" :tilted="false"></CardPreview>
|
||||||
|
<CardPreview :card_id="46" :tilted="false"></CardPreview>
|
||||||
|
</div>
|
||||||
|
<p>​</p>
|
||||||
|
<hr>
|
||||||
|
<p>​</p>
|
||||||
|
<h2>Objectif</h2>
|
||||||
|
<p>L'unique objectif du jeu est d'être le dernier en lice. Pour y arriver, il faut descendre les Points
|
||||||
|
de Vie de vos adversaires à 0 en partant de 50.</p>
|
||||||
|
<p>
|
||||||
|
Le moyen principal d'y arriver, c'est de faire des <span style="color: red">Dégats</span> <img
|
||||||
|
src="/images/damage.png" class="icon_img" draggable="false" />. Tout le reste des mécaniques du
|
||||||
|
jeu sont là pour vous faciliter la tâche,
|
||||||
|
ou pour mettre des bâtons dans les roues de vos adversaires.
|
||||||
|
</p>
|
||||||
|
<p>​</p>
|
||||||
|
<hr>
|
||||||
|
<h2>Deckbuilding</h2>
|
||||||
|
<p>Comme c'est un jeu de "deckbuilding", on va expliquer ce qu'est le "deck" et ce qui nous permet de le
|
||||||
|
"build".</p>
|
||||||
|
<div class="card-row">
|
||||||
|
<CardPreview :card_id="undefined" :tilted="false"></CardPreview>
|
||||||
|
</div>
|
||||||
|
<p>​</p>
|
||||||
|
<p>
|
||||||
|
Le deck d'un joueur est-ce qui constitue sa pioche, qui lui permettra ensuite de constituer sa main
|
||||||
|
(la main est préparée à la fin du tour et permet de jouer le tour d'après).
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Quand la pioche est vide, elle est recyclée à partir de sa défausse.
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
La défausse est ce qui contient les cartes déjà jouées. Mais aussi celles qui sont achetées! Elle
|
||||||
|
finit par être mélangée pour former la nouvelle pioche.
|
||||||
|
</p>
|
||||||
|
<p>​</p>
|
||||||
|
<hr>
|
||||||
|
<h2>Deck de base</h2>
|
||||||
|
<p>
|
||||||
|
Tout le monde commence avec 10 cartes divisées en 4 types:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>7x Or (1)</li>
|
||||||
|
<li>1x Or (2)</li>
|
||||||
|
<li>1x Dégats (1)</li>
|
||||||
|
<li>1x Dégats (2)</li>
|
||||||
|
</ul>
|
||||||
|
<div class="card-row">
|
||||||
|
<CardPreview :card_id="56" :tilted="false"></CardPreview>
|
||||||
|
<CardPreview :card_id="59" :tilted="false"></CardPreview>
|
||||||
|
<CardPreview :card_id="58" :tilted="false"></CardPreview>
|
||||||
|
<CardPreview :card_id="57" :tilted="false"></CardPreview>
|
||||||
|
</div>
|
||||||
|
<p>
|
||||||
|
La pioche est formée au hasard: on peut donc avoir une main de départ avec 5 or et 2 dégats, ou 3 or
|
||||||
|
et 4 dégats, ou 4 or et 3 dégats, etc.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
A partir de sa main, on peut jouer des cartes. Ces cartes peuvent déclencher des effets: on peut
|
||||||
|
considérer qu'ils vont dans un "pool commun", et qu'on peut les utiliser dans
|
||||||
|
l'ordre qu'on souhaite. 1 de dégats et 2 de dégats me donnent 3 ressources de dégats que je split
|
||||||
|
comme je veux ensuite. Pareil pour l'or et pour le soin, qui sont les 3 ressources
|
||||||
|
principales du jeu.
|
||||||
|
</p>
|
||||||
|
<p>​</p>
|
||||||
|
<hr>
|
||||||
|
<h2>Types de cartes</h2>
|
||||||
|
<p>
|
||||||
|
Les cartes sont divisées en 3 catégories: objets, actions et champions.
|
||||||
|
</p>
|
||||||
|
<div class="card-row">
|
||||||
|
<CardPreview :card_id="56" :tilted="false"></CardPreview>
|
||||||
|
<CardPreview :card_id="52" :tilted="false"></CardPreview>
|
||||||
|
<CardPreview :card_id="43" :tilted="false"></CardPreview>
|
||||||
|
</div>
|
||||||
|
<p>​</p>
|
||||||
|
<h3>Objets & actions</h3>
|
||||||
|
<div class="card-row">
|
||||||
|
<CardPreview :card_id="56" :tilted="false"></CardPreview>
|
||||||
|
<CardPreview :card_id="52" :tilted="false"></CardPreview>
|
||||||
|
</div>
|
||||||
|
<p>
|
||||||
|
Par simplicité, disons que les objets et les actions sont pareil: on les joue, ils font un effet
|
||||||
|
disponible durant le tour actuel, et ils sont défaussés.
|
||||||
|
</p>
|
||||||
|
<h3>Champions (& gardes)</h3>
|
||||||
|
<div class="card-row">
|
||||||
|
<CardPreview :card_id="43" :tilted="false"></CardPreview>
|
||||||
|
</div>
|
||||||
|
<p>
|
||||||
|
Les champions sont un peu plus complexes: ils restent sur le terrain, et on peut les utiliser à
|
||||||
|
chaque tour (en les mobilisant).
|
||||||
|
</p>
|
||||||
|
<p>Ils ont une défense <img src="/images/champion-shield.png" style="height: 30px" draggable="false" />
|
||||||
|
indiquée en bas à droite et ils ne sont assommés (défaussés) que si on leur fait des dégats =
|
||||||
|
défense.</p>
|
||||||
|
<p>Ces dégats doivent être faits d'un coup. Je ne peux pas faire un peu de dégats pendant un tour, et un
|
||||||
|
peu le tour d'après pour les tuer.</p>
|
||||||
|
<div class="card-row">
|
||||||
|
<CardPreview :card_id="49" :tilted="false"></CardPreview>
|
||||||
|
</div>
|
||||||
|
<p>
|
||||||
|
Par ailleurs, certains champions sont des Gardes <img src="/images/champion-shield-guard.png"
|
||||||
|
style="height: 30px" draggable="false" /> (ils ont un bouclier noir), ce qui veut dire qu'on est
|
||||||
|
obligés de les tuer pour faire des dégats à des champions non-gardes ou au joueur.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
(J'en profite pour préciser qu'on peut en effet, sans garde, choisir d'attaquer le joueur
|
||||||
|
directement ou ses champions.)
|
||||||
|
Incidentellement, ça veut dire qu'avec seulement 2 de dégats, je ne peux rien faire à un joueur avec
|
||||||
|
un garde à 3 de défense.
|
||||||
|
</p>
|
||||||
|
<p>​</p>
|
||||||
|
<hr>
|
||||||
|
<h2>Building</h2>
|
||||||
|
<p>
|
||||||
|
Passons au "building": on peut acheter des cartes pour les ajouter à notre défausse qui, si vous
|
||||||
|
avez suivi, constituera la prochaine pioche.
|
||||||
|
Avec le jeu de base, <span style="color: darkgoldenrod">l'or</span> <img src="/images/gold.png"
|
||||||
|
class="icon_img" draggable="false" /> sert exclusivement à accomplir ce but: acheter des cartes.
|
||||||
|
</p>
|
||||||
|
<div class="card-row">
|
||||||
|
<CardPreview :card_id="6" :tilted="false"></CardPreview>
|
||||||
|
<CardPreview :card_id="19" :tilted="false"></CardPreview>
|
||||||
|
<CardPreview :card_id="36" :tilted="false"></CardPreview>
|
||||||
|
<CardPreview :card_id="46" :tilted="false"></CardPreview>
|
||||||
|
</div>
|
||||||
|
<p>
|
||||||
|
Un marché est mis à disposition de tous les joueurs, mettant à disposition 5 cartes (pas ici parce
|
||||||
|
que j'ai pas la place).
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Ces cartes ont chacune un coût indiqué en haut à droite.
|
||||||
|
Il faut au moins autant d'or que ce qui est indiqué pour acheter une carte. Une carte achetée laisse
|
||||||
|
la place à une nouvelle carte directement, qu'on peut
|
||||||
|
décider d'acheter juste après (tant qu'on a l'argent).
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Il ne nous reste plus qu'à comprendre ce que font les cartes du marché, puisqu'elles sont plus
|
||||||
|
complexes (et bien plus fortes) que votre deck de base.
|
||||||
|
Prenons des exemples!
|
||||||
|
</p>
|
||||||
|
<hr>
|
||||||
|
<h2>Couleurs</h2>
|
||||||
|
<p>
|
||||||
|
La première chose qui ne vous échappera pas, c'est qu'on a 4 couleurs différentes pour les cartes.
|
||||||
|
</p>
|
||||||
|
<p>​</p>
|
||||||
|
<div class="card-row">
|
||||||
|
<CardPreview :card_id="13" :tilted="false"></CardPreview>
|
||||||
|
<CardPreview :card_id="3" :tilted="false"></CardPreview>
|
||||||
|
<CardPreview :card_id="1" :tilted="false"></CardPreview>
|
||||||
|
</div>
|
||||||
|
<p>​</p>
|
||||||
|
<p>Les cartes <span style="color: darkgoldenrod">jaunes</span> sont les cartes Empire.</p>
|
||||||
|
<p>Elles font beaucoup de soin, et activent souvent des effets de pioche.</p>
|
||||||
|
<p>​</p>
|
||||||
|
<div class="card-row">
|
||||||
|
<CardPreview :card_id="39" :tilted="false"></CardPreview>
|
||||||
|
<CardPreview :card_id="34" :tilted="false"></CardPreview>
|
||||||
|
<CardPreview :card_id="40" :tilted="false"></CardPreview>
|
||||||
|
</div>
|
||||||
|
<p>​</p>
|
||||||
|
<p>Les cartes <span style="color: red">rouges</span> sont les cartes Necros.</p>
|
||||||
|
<p>Elles sont les seules à pouvoir sacrifier des cartes pour les sortir de son deck de façon permanente.
|
||||||
|
</p>
|
||||||
|
<p>​</p>
|
||||||
|
<div class="card-row">
|
||||||
|
<CardPreview :card_id="52" :tilted="false"></CardPreview>
|
||||||
|
<CardPreview :card_id="46" :tilted="false"></CardPreview>
|
||||||
|
<CardPreview :card_id="47" :tilted="false"></CardPreview>
|
||||||
|
</div>
|
||||||
|
<p>​</p>
|
||||||
|
<p>Les cartes <span style="color: darkgreen">vertes</span> sont les cartes Sauvages.</p>
|
||||||
|
<p>Elles font beaucoup de dégats, et forcent vos adversaires à jouer moins de cartes.</p>
|
||||||
|
<p>​</p>
|
||||||
|
<div class="card-row">
|
||||||
|
<CardPreview :card_id="24" :tilted="false"></CardPreview>
|
||||||
|
<CardPreview :card_id="25" :tilted="false"></CardPreview>
|
||||||
|
<CardPreview :card_id="19" :tilted="false"></CardPreview>
|
||||||
|
</div>
|
||||||
|
<p>​</p>
|
||||||
|
<p>Les cartes <span style="color: darkblue">bleues</span> sont les cartes Guilde.</p>
|
||||||
|
<p>Elles donnent beaucoup d'or, assomment les champions adverses et manipulent votre pioche.</p>
|
||||||
|
<p>​</p>
|
||||||
|
<hr>
|
||||||
|
<h2>Déclencheurs</h2>
|
||||||
|
<p>Les effets de cartes peuvent se déclencher pour 3 raisons différentes.</p>
|
||||||
|
<div class="card-row">
|
||||||
|
<CardPreview :card_id="14" :tilted="false"></CardPreview>
|
||||||
|
</div>
|
||||||
|
<p>Sur cette carte, on peut voir les trois en même temps.</p>
|
||||||
|
<p>La 1ère ligne s'active tout le temps.</p>
|
||||||
|
<p>La 2ème ligne est une capacité Allié: il faut une autre carte de la même couleur en jeu pour pouvoir
|
||||||
|
en profiter.</p>
|
||||||
|
<p>La 3ème ligne est un Effet Poubelle (différent du sacrifice des cartes rouges): vous pouvez retirer
|
||||||
|
cette carte de votre jeu pour bénéficier, en plus des autres effets, de l'effet marqué. Mais la
|
||||||
|
carte sera défaussée à tout jamais.</p>
|
||||||
|
<p>​</p>
|
||||||
|
<hr>
|
||||||
|
<h2>Effets</h2>
|
||||||
|
<p>Une variété d'effets peuvent être inclus dans les cartes.</p>
|
||||||
|
<p>Il y en a plein et les expliquer ici serait relou, alors je vous laisse poser la question en vocal si
|
||||||
|
vous n'en comprenez pas un.</p>
|
||||||
|
<p>​</p>
|
||||||
|
<hr>
|
||||||
|
<h2>Activer les cartes dans la version en ligne</h2>
|
||||||
|
<p>Il suffit de cliquer sur la carte que vous voulez activer dans votre main pour la "LOCK".</p>
|
||||||
|
<p>Une carte "LOCKED" est considérée en jeu, & peut activer des effets Allié pour d'autres cartes, etc.
|
||||||
|
</p>
|
||||||
|
<p>Si vous avez des choix à faire sur la carte, un menu apparaîtra pour vous laisser choisir.</p>
|
||||||
|
<p>Pour faire des dommages, il y aura un bouton "Damage" sur vos ennemis. Pareil sur leurs champions.
|
||||||
|
</p>
|
||||||
|
<p>Quand vous avez un effet "Sacrifice", vous pouvez fouiller votre défausse pour choisir la carte à
|
||||||
|
sacrifier. Vous pouvez également sacrifier une carte de la main qui n'est pas encore locked!</p>
|
||||||
|
<h2>Zoomer sur les cartes</h2>
|
||||||
|
<p>Pour zoomer sur une carte, maintenez votre clic droit.</p>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.background {
|
||||||
|
background-color: #f0f0f0;
|
||||||
|
background-image: url('/images/bg-darkgrass.png');
|
||||||
|
background-size: auto;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
width: 100vw;
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-content {
|
||||||
|
background-color: rgba(255, 255, 255, .75);
|
||||||
|
padding: 1em;
|
||||||
|
border-radius: 1em;
|
||||||
|
max-width: 800px;
|
||||||
|
margin-top: 2em;
|
||||||
|
text-align: left;
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 2em;
|
||||||
|
margin-bottom: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin: 1em 0;
|
||||||
|
font-size: 1.2em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-row {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overlay-2 {
|
||||||
|
height: 00px;
|
||||||
|
width: 100%;
|
||||||
|
position: sticky;
|
||||||
|
z-index: 2;
|
||||||
|
top: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
|
||||||
|
.erika-zone-2 {
|
||||||
|
position: absolute;
|
||||||
|
top: 300px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: right;
|
||||||
|
z-index: 2;
|
||||||
|
height: 300px;
|
||||||
|
width: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
|
||||||
|
.overlay-image {
|
||||||
|
position: sticky;
|
||||||
|
height: 100%;
|
||||||
|
cursor: pointer;
|
||||||
|
pointer-events: all;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -103,4 +103,8 @@ import goStore, { useEffect, playCard, playAllCards, discard, lockCard, heal, da
|
|||||||
transform: translateY(-40px);
|
transform: translateY(-40px);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.cards_container {
|
||||||
|
min-width: 250px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -1,66 +0,0 @@
|
|||||||
import goStore, { oauth2_register_discord, setup_websocket, heron_cookie_login, join_game } from "@/netcode";
|
|
||||||
|
|
||||||
export default defineNuxtRouteMiddleware
|
|
||||||
(async (to, from) => {
|
|
||||||
await setup_websocket()
|
|
||||||
|
|
||||||
|
|
||||||
if (to.path == '/login') {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if (to.path == '/') {
|
|
||||||
const code = to.query.code
|
|
||||||
if (code) {
|
|
||||||
if (!Array.isArray(code)) {
|
|
||||||
try {
|
|
||||||
await oauth2_register_discord(code)
|
|
||||||
return navigateTo('/lobby')
|
|
||||||
} catch {
|
|
||||||
return navigateTo('/login')
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return navigateTo('/login')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return navigateTo("/lobby")
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!goStore.discordId) {
|
|
||||||
const heron_session = useCookie('heron_session')
|
|
||||||
if (!heron_session.value) { return navigateTo('/login') }
|
|
||||||
|
|
||||||
try {
|
|
||||||
await heron_cookie_login(heron_session.value)
|
|
||||||
if (to.path == '/') {
|
|
||||||
return navigateTo("/lobby")
|
|
||||||
}
|
|
||||||
} catch {
|
|
||||||
return navigateTo('/login')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (to.path.startsWith("/games")) {
|
|
||||||
if (Array.isArray(to.params.id)) { return navigateTo('/lobby') }
|
|
||||||
try {
|
|
||||||
await join_game(to.params.id)
|
|
||||||
return
|
|
||||||
} catch {
|
|
||||||
return navigateTo("/lobby")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (to.path == "/lobby") {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (to.path == "/rules") {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
// In a real app you would probably not redirect every route to `/`
|
|
||||||
// however it is important to check `to.path` before redirecting or you
|
|
||||||
// might get an infinite redirect loop
|
|
||||||
if (to.path !== '/') {
|
|
||||||
return navigateTo('/')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
+21
-61
@@ -15,7 +15,6 @@ import { type Lobby, create_lobby, type LobbyNetcode } from "./Lobby";
|
|||||||
|
|
||||||
import { type Ref } from "vue";
|
import { type Ref } from "vue";
|
||||||
|
|
||||||
const socketTimeout = 1000
|
|
||||||
let socket: WebSocket;
|
let socket: WebSocket;
|
||||||
|
|
||||||
export class GameObjectRegister {
|
export class GameObjectRegister {
|
||||||
@@ -26,8 +25,6 @@ export class GameObjectRegister {
|
|||||||
readonly turns: Map<string, Turn>;
|
readonly turns: Map<string, Turn>;
|
||||||
readonly games: Map<string, Game>;
|
readonly games: Map<string, Game>;
|
||||||
|
|
||||||
readonly gameRoutingCallbacks: Map<string, [() => void, () => void]>;
|
|
||||||
readonly loginCallbacks: Set<() => void>;
|
|
||||||
context: "lobby" | "login" | "pregame" | "game" | "rules" = "login";
|
context: "lobby" | "login" | "pregame" | "game" | "rules" = "login";
|
||||||
private readonly objects: Map<string, GameObjectNetcode>;
|
private readonly objects: Map<string, GameObjectNetcode>;
|
||||||
current_game: Ref<Game | null>;
|
current_game: Ref<Game | null>;
|
||||||
@@ -40,9 +37,6 @@ export class GameObjectRegister {
|
|||||||
clientMouseY: Ref<number>
|
clientMouseY: Ref<number>
|
||||||
discordId: Ref<string>
|
discordId: Ref<string>
|
||||||
constructor() {
|
constructor() {
|
||||||
this.gameRoutingCallbacks = new Map();
|
|
||||||
this.loginCallbacks = new Set();
|
|
||||||
|
|
||||||
this.effects = reactive(new Map());
|
this.effects = reactive(new Map());
|
||||||
this.cards = reactive(new Map());
|
this.cards = reactive(new Map());
|
||||||
this.teams = reactive(new Map());
|
this.teams = reactive(new Map());
|
||||||
@@ -123,12 +117,6 @@ export class GameObjectRegister {
|
|||||||
}
|
}
|
||||||
setCurrentGame = (uuid: string) => {
|
setCurrentGame = (uuid: string) => {
|
||||||
this.current_game.value = this.games.get(uuid) ?? null;
|
this.current_game.value = this.games.get(uuid) ?? null;
|
||||||
this.gameRoutingCallbacks.get(uuid)?.[0]()
|
|
||||||
this.gameRoutingCallbacks.delete(uuid)
|
|
||||||
for (let [_key, value] of this.gameRoutingCallbacks) {
|
|
||||||
value[1]()
|
|
||||||
this.gameRoutingCallbacks.delete(_key)
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -191,8 +179,6 @@ export const setup_websocket = () =>
|
|||||||
heron_session.value = data.data;
|
heron_session.value = data.data;
|
||||||
} else if (data.data_type == "self_discord_id") {
|
} else if (data.data_type == "self_discord_id") {
|
||||||
goStore.setDiscordId(data.data)
|
goStore.setDiscordId(data.data)
|
||||||
goStore.loginCallbacks.forEach(c => c())
|
|
||||||
goStore.loginCallbacks.clear()
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// console.log(data.type, data.data_type, data.data);
|
// console.log(data.type, data.data_type, data.data);
|
||||||
@@ -202,42 +188,24 @@ export const setup_websocket = () =>
|
|||||||
|
|
||||||
export async function heron_cookie_login(cookie: string) {
|
export async function heron_cookie_login(cookie: string) {
|
||||||
await setup_websocket();
|
await setup_websocket();
|
||||||
return new Promise<void>((resolve, reject) => {
|
socket.send(
|
||||||
goStore.loginCallbacks.add(resolve)
|
JSON.stringify({
|
||||||
socket.send(
|
type: "cookie_login",
|
||||||
JSON.stringify({
|
data_type: "cookie",
|
||||||
type: "cookie_login",
|
data: cookie,
|
||||||
data_type: "cookie",
|
})
|
||||||
data: cookie,
|
);
|
||||||
})
|
|
||||||
);
|
|
||||||
setTimeout(() => {
|
|
||||||
goStore.loginCallbacks.delete(resolve);
|
|
||||||
reject()
|
|
||||||
}
|
|
||||||
, socketTimeout)
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function oauth2_register_discord(code: string) {
|
export async function oauth2_register_discord(code: string) {
|
||||||
await setup_websocket();
|
await setup_websocket();
|
||||||
return new Promise<void>((resolve, reject) => {
|
socket.send(
|
||||||
goStore.loginCallbacks.add(resolve)
|
JSON.stringify({
|
||||||
|
type: "discord_login",
|
||||||
socket.send(
|
data_type: "code",
|
||||||
JSON.stringify({
|
data: code,
|
||||||
type: "discord_login",
|
})
|
||||||
data_type: "code",
|
);
|
||||||
data: code,
|
|
||||||
})
|
|
||||||
);
|
|
||||||
setTimeout(() => {
|
|
||||||
goStore.loginCallbacks.delete(resolve);
|
|
||||||
reject()
|
|
||||||
}
|
|
||||||
, socketTimeout)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function register(username: string) {
|
export async function register(username: string) {
|
||||||
@@ -396,20 +364,12 @@ export async function netcode_create_game() {
|
|||||||
|
|
||||||
export async function join_game(game_uuid: string) {
|
export async function join_game(game_uuid: string) {
|
||||||
await setup_websocket();
|
await setup_websocket();
|
||||||
return new Promise<void>(((resolve, reject) => {
|
socket.send(
|
||||||
goStore.gameRoutingCallbacks.set(game_uuid, [resolve, reject])
|
JSON.stringify({
|
||||||
setTimeout(() => {
|
type: "join",
|
||||||
const cb = goStore.gameRoutingCallbacks.get(game_uuid)
|
data_type: "game",
|
||||||
if (!cb) { return }
|
data: game_uuid,
|
||||||
cb[1]()
|
})
|
||||||
}, socketTimeout)
|
);
|
||||||
socket.send(
|
|
||||||
JSON.stringify({
|
|
||||||
type: "join",
|
|
||||||
data_type: "game",
|
|
||||||
data: game_uuid,
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}))
|
|
||||||
}
|
}
|
||||||
export default goStore;
|
export default goStore;
|
||||||
|
|||||||
Submodule netcode/interfaces deleted from 89c03fe650
@@ -1,276 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
import goStore, { setReady } from '../../netcode';
|
|
||||||
import type { Player } from '../../netcode/Player';
|
|
||||||
import { playSound } from '../../helpers/audioHelpers';
|
|
||||||
import { CardType, type Card } from '../../netcode/Card';
|
|
||||||
import { CardEffects, type Effect } from '../../netcode/Effect';
|
|
||||||
import type { Team } from '~/netcode/Team';
|
|
||||||
|
|
||||||
const current_players = computed<Array<Player>>(() => Array.from(goStore.current_game?.players ?? []).filter(p => p.team === goStore.current_game?.current_turn))
|
|
||||||
|
|
||||||
watch(
|
|
||||||
() => goStore.current_game?.current_turn?.uuid,
|
|
||||||
() => {
|
|
||||||
if (goStore.current_game?.current_turn?.uuid == goStore.self?.team?.uuid) {
|
|
||||||
playSound('/sounds/ding.mp3')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
watch(
|
|
||||||
() => goStore.current_game?.losers,
|
|
||||||
() => {
|
|
||||||
if (goStore.self?.uuid && goStore.current_game?.losers && goStore.current_game.losers.includes(goStore.self.uuid)) {
|
|
||||||
showLoserScreen()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
watch(
|
|
||||||
() => goStore.current_game?.ended,
|
|
||||||
() => {
|
|
||||||
if (goStore.current_game?.ended && goStore.self?.uuid && goStore.current_game?.losers && !goStore.current_game.losers.includes(goStore.self.uuid)) {
|
|
||||||
showWinnerScreen()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
watch(
|
|
||||||
() => goStore.current_game?.players,
|
|
||||||
(newList, oldList) => {
|
|
||||||
if (!oldList || !newList) { return }
|
|
||||||
if (goStore.current_game?.started) { return }
|
|
||||||
if (newList?.length > oldList.length) {
|
|
||||||
playSound('/sounds/teleport.mp3')
|
|
||||||
}
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
const showResults = ref(false)
|
|
||||||
const showOptions = ref(false)
|
|
||||||
const isWinner = ref(false)
|
|
||||||
|
|
||||||
function showLoserScreen() {
|
|
||||||
// playSound('/sounds/ding.mp3')
|
|
||||||
showResults.value = true
|
|
||||||
isWinner.value = false
|
|
||||||
}
|
|
||||||
|
|
||||||
function showWinnerScreen() {
|
|
||||||
// playSound('/sounds/ding.mp3')
|
|
||||||
showResults.value = true
|
|
||||||
isWinner.value = true
|
|
||||||
}
|
|
||||||
|
|
||||||
const discard_unwrapped = ref(false)
|
|
||||||
const focusedPlayer = ref<Player>((goStore.current_game?.players.find(p => p.team == goStore.current_game?.current_turn) ?? goStore.current_game?.players[0])!)
|
|
||||||
const clientStore = useClientSideStore()
|
|
||||||
const restack_discarded_champion = (target: Card) => clientStore.findUseEffect(CardEffects.RESTACK_DISCARDED_CHAMPION, target)
|
|
||||||
const restack_discarded_card = (target: Card) => clientStore.findUseEffect(CardEffects.RESTACK_DISCARDED_CARD, target)
|
|
||||||
const sacrifice = (target: Card) => clientStore.findUseEffect(CardEffects.SACRIFICE, target);
|
|
||||||
|
|
||||||
function focusPlayer(p: Player) {
|
|
||||||
focusedPlayer.value = p
|
|
||||||
}
|
|
||||||
|
|
||||||
watch<Team>(() => goStore.current_game!.current_turn, (new_team, old_team) => {
|
|
||||||
if (focusedPlayer.value.team != old_team) { return }
|
|
||||||
const first_player = goStore.current_game?.players.find(p => p.team == goStore.current_game?.current_turn)
|
|
||||||
if (!first_player) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
focusPlayer(first_player)
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<div @contextmenu.prevent="false" id="game_board">
|
|
||||||
<AnimatedBackground></AnimatedBackground>
|
|
||||||
<div id="game_status">
|
|
||||||
|
|
||||||
<template v-if="goStore.self && !goStore.current_game?.started">
|
|
||||||
<input @click.prevent="setReady(($event.target as HTMLInputElement).checked)" type="checkbox" id="ready"
|
|
||||||
:checked="goStore.self?.ready" />
|
|
||||||
<label for="ready">Ready</label>
|
|
||||||
</template>
|
|
||||||
</div>
|
|
||||||
<div id="stack_discard">
|
|
||||||
<div id="stack">
|
|
||||||
<template v-for="p in current_players">
|
|
||||||
<CardsGrouped :stack="p.stack_pile">
|
|
||||||
|
|
||||||
</CardsGrouped>
|
|
||||||
</template>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="discard" :class="{ invisible: discard_unwrapped }" @click="() => discard_unwrapped = true">
|
|
||||||
<template v-for="p in current_players">
|
|
||||||
<CardsGrouped :stack="p.discard_pile" :visible="!discard_unwrapped">
|
|
||||||
</CardsGrouped>
|
|
||||||
</template>
|
|
||||||
<template v-for="p in current_players">
|
|
||||||
<div class="discard_overlay" v-if="discard_unwrapped">
|
|
||||||
<CardPreview :tilted="false" v-if="discard_unwrapped" :card_id="c.card_id"
|
|
||||||
v-for="c in p.discard_pile">
|
|
||||||
<template
|
|
||||||
v-if="goStore.self?.turn && c && p == goStore.self && goStore.current_game?.current_turn == goStore.self.team">
|
|
||||||
<button
|
|
||||||
v-if="clientStore.activatedClientside.find((e: Effect) => (e.effect == CardEffects.SACRIFICE) && e.usable)"
|
|
||||||
@click.stop="sacrifice(c)">
|
|
||||||
SACRIFICE
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
v-if="c.card_type == CardType.CHAMPION && clientStore.activatedClientside.find((e: Effect) => (e.effect == CardEffects.RESTACK_DISCARDED_CHAMPION) && e.usable)"
|
|
||||||
@click.stop="restack_discarded_champion(c)">
|
|
||||||
RESTACK_DISCARDED_CHAMPION
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
v-if="clientStore.activatedClientside.find((e: Effect) => (e.effect == CardEffects.RESTACK_DISCARDED_CARD) && e.usable)"
|
|
||||||
@click.stop="restack_discarded_card(c)">
|
|
||||||
RESTACK_DISCARDED_CARD
|
|
||||||
</button>
|
|
||||||
</template>
|
|
||||||
</CardPreview>
|
|
||||||
</div>
|
|
||||||
<div :id="`discard_unwrapped_bg`" :class="{ unwrapped: discard_unwrapped }"
|
|
||||||
@click.stop="() => { discard_unwrapped = false; console.log(discard_unwrapped); }"></div>
|
|
||||||
</template>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<MarketCards></MarketCards>
|
|
||||||
|
|
||||||
<div id="player_list_container">
|
|
||||||
<div id="player_list">
|
|
||||||
<PlayerListElement v-for="p in goStore.current_game?.players" :player="p" @click="focusPlayer(p)"
|
|
||||||
:focused="focusedPlayer">
|
|
||||||
</PlayerListElement>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="current_player">
|
|
||||||
|
|
||||||
<!-- <AnimatedBackground :color-start="goStore.self == p ? [.0, .3, .3] : undefined"
|
|
||||||
:color-end="goStore.self == p ? [.0, 1, 1] : undefined" /> -->
|
|
||||||
<PlayerSlot v-if="focusedPlayer" :player="focusedPlayer"></PlayerSlot>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<ResultDialog :isVisible="showResults" :won="isWinner" :players="goStore.current_game?.players"
|
|
||||||
@close="showResults = false">
|
|
||||||
</ResultDialog>
|
|
||||||
<GlobalOverlay></GlobalOverlay>
|
|
||||||
<SelfView></SelfView>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
#game_status {
|
|
||||||
position: fixed;
|
|
||||||
z-index: 10;
|
|
||||||
top: 50%;
|
|
||||||
left: 50%;
|
|
||||||
transform: translate(-50%, -50%);
|
|
||||||
background-color: rgba(255, 255, 255, .75);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#game_board {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: 1fr min-content 1fr;
|
|
||||||
grid-template-rows: min-content min-content 1fr;
|
|
||||||
grid-template-areas:
|
|
||||||
"stack_discard market empty"
|
|
||||||
"player_list player_list player_list"
|
|
||||||
"current_player current_player current_player";
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#player_list,
|
|
||||||
#current_player {
|
|
||||||
overflow: auto;
|
|
||||||
position: relative;
|
|
||||||
isolation: isolate;
|
|
||||||
/* background: url('/images/bg-darkgrass.png'); */
|
|
||||||
}
|
|
||||||
|
|
||||||
#current_player {
|
|
||||||
grid-area: current_player;
|
|
||||||
}
|
|
||||||
|
|
||||||
#stack_discard {
|
|
||||||
grid-area: stack_discard;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
justify-content: flex-end;
|
|
||||||
}
|
|
||||||
|
|
||||||
#stack,
|
|
||||||
#discard {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
}
|
|
||||||
|
|
||||||
#discard {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.discard_overlay {
|
|
||||||
z-index: 9;
|
|
||||||
display: flex;
|
|
||||||
/* background: blue; */
|
|
||||||
pointer-events: none;
|
|
||||||
gap: 2px;
|
|
||||||
flex-wrap: wrap-reverse;
|
|
||||||
align-content: flex-end;
|
|
||||||
cursor: default;
|
|
||||||
position: absolute;
|
|
||||||
padding-bottom: inherit;
|
|
||||||
padding-left: 40px;
|
|
||||||
height: calc(100% - 64px);
|
|
||||||
padding-top: 64px;
|
|
||||||
width: calc(100% -40px);
|
|
||||||
margin-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#discard_unwrapped_bg {
|
|
||||||
display: none;
|
|
||||||
position: absolute;
|
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
height: 100%;
|
|
||||||
width: 100%;
|
|
||||||
z-index: 8;
|
|
||||||
background: rgba(0, 0, 0, 0.5);
|
|
||||||
pointer-events: all;
|
|
||||||
padding: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
#discard_unwrapped_bg.unwrapped {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
#market {
|
|
||||||
grid-area: market;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
#player_list_container {
|
|
||||||
grid-area: player_list;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
justify-content: center;
|
|
||||||
|
|
||||||
/* background-image: url("/images/bg-darkgrass.png"); */
|
|
||||||
}
|
|
||||||
|
|
||||||
#player_list {
|
|
||||||
/* border: 5px solid #000; */
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
#player_list .card {
|
|
||||||
--max-height: 90px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
+22
-1
@@ -1,11 +1,23 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|
||||||
import goStore, { setReady } from "@/netcode";
|
import goStore, { setReady } from "@/netcode";
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="root_page_div">
|
<div class="root_page_div">
|
||||||
tehe
|
<div id="game_status">
|
||||||
|
|
||||||
|
<template v-if="goStore.self && !goStore.current_game?.started">
|
||||||
|
<input @click.prevent="setReady(($event.target as HTMLInputElement).checked)" type="checkbox" id="ready"
|
||||||
|
:checked="goStore.self?.ready" />
|
||||||
|
<label for="ready">Ready</label>
|
||||||
|
</template>
|
||||||
|
</div>
|
||||||
|
<LoginView v-if="goStore.context === 'login'"></LoginView>
|
||||||
|
<GameBoard v-if="goStore.context != 'lobby' && goStore.context != 'login'"></GameBoard>
|
||||||
|
<LobbyView v-if="goStore.context == 'lobby'"></LobbyView>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -13,4 +25,13 @@ import goStore, { setReady } from "@/netcode";
|
|||||||
.root_page_div {
|
.root_page_div {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#game_status {
|
||||||
|
position: fixed;
|
||||||
|
z-index: 10;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
background-color: rgba(255, 255, 255, .75);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
+2
-318
@@ -1,319 +1,3 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
|
|
||||||
import type { Card } from '~/netcode/Card';
|
|
||||||
|
|
||||||
const router = useRouter();
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="background">
|
<RulesDisplay></RulesDisplay>
|
||||||
<div class="overlay-2">
|
</template>
|
||||||
<div class="erika-zone-2">
|
|
||||||
<img @click="router.push({ path: '/' })" class="overlay-image"
|
|
||||||
src="https://static.wikia.nocookie.net/umineko/images/9/9d/PC_Erika.Casual.Sprite_36.png"
|
|
||||||
alt="pétasse" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="text-content">
|
|
||||||
<h1>Règles de Héron Realms</h1>
|
|
||||||
<section>
|
|
||||||
<p>Héron Realms, c'est un jeu de <span style="text-decoration:line-through;">héron building</span>
|
|
||||||
deck-building.</p>
|
|
||||||
<p>Tout le monde part d'un même deck de base.</p>
|
|
||||||
<p>Le but du jeu est de l'enrichir pour obtenir de quoi gagner.</p>
|
|
||||||
<p>Et comme la violence est une solution universelle, ça se traduit en battre ses adversaires.</p>
|
|
||||||
<p>​</p>
|
|
||||||
<p>Et quoi de mieux pour faire ça que des cartes colorées?</p>
|
|
||||||
<div class="card-row">
|
|
||||||
<CardPreview :card_id="6" :tilted="false"></CardPreview>
|
|
||||||
<CardPreview :card_id="19" :tilted="false"></CardPreview>
|
|
||||||
<CardPreview :card_id="36" :tilted="false"></CardPreview>
|
|
||||||
<CardPreview :card_id="46" :tilted="false"></CardPreview>
|
|
||||||
</div>
|
|
||||||
<p>​</p>
|
|
||||||
<hr>
|
|
||||||
<p>​</p>
|
|
||||||
<h2>Objectif</h2>
|
|
||||||
<p>L'unique objectif du jeu est d'être le dernier en lice. Pour y arriver, il faut descendre les Points
|
|
||||||
de Vie de vos adversaires à 0 en partant de 50.</p>
|
|
||||||
<p>
|
|
||||||
Le moyen principal d'y arriver, c'est de faire des <span style="color: red">Dégats</span> <img
|
|
||||||
src="/images/damage.png" class="icon_img" draggable="false" />. Tout le reste des mécaniques du
|
|
||||||
jeu sont là pour vous faciliter la tâche,
|
|
||||||
ou pour mettre des bâtons dans les roues de vos adversaires.
|
|
||||||
</p>
|
|
||||||
<p>​</p>
|
|
||||||
<hr>
|
|
||||||
<h2>Deckbuilding</h2>
|
|
||||||
<p>Comme c'est un jeu de "deckbuilding", on va expliquer ce qu'est le "deck" et ce qui nous permet de le
|
|
||||||
"build".</p>
|
|
||||||
<div class="card-row">
|
|
||||||
<CardPreview :card_id="undefined" :tilted="false"></CardPreview>
|
|
||||||
</div>
|
|
||||||
<p>​</p>
|
|
||||||
<p>
|
|
||||||
Le deck d'un joueur est-ce qui constitue sa pioche, qui lui permettra ensuite de constituer sa main
|
|
||||||
(la main est préparée à la fin du tour et permet de jouer le tour d'après).
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Quand la pioche est vide, elle est recyclée à partir de sa défausse.
|
|
||||||
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
La défausse est ce qui contient les cartes déjà jouées. Mais aussi celles qui sont achetées! Elle
|
|
||||||
finit par être mélangée pour former la nouvelle pioche.
|
|
||||||
</p>
|
|
||||||
<p>​</p>
|
|
||||||
<hr>
|
|
||||||
<h2>Deck de base</h2>
|
|
||||||
<p>
|
|
||||||
Tout le monde commence avec 10 cartes divisées en 4 types:
|
|
||||||
</p>
|
|
||||||
<ul>
|
|
||||||
<li>7x Or (1)</li>
|
|
||||||
<li>1x Or (2)</li>
|
|
||||||
<li>1x Dégats (1)</li>
|
|
||||||
<li>1x Dégats (2)</li>
|
|
||||||
</ul>
|
|
||||||
<div class="card-row">
|
|
||||||
<CardPreview :card_id="56" :tilted="false"></CardPreview>
|
|
||||||
<CardPreview :card_id="59" :tilted="false"></CardPreview>
|
|
||||||
<CardPreview :card_id="58" :tilted="false"></CardPreview>
|
|
||||||
<CardPreview :card_id="57" :tilted="false"></CardPreview>
|
|
||||||
</div>
|
|
||||||
<p>
|
|
||||||
La pioche est formée au hasard: on peut donc avoir une main de départ avec 5 or et 2 dégats, ou 3 or
|
|
||||||
et 4 dégats, ou 4 or et 3 dégats, etc.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
A partir de sa main, on peut jouer des cartes. Ces cartes peuvent déclencher des effets: on peut
|
|
||||||
considérer qu'ils vont dans un "pool commun", et qu'on peut les utiliser dans
|
|
||||||
l'ordre qu'on souhaite. 1 de dégats et 2 de dégats me donnent 3 ressources de dégats que je split
|
|
||||||
comme je veux ensuite. Pareil pour l'or et pour le soin, qui sont les 3 ressources
|
|
||||||
principales du jeu.
|
|
||||||
</p>
|
|
||||||
<p>​</p>
|
|
||||||
<hr>
|
|
||||||
<h2>Types de cartes</h2>
|
|
||||||
<p>
|
|
||||||
Les cartes sont divisées en 3 catégories: objets, actions et champions.
|
|
||||||
</p>
|
|
||||||
<div class="card-row">
|
|
||||||
<CardPreview :card_id="56" :tilted="false"></CardPreview>
|
|
||||||
<CardPreview :card_id="52" :tilted="false"></CardPreview>
|
|
||||||
<CardPreview :card_id="43" :tilted="false"></CardPreview>
|
|
||||||
</div>
|
|
||||||
<p>​</p>
|
|
||||||
<h3>Objets & actions</h3>
|
|
||||||
<div class="card-row">
|
|
||||||
<CardPreview :card_id="56" :tilted="false"></CardPreview>
|
|
||||||
<CardPreview :card_id="52" :tilted="false"></CardPreview>
|
|
||||||
</div>
|
|
||||||
<p>
|
|
||||||
Par simplicité, disons que les objets et les actions sont pareil: on les joue, ils font un effet
|
|
||||||
disponible durant le tour actuel, et ils sont défaussés.
|
|
||||||
</p>
|
|
||||||
<h3>Champions (& gardes)</h3>
|
|
||||||
<div class="card-row">
|
|
||||||
<CardPreview :card_id="43" :tilted="false"></CardPreview>
|
|
||||||
</div>
|
|
||||||
<p>
|
|
||||||
Les champions sont un peu plus complexes: ils restent sur le terrain, et on peut les utiliser à
|
|
||||||
chaque tour (en les mobilisant).
|
|
||||||
</p>
|
|
||||||
<p>Ils ont une défense <img src="/images/champion-shield.png" style="height: 30px" draggable="false" />
|
|
||||||
indiquée en bas à droite et ils ne sont assommés (défaussés) que si on leur fait des dégats =
|
|
||||||
défense.</p>
|
|
||||||
<p>Ces dégats doivent être faits d'un coup. Je ne peux pas faire un peu de dégats pendant un tour, et un
|
|
||||||
peu le tour d'après pour les tuer.</p>
|
|
||||||
<div class="card-row">
|
|
||||||
<CardPreview :card_id="49" :tilted="false"></CardPreview>
|
|
||||||
</div>
|
|
||||||
<p>
|
|
||||||
Par ailleurs, certains champions sont des Gardes <img src="/images/champion-shield-guard.png"
|
|
||||||
style="height: 30px" draggable="false" /> (ils ont un bouclier noir), ce qui veut dire qu'on est
|
|
||||||
obligés de les tuer pour faire des dégats à des champions non-gardes ou au joueur.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
(J'en profite pour préciser qu'on peut en effet, sans garde, choisir d'attaquer le joueur
|
|
||||||
directement ou ses champions.)
|
|
||||||
Incidentellement, ça veut dire qu'avec seulement 2 de dégats, je ne peux rien faire à un joueur avec
|
|
||||||
un garde à 3 de défense.
|
|
||||||
</p>
|
|
||||||
<p>​</p>
|
|
||||||
<hr>
|
|
||||||
<h2>Building</h2>
|
|
||||||
<p>
|
|
||||||
Passons au "building": on peut acheter des cartes pour les ajouter à notre défausse qui, si vous
|
|
||||||
avez suivi, constituera la prochaine pioche.
|
|
||||||
Avec le jeu de base, <span style="color: darkgoldenrod">l'or</span> <img src="/images/gold.png"
|
|
||||||
class="icon_img" draggable="false" /> sert exclusivement à accomplir ce but: acheter des cartes.
|
|
||||||
</p>
|
|
||||||
<div class="card-row">
|
|
||||||
<CardPreview :card_id="6" :tilted="false"></CardPreview>
|
|
||||||
<CardPreview :card_id="19" :tilted="false"></CardPreview>
|
|
||||||
<CardPreview :card_id="36" :tilted="false"></CardPreview>
|
|
||||||
<CardPreview :card_id="46" :tilted="false"></CardPreview>
|
|
||||||
</div>
|
|
||||||
<p>
|
|
||||||
Un marché est mis à disposition de tous les joueurs, mettant à disposition 5 cartes (pas ici parce
|
|
||||||
que j'ai pas la place).
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Ces cartes ont chacune un coût indiqué en haut à droite.
|
|
||||||
Il faut au moins autant d'or que ce qui est indiqué pour acheter une carte. Une carte achetée laisse
|
|
||||||
la place à une nouvelle carte directement, qu'on peut
|
|
||||||
décider d'acheter juste après (tant qu'on a l'argent).
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Il ne nous reste plus qu'à comprendre ce que font les cartes du marché, puisqu'elles sont plus
|
|
||||||
complexes (et bien plus fortes) que votre deck de base.
|
|
||||||
Prenons des exemples!
|
|
||||||
</p>
|
|
||||||
<hr>
|
|
||||||
<h2>Couleurs</h2>
|
|
||||||
<p>
|
|
||||||
La première chose qui ne vous échappera pas, c'est qu'on a 4 couleurs différentes pour les cartes.
|
|
||||||
</p>
|
|
||||||
<p>​</p>
|
|
||||||
<div class="card-row">
|
|
||||||
<CardPreview :card_id="13" :tilted="false"></CardPreview>
|
|
||||||
<CardPreview :card_id="3" :tilted="false"></CardPreview>
|
|
||||||
<CardPreview :card_id="1" :tilted="false"></CardPreview>
|
|
||||||
</div>
|
|
||||||
<p>​</p>
|
|
||||||
<p>Les cartes <span style="color: darkgoldenrod">jaunes</span> sont les cartes Empire.</p>
|
|
||||||
<p>Elles font beaucoup de soin, et activent souvent des effets de pioche.</p>
|
|
||||||
<p>​</p>
|
|
||||||
<div class="card-row">
|
|
||||||
<CardPreview :card_id="39" :tilted="false"></CardPreview>
|
|
||||||
<CardPreview :card_id="34" :tilted="false"></CardPreview>
|
|
||||||
<CardPreview :card_id="40" :tilted="false"></CardPreview>
|
|
||||||
</div>
|
|
||||||
<p>​</p>
|
|
||||||
<p>Les cartes <span style="color: red">rouges</span> sont les cartes Necros.</p>
|
|
||||||
<p>Elles sont les seules à pouvoir sacrifier des cartes pour les sortir de son deck de façon permanente.
|
|
||||||
</p>
|
|
||||||
<p>​</p>
|
|
||||||
<div class="card-row">
|
|
||||||
<CardPreview :card_id="52" :tilted="false"></CardPreview>
|
|
||||||
<CardPreview :card_id="46" :tilted="false"></CardPreview>
|
|
||||||
<CardPreview :card_id="47" :tilted="false"></CardPreview>
|
|
||||||
</div>
|
|
||||||
<p>​</p>
|
|
||||||
<p>Les cartes <span style="color: darkgreen">vertes</span> sont les cartes Sauvages.</p>
|
|
||||||
<p>Elles font beaucoup de dégats, et forcent vos adversaires à jouer moins de cartes.</p>
|
|
||||||
<p>​</p>
|
|
||||||
<div class="card-row">
|
|
||||||
<CardPreview :card_id="24" :tilted="false"></CardPreview>
|
|
||||||
<CardPreview :card_id="25" :tilted="false"></CardPreview>
|
|
||||||
<CardPreview :card_id="19" :tilted="false"></CardPreview>
|
|
||||||
</div>
|
|
||||||
<p>​</p>
|
|
||||||
<p>Les cartes <span style="color: darkblue">bleues</span> sont les cartes Guilde.</p>
|
|
||||||
<p>Elles donnent beaucoup d'or, assomment les champions adverses et manipulent votre pioche.</p>
|
|
||||||
<p>​</p>
|
|
||||||
<hr>
|
|
||||||
<h2>Déclencheurs</h2>
|
|
||||||
<p>Les effets de cartes peuvent se déclencher pour 3 raisons différentes.</p>
|
|
||||||
<div class="card-row">
|
|
||||||
<CardPreview :card_id="14" :tilted="false"></CardPreview>
|
|
||||||
</div>
|
|
||||||
<p>Sur cette carte, on peut voir les trois en même temps.</p>
|
|
||||||
<p>La 1ère ligne s'active tout le temps.</p>
|
|
||||||
<p>La 2ème ligne est une capacité Allié: il faut une autre carte de la même couleur en jeu pour pouvoir
|
|
||||||
en profiter.</p>
|
|
||||||
<p>La 3ème ligne est un Effet Poubelle (différent du sacrifice des cartes rouges): vous pouvez retirer
|
|
||||||
cette carte de votre jeu pour bénéficier, en plus des autres effets, de l'effet marqué. Mais la
|
|
||||||
carte sera défaussée à tout jamais.</p>
|
|
||||||
<p>​</p>
|
|
||||||
<hr>
|
|
||||||
<h2>Effets</h2>
|
|
||||||
<p>Une variété d'effets peuvent être inclus dans les cartes.</p>
|
|
||||||
<p>Il y en a plein et les expliquer ici serait relou, alors je vous laisse poser la question en vocal si
|
|
||||||
vous n'en comprenez pas un.</p>
|
|
||||||
<p>​</p>
|
|
||||||
<hr>
|
|
||||||
<h2>Activer les cartes dans la version en ligne</h2>
|
|
||||||
<p>Il suffit de cliquer sur la carte que vous voulez activer dans votre main pour la "LOCK".</p>
|
|
||||||
<p>Une carte "LOCKED" est considérée en jeu, & peut activer des effets Allié pour d'autres cartes, etc.
|
|
||||||
</p>
|
|
||||||
<p>Si vous avez des choix à faire sur la carte, un menu apparaîtra pour vous laisser choisir.</p>
|
|
||||||
<p>Pour faire des dommages, il y aura un bouton "Damage" sur vos ennemis. Pareil sur leurs champions.
|
|
||||||
</p>
|
|
||||||
<p>Quand vous avez un effet "Sacrifice", vous pouvez fouiller votre défausse pour choisir la carte à
|
|
||||||
sacrifier. Vous pouvez également sacrifier une carte de la main qui n'est pas encore locked!</p>
|
|
||||||
<h2>Zoomer sur les cartes</h2>
|
|
||||||
<p>Pour zoomer sur une carte, maintenez votre clic droit.</p>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.background {
|
|
||||||
background-color: #f0f0f0;
|
|
||||||
background-image: url('/images/bg-darkgrass.png');
|
|
||||||
background-size: auto;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
width: 100vw;
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
.text-content {
|
|
||||||
background-color: rgba(255, 255, 255, .75);
|
|
||||||
padding: 1em;
|
|
||||||
border-radius: 1em;
|
|
||||||
max-width: 800px;
|
|
||||||
margin-top: 2em;
|
|
||||||
text-align: left;
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
text-align: center;
|
|
||||||
font-size: 2em;
|
|
||||||
margin-bottom: 1.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
margin: 1em 0;
|
|
||||||
font-size: 1.2em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.card-row {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
gap: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.overlay-2 {
|
|
||||||
height: 00px;
|
|
||||||
width: 100%;
|
|
||||||
position: sticky;
|
|
||||||
z-index: 2;
|
|
||||||
top: 0;
|
|
||||||
pointer-events: none;
|
|
||||||
|
|
||||||
.erika-zone-2 {
|
|
||||||
position: absolute;
|
|
||||||
top: 300px;
|
|
||||||
display: flex;
|
|
||||||
justify-content: right;
|
|
||||||
z-index: 2;
|
|
||||||
height: 300px;
|
|
||||||
width: 100%;
|
|
||||||
object-fit: cover;
|
|
||||||
|
|
||||||
.overlay-image {
|
|
||||||
position: sticky;
|
|
||||||
height: 100%;
|
|
||||||
cursor: pointer;
|
|
||||||
pointer-events: all;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
||||||
|
|
||||||
<svg
|
|
||||||
width="88.73304mm"
|
|
||||||
height="134.13795mm"
|
|
||||||
viewBox="0 0 88.73304 134.13795"
|
|
||||||
version="1.1"
|
|
||||||
id="svg1"
|
|
||||||
xml:space="preserve"
|
|
||||||
sodipodi:docname="fuck.svg"
|
|
||||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
||||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
||||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
xmlns:svg="http://www.w3.org/2000/svg"><sodipodi:namedview
|
|
||||||
id="namedview1"
|
|
||||||
pagecolor="#505050"
|
|
||||||
bordercolor="#ffffff"
|
|
||||||
borderopacity="1"
|
|
||||||
inkscape:showpageshadow="0"
|
|
||||||
inkscape:pageopacity="0"
|
|
||||||
inkscape:pagecheckerboard="1"
|
|
||||||
inkscape:deskcolor="#505050"
|
|
||||||
inkscape:document-units="mm"
|
|
||||||
inkscape:zoom="0.71891835"
|
|
||||||
inkscape:cx="134.22943"
|
|
||||||
inkscape:cy="468.06428"
|
|
||||||
inkscape:window-width="2560"
|
|
||||||
inkscape:window-height="1371"
|
|
||||||
inkscape:window-x="1680"
|
|
||||||
inkscape:window-y="32"
|
|
||||||
inkscape:window-maximized="1"
|
|
||||||
inkscape:current-layer="layer1" /><defs
|
|
||||||
id="defs1" /><g
|
|
||||||
inkscape:label="Layer 1"
|
|
||||||
inkscape:groupmode="layer"
|
|
||||||
id="layer1"
|
|
||||||
transform="translate(-59.418203,-70.094122)"><path
|
|
||||||
style="opacity:1;fill:#e5d600;fill-opacity:1;stroke:none;stroke-width:3.49999;stroke-opacity:1;paint-order:stroke fill markers"
|
|
||||||
d="m 96.352499,125.0496 v -5.30232 c -2.421262,-8.41348 -13.713084,-12.75856 -18.744229,-0.044 v 5.33484 4.73839 0 l -6.716543,0.0313 c -3.042502,0.51774 -4.401994,2.29774 -5.382434,4.36203 l -5.635456,19.68959 c -0.536458,2.04722 -0.674646,4.17979 0,6.48653 11.431564,61.83841 86.704933,55.09416 88.200633,0 0,0 0.17274,-17.73214 0,-18.58223 -1.91851,-9.4414 -12.83795,-12.2172 -15.51392,-4.15694 0.48306,-9.71109 -7.76736,-14.78186 -17.64884,-10.18956 0,0 0.0508,-48.350297 0,-49.216216 -0.60205,-10.268778 -18.30446,-11.336423 -18.559211,0 V 125.0496"
|
|
||||||
id="path1"
|
|
||||||
sodipodi:nodetypes="cccccccccccsccscc" /><path
|
|
||||||
style="opacity:1;fill:none;fill-opacity:1;stroke:#eea200;stroke-width:3.9172;stroke-opacity:1;paint-order:stroke fill markers"
|
|
||||||
d="m 75.857311,129.7732 v 39.46359"
|
|
||||||
id="path2" /></g></svg>
|
|
||||||
|
Before Width: | Height: | Size: 2.2 KiB |
Reference in New Issue
Block a user