add even more grass

This commit is contained in:
Sterling Archer
2026-05-27 10:46:33 -07:00
parent d7b106b49d
commit 58ff9cd2f7
3 changed files with 20 additions and 8 deletions
+2 -2
View File
@@ -1391,7 +1391,7 @@ class Game {
container.appendChild(span); container.appendChild(span);
} }
const grassEmojis = ['🌾']; const grassEmojis = ['🌾'];
for (let i = 0; i < 600; i++) { for (let i = 0; i < 2400; i++) {
let x, y, tries = 0, tooClose; let x, y, tries = 0, tooClose;
do { do {
x = cx + (Math.random() - 0.5) * spread * 1.8; x = cx + (Math.random() - 0.5) * spread * 1.8;
@@ -1402,7 +1402,7 @@ class Game {
if (tooClose) continue; if (tooClose) continue;
const span = document.createElement('span'); const span = document.createElement('span');
span.className = 'tall-grass'; span.className = 'tall-grass';
const size = 8 + Math.random() * 6; const size = 5 + Math.random() * 4;
span.textContent = grassEmojis[Math.floor(Math.random() * grassEmojis.length)]; span.textContent = grassEmojis[Math.floor(Math.random() * grassEmojis.length)];
span.style.fontSize = size + 'px'; span.style.fontSize = size + 'px';
span.style.left = x + 'px'; span.style.left = x + 'px';
+10 -6
View File
@@ -178,20 +178,24 @@
<div id="screen-battle" class="screen"> <div id="screen-battle" class="screen">
<div class="battle-scene"> <div class="battle-scene">
<div class="battle-npc-side"> <div class="battle-npc-side">
<div class="battle-npc-pokemon-name" id="battle-npc-pokemon-name"></div>
<div class="battle-npc-pokemon-level" id="battle-npc-pokemon-level"></div>
<div class="battle-npc-row"> <div class="battle-npc-row">
<div class="battle-sprite" id="battle-npc-pokemon">🐉</div> <div class="battle-pokemon-float">
<div class="battle-npc-pokemon-name" id="battle-npc-pokemon-name"></div>
<div class="battle-npc-pokemon-level" id="battle-npc-pokemon-level"></div>
<div class="battle-sprite" id="battle-npc-pokemon">🐉</div>
</div>
<div class="battle-npc-trainer" id="battle-npc-trainer"></div> <div class="battle-npc-trainer" id="battle-npc-trainer"></div>
</div> </div>
<div class="battle-name-tag" id="battle-npc-name">OAK</div> <div class="battle-name-tag" id="battle-npc-name">OAK</div>
</div> </div>
<div class="battle-player-side"> <div class="battle-player-side">
<div class="battle-player-pokemon-name" id="battle-player-pokemon-name"></div>
<div class="battle-player-pokemon-level" id="battle-player-pokemon-level"></div>
<div class="battle-player-row"> <div class="battle-player-row">
<div class="battle-player-trainer" id="battle-player-trainer"></div> <div class="battle-player-trainer" id="battle-player-trainer"></div>
<div class="battle-sprite" id="battle-player-pokemon">🔥</div> <div class="battle-pokemon-float">
<div class="battle-player-pokemon-name" id="battle-player-pokemon-name"></div>
<div class="battle-player-pokemon-level" id="battle-player-pokemon-level"></div>
<div class="battle-sprite" id="battle-player-pokemon">🔥</div>
</div>
</div> </div>
<div class="battle-name-tag" id="battle-player-name">ASH</div> <div class="battle-name-tag" id="battle-player-name">ASH</div>
</div> </div>
+8
View File
@@ -1229,3 +1229,11 @@ html, body {
line-height: 1; line-height: 1;
z-index: 15; z-index: 15;
} }
/* ─── BATTLE POKEMON FLOAT (name+level above sprite) ───── */
.battle-pokemon-float {
display:flex;
flex-direction:column;
align-items:center;
gap:1px;
}