build-wayfinder-hud
Design and implement a responsive fantasy game HUD with a compass minimap, character portrait and vitals, equipped skill icons and a transparent game logo. Use for Three.js gameplay overlays and their expanded maps.
Try your first task
A source-grounded starter task has not been verified for this skill yet.
SKILL.md
name: build-wayfinder-huddescription: Design and implement a responsive fantasy game HUD with a compass minimap, character portrait and vitals, equipped skill icons and a transparent game logo. Use for Three.js gameplay overlays and their expanded maps.Build a Wayfinder HUD
Lay out the interface on two real gameplay frames, one with dark trees and one with bright sky. Mark the center aiming area and the area swept by the hands. Measure every cluster from the safe edge of the viewport. A still concept establishes the finishes. Playable state establishes what actually belongs on screen.
Build four pieces
| Piece | Default placement | Behavior |
|---|---|---|
| Compass and map | Upper right | Register the illustrated terrain to the level, draw the player's heading and active objective, and open the full map on activation. If time or weather controls are part of the game, put them on the rim or in the expanded map. |
| Portrait and vitals | Lower left | Crop the face to its medallion. Give health, mana and stamina separate tracks or nonoverlapping arcs. Put XP and provisions in their own row. Move secondary stats into the character sheet when space gets tight. |
| Skills | Lower right | Bind selection, key or touch hint, resource cost and cooldown to the equipped actions. Use distinct silhouettes for blade, guard, flame, frost and lightning. Keep one feedback location for an unavailable cast. |
| Game logo | Loading screen and a compact gameplay slot | Export a clean alpha wordmark and a simplified mark for small sizes. Size from the visible artwork bounds. Keep quest text and interactive controls outside its box. |
Use one family of metal edges, a shared highlight direction and restrained ornament. Request separate transparent PNGs for the portrait surround, skill frames, icons and logo when generating art. Inspect alpha on white, black and forest imagery at final size. Trim excess transparent padding consistently across an icon set. Keep labels, values, cooldowns and map markers live so the interface can respond to play.
Register the map once
Pick three widely spaced, non-collinear landmarks that appear on both the level and the illustrated map. Save world ground coordinates and their corresponding normalized image positions, with V increasing downward. The map registration example builds the forward and inverse transforms. Use the forward transform for every marker and the inverse for full-map waypoint placement. Verify with a fourth landmark away from the other three. A hand-painted map with local distortion may need a separate registration per district.
For a north-up map, transform the player's forward direction through the same basis before rotating the arrow. In heading-up mode rotate the map and markers about the player together, leaving the player arrow upright. Use the same crop, pan and zoom transform when converting pointer coordinates back to map UVs. Clamp visual edge indicators after projection. Preserve the original waypoint.
Fit the HUD to play
- Give each cluster a single layout owner. Reserve its full measured rectangle, including level tags, quantity badges and keycaps. On narrow screens collapse secondary text, then move optional controls into the expanded panel. Keep health, current action and objective direction legible.
- Anchor in CSS pixels or an orthographic HUD camera expressed in logical pixels. Size the drawing buffer at the chosen render ratio separately. At 200% Retina scale the HUD should occupy the same screen area with sharper art. Update the viewport, safe-area insets and pointer hit mapping together on resize.
- Render game art straight to the HUD pass after world postprocessing. Keep semantic buttons and keyboard focus for interactive compass, map and skill slots. Opening a fullscreen panel suspends look and combat input. Closing it restores control cleanly. Reflect real remapped inputs and show touch actions on touch devices.
- Drive all values from the same game snapshot. Derive arc fills and displayed numbers from the same current and maximum values. Surface a cooldown's remaining time from the simulation clock so pausing or reopening the map gives the correct value.
Review the moving frame
Walk through the village, turn at a mapped landmark, take damage, spend mana and finish a cooldown. Open the map, place a waypoint and return to the compass. Verify heading and marker placement in both views. Repeat with a long objective, full and nearly empty vitals, touch controls, and the smallest supported viewport. Check for intersecting control hitboxes as well as overlapping pixels. Inspect the final gameplay recording against bright sky, fire and dark foliage.