From 6d5965a3bf9b630cc62b2a95eb9e42d601443476 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Fri, 24 Apr 2026 04:54:00 +0000 Subject: [PATCH] Optimize performance, add textures, mobile controls & production polish Performance: - Replace O(n log n) per-frame getTerrainHeight() with analytical O(1) formula (was iterating 6561 grid points per entity per frame) - Use InstancedMesh for grass (500), stones (100), tree trunks (45) and tree foliage (~1125 spheres), cutting ~1700 draw calls to ~5 - Device-aware quality: mobile/low-power auto-caps pixel ratio, shadow size, grass/stone/cloud/tree counts, and floor tessellation - FPS counter with auto-drop to low quality when FPS < 28 for sustained period - Pause render loop when tab hidden Textures: - Added procedural canvas textures as defaults: grass, bark, leaves, stone wall, rock, character armor, chungi weave - Portal-uploaded textures continue to override these defaults Mobile controls: - Robust UA + touch + width detection - Larger circular action buttons, bigger pause button on mobile - Mobile hint banner shown briefly on start - Haptic feedback on jump/dash/throw/hit/bot elimination/victory Production polish: - 3-hit health system with invulnerability frames, damage flash, knockback - Persistent score with best-score localStorage - Minimap (canvas) with bots, chungi, player facing - Persistent graphics settings in localStorage, UI reflects saved state - Loading overlay during init - Bot meshes disposed properly on elimination (no leaks) - Music gracefully retries if autoplay blocked Co-Authored-By: Gamer33xz --- index.html | 5108 ++++++++++++++++++++++++++++------------------------ 1 file changed, 2798 insertions(+), 2310 deletions(-) diff --git a/index.html b/index.html index 211b9d4..8e2ee41 100644 --- a/index.html +++ b/index.html @@ -1,2311 +1,2799 @@ - - - - - - Chungi Bomb Blast 3D - Ultimate TPP Action - - - - - - -
- - - - -
-
-
- - - - - -

BOT ELIMINATED!

- -
-
-
- - - - - -
-
-

⚙ SETTINGS

- -
- - -
- -
- - -
- -
- - -
- - -
-
- -
-

⏸ PAUSED

- -
- - - - - -
- WASD Move | Left Click Throw | Right Click Charge | Space Jump | Shift Dash | ESC Pause -
- - - + + + + + + Chungi Bomb Blast 3D - Ultimate TPP Action + + + + + + +
+ + + + +
+
+
+ + + +
+ HEALTH +
+
+
SCORE 0 · BEST 0
+
FPS 60
+ +
Left drag: move · Right drag: look · Buttons: actions
+ + + +
+
CHUNGI HUNTER 3D
+
+
+ +

BOT ELIMINATED!

+ +
+
+
+ + + + + +
+
+

⚙ SETTINGS

+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+
+ +
+

⏸ PAUSED

+ +
+ + + + + +
+ WASD Move | Left Click Throw | Right Click Charge | Space Jump | Shift Dash | ESC Pause +
+ + + \ No newline at end of file