traduccion del juego al español 100%
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
</button>
|
||||
</div>
|
||||
<h1 class="title">🎮 Snatch Game</h1>
|
||||
<div class="subtitle">Competitive Clicker Battle</div>
|
||||
<div class="subtitle">Batalla Competitiva de Clics</div>
|
||||
|
||||
<div class="player-section">
|
||||
<div class="name-input-group">
|
||||
@@ -15,14 +15,14 @@
|
||||
v-model="inputName"
|
||||
@keyup.enter="updateName"
|
||||
type="text"
|
||||
placeholder="Enter your name"
|
||||
placeholder="Ingresa tu nombre"
|
||||
class="name-input"
|
||||
maxlength="20"
|
||||
/>
|
||||
<button @click="updateName" class="btn btn-secondary">Set Name</button>
|
||||
<button @click="updateName" class="btn btn-secondary">Confirmar Nombre</button>
|
||||
</div>
|
||||
<div class="current-name">
|
||||
Playing as: <span class="player-name">{{ playerName || 'guest' }}</span>
|
||||
Jugando como: <span class="player-name">{{ playerName || 'invitado' }}</span>
|
||||
</div>
|
||||
<div class="color-picker">
|
||||
<label class="color-label">Color:</label>
|
||||
@@ -35,18 +35,18 @@
|
||||
|
||||
<div class="main-actions">
|
||||
<button @click="handleQuickPlay" class="btn btn-primary btn-large" :disabled="isJoining || !nameConfirmed">
|
||||
<span v-if="!isJoining">🧪 Demo Play</span>
|
||||
<span v-else>Finding match...</span>
|
||||
<span v-if="!isJoining">🧪 Juego Demo</span>
|
||||
<span v-else>Buscando partida...</span>
|
||||
</button>
|
||||
<div v-if="!nameConfirmed" class="hint">Antes de jugar, presiona "Set Name" para confirmar tu nombre.</div>
|
||||
<div v-if="!nameConfirmed" class="hint">Antes de jugar, presiona "Confirmar Nombre" para confirmar tu nombre.</div>
|
||||
<div v-else class="hint ok">Nombre confirmado ✔</div>
|
||||
</div>
|
||||
|
||||
<div class="qr-section">
|
||||
<h2>🎯 Your Game Access</h2>
|
||||
<h2>🎯 Tu Acceso al Juego</h2>
|
||||
<div class="qr-container">
|
||||
<div class="qr-header">
|
||||
<h3>{{ playerName || 'Guest' }}'s Game Link</h3>
|
||||
<h3>Enlace de Juego de {{ playerName || 'Invitado' }}</h3>
|
||||
<p class="uuid-display">UUID: {{ routeUuid.substring(0, 8) }}...</p>
|
||||
</div>
|
||||
<div class="qr-code-wrapper">
|
||||
@@ -55,8 +55,8 @@
|
||||
<div class="qr-footer">
|
||||
<p class="url-display">{{ gameUrl }}</p>
|
||||
<div class="qr-actions">
|
||||
<button @click="copyUrl" class="btn btn-copy">📋 Copy Link</button>
|
||||
<button @click="shareQR" class="btn btn-share">📤 Share QR</button>
|
||||
<button @click="copyUrl" class="btn btn-copy">📋 Copiar Enlace</button>
|
||||
<button @click="shareQR" class="btn btn-share">📤 Compartir QR</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -92,7 +92,7 @@ const nameConfirmed = computed(() => colyseusService.nameConfirmed.value);
|
||||
const playerColor = computed(() => colyseusService.playerColor.value);
|
||||
const previewPlayer = computed(() => ({
|
||||
sessionId: 'preview',
|
||||
name: playerName.value || 'guest',
|
||||
name: playerName.value || 'invitado',
|
||||
role: 'P1',
|
||||
pavoTokens: 10,
|
||||
eloteTokens: 0,
|
||||
@@ -347,8 +347,8 @@ async function copyUrl() {
|
||||
function shareQR() {
|
||||
if (navigator.share) {
|
||||
navigator.share({
|
||||
title: 'Join my Snatch Game',
|
||||
text: `Join ${playerName.value || 'me'} in Snatch Game!`,
|
||||
title: 'Únete a mi Snatch Game',
|
||||
text: `Únete a ${playerName.value || 'mí'} en Snatch Game!`,
|
||||
url: gameUrl.value
|
||||
}).catch(err => console.log('Error sharing:', err));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user