Skip to content

Polish UI to production quality and load textures from the web#2

Merged
alimohomad merged 1 commit into
mainfrom
devin/1777006895-ui-textures-v2
Apr 24, 2026
Merged

Polish UI to production quality and load textures from the web#2
alimohomad merged 1 commit into
mainfrom
devin/1777006895-ui-textures-v2

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

Second pass on the game — the user asked to make the UI production-ready and to swap the procedural textures for real web textures while keeping everything else (perf, mobile, health/score, persistence) intact.

UI overhaul

  • New design system driven by CSS variables (--accent, --cool, --danger, --glass-bg, etc.), Orbitron + Rajdhani typography
  • Menu / settings / pause / game-over overlays rebuilt as glass cards sitting on an animated aurora + starfield background
  • HUD polished: glass health bar with heart glyph and gradient fill, score/best tile with monochrome accents, glass FPS pill, framed minimap, live status dot on the bot counter, redesigned pause button
  • Action buttons: color-per-action radial highlight (blue/purple/green/orange), bigger touch targets, cooldown style, shine sweep on primary buttons
  • Game-over now shows SCORE + BEST stats plus a VICTORY / DEFEATED headline
  • Loading overlay has an animated gradient brand title and two-ring spinner

Web textures

  • grasslight-big.jpg, hardwood2_diffuse.jpg, brick_diffuse.jpg, hardwood2_roughness.jpg, patterns/circuit_pattern.png loaded from cdn.jsdelivr.net/gh/mrdoob/three.js@r128/examples/textures/ (CORS-safe, known-good)
  • Applied to floor grass, tree trunks, arena walls, player/bot armor, and chungi
  • upgradeMaterial() helper swaps the map in once the CDN load resolves and leaves the procedural canvas texture in place if the load fails, so network issues never produce a blank material
  • Portal-uploaded textures still override both web and procedural defaults

Screenshots:

menu
in-game

Review & Testing Checklist for Human

  • Load the game and confirm the menu, settings, pause, and game-over overlays render correctly on desktop and mobile widths
  • Start a match, verify HUD (health, score, FPS, minimap, bots-left) sits correctly at all viewport sizes
  • With devtools Network tab open, confirm the 5 CDN textures load (200) and materials update; block the CDN and confirm the procedural canvas textures render as fallback
  • Test on a real mobile device: joystick + action buttons remain reachable and readable

Notes

Link to Devin session: https://app.devin.ai/sessions/5b14cc25db654389a1752fce6fbdfb83
Requested by: @alimohomad

- New design system (variables for accents / glass / text, Orbitron + Rajdhani typography)
- Menu / settings / pause / game-over overlays redesigned as glass cards on an animated aurora + starfield background
- HUD polished: health bar with heart icon + gradient fill, score/best tile, glass FPS pill, framed minimap, live dot on bot counter
- Mobile action buttons restyled with color-per-action glow + radial highlight
- Game-over shows score + best stats, VICTORY/DEFEATED headline
- Loading overlay with animated brand title
- Web texture loading: floor grass, tree bark, stone walls, armor, chungi load from jsDelivr CDN (three.js r128 examples). Procedural canvas textures remain as automatic fallback if any CDN URL fails.

Co-Authored-By: Gamer33xz <razzacharya6@gmail.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant