feat: add bark battle debug feedback

This commit is contained in:
2026-05-11 18:32:02 +08:00
parent 2b046656dc
commit 5cb5329f4e
4 changed files with 124 additions and 10 deletions

View File

@@ -46,9 +46,11 @@
}
.bark-battle-dog {
position: relative;
display: grid;
place-items: center;
gap: 8px;
animation: barkBattleDogPulse 420ms ease-out;
}
.bark-battle-dog__body {
@@ -61,11 +63,29 @@
}
.bark-battle-dog__label,
.bark-battle-dog__burst,
.bark-battle-vs {
font-weight: 900;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.bark-battle-dog__burst {
position: absolute;
top: -18px;
border-radius: 999px;
padding: 5px 10px;
color: #1f1147;
background: #facc15;
box-shadow: 0 0 22px rgba(250, 204, 21, 0.72);
animation: barkBattleBurst 640ms ease-out both;
}
.bark-battle-dog--opponent .bark-battle-dog__burst {
color: #fff7ed;
background: #7c3aed;
box-shadow: 0 0 22px rgba(124, 58, 237, 0.72);
}
.bark-battle-vs {
border-radius: 999px;
padding: 10px 18px;
@@ -176,6 +196,27 @@
margin-top: 10px;
}
.bark-battle-debug-metrics,
.bark-battle-debug-events {
margin: 10px 0 0;
padding: 10px;
border-radius: 16px;
background: rgba(255, 255, 255, 0.1);
font-size: 12px;
}
.bark-battle-debug-metrics {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 6px;
}
.bark-battle-debug-events {
display: grid;
gap: 4px;
padding-left: 28px;
}
.bark-battle-debug-panel__controls button {
flex: 1;
border: 0;
@@ -186,6 +227,18 @@
font-weight: 800;
}
@keyframes barkBattleDogPulse {
from { transform: scale(1); }
45% { transform: scale(1.08); }
to { transform: scale(1); }
}
@keyframes barkBattleBurst {
from { transform: translateY(18px) scale(0.72); opacity: 0; }
35% { opacity: 1; }
to { transform: translateY(-38px) scale(1.16); opacity: 0; }
}
@keyframes barkBattleParticlePop {
from { transform: translateY(28px) scale(0.7); opacity: 0; }
42% { opacity: 1; }