Skip to content

feat(isometric): mobile UI with action buttons and lighting fixes#7895

Merged
h0lybyte merged 5 commits intodevfrom
trunk/isometric-edge-detection-1773188074
Mar 11, 2026
Merged

feat(isometric): mobile UI with action buttons and lighting fixes#7895
h0lybyte merged 5 commits intodevfrom
trunk/isometric-edge-detection-1773188074

Conversation

@h0lybyte
Copy link
Member

@h0lybyte h0lybyte commented Mar 11, 2026

Summary

  • Mobile action buttons: ACT and JMP buttons (bottom-right) for touch-based combat and jumping
  • Joystick input blocking: 3D scene raycasts are suppressed when pointer interacts with joystick/UI, preventing accidental tree/rock selection
  • UI layout for mobile: HUD moved to top-right, inventory converted to toggle button (bottom-right), joystick stays bottom-left
  • Valley lighting fix: Rebalanced sun-to-ambient ratio (8200→4000 lux sun, 260→600 ambient) to prevent dark valleys at lower elevations
  • Cleanup: Removed experimental alpha silhouette edge detection from shader and tree vertex colors
  • DX: Added PATH env and port-kill to nx dev target for reliable wasm-pack builds

Test plan

  • Verify joystick works on mobile/touch and desktop mouse
  • Verify ACT/JMP buttons appear bottom-right and JMP triggers player jump
  • Verify clicking joystick area does not select trees/rocks behind it
  • Verify HUD (HP/MP) displays top-right
  • Verify inventory opens/closes with toggle button
  • Verify valleys at lower elevation are not excessively dark
  • Run ./kbve.sh -nx isometric:dev and confirm it builds and serves without manual PATH setup

🤖 Generated with Claude Code

Tree canopy and grass terrain are both green, so the pixelate shader's
color-based edge detection couldn't find tree boundaries. Encode object
type in vertex alpha (canopy=0.75, trunk=0.85, terrain=1.0) and detect
alpha discontinuities in the shader to draw silhouette outlines.
@github-actions
Copy link
Contributor

github-actions bot commented Mar 11, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

…ut blocking, and lighting rebalance

- Add ACT/JMP action buttons (bottom-right) for mobile combat and jump
- Block 3D scene raycasts when pointer is on joystick/UI area
- Wire mobile jump button to player jump system
- Move HUD to top-right, convert inventory to toggle button
- Rebalance sun/ambient lighting ratio to fix dark valleys
- Remove experimental alpha silhouette edge detection from shader and trees
- Add PATH env and port-kill to nx dev target for reliable builds
@h0lybyte h0lybyte changed the title feat(isometric): alpha-based silhouette edge detection for trees feat(isometric): mobile UI with action buttons and lighting fixes Mar 11, 2026
@h0lybyte h0lybyte merged commit 6252fa1 into dev Mar 11, 2026
4 checks passed
@h0lybyte h0lybyte deleted the trunk/isometric-edge-detection-1773188074 branch March 11, 2026 10:44
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