feat(frontend): add new game

This commit is contained in:
syuilo 2024-01-06 20:15:28 +09:00
parent 072f67d6e7
commit 746367004e
18 changed files with 827 additions and 4 deletions

View file

@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template>
<div :class="$style.root" :style="{ zIndex, top: `${y - 64}px`, left: `${x - 64}px` }">
<span class="text" :class="{ up }">+1</span>
<span class="text" :class="{ up }">+{{ value }}</span>
</div>
</template>
@ -16,7 +16,9 @@ import * as os from '@/os.js';
const props = withDefaults(defineProps<{
x: number;
y: number;
value?: number;
}>(), {
value: 1,
});
const emit = defineEmits<{