✨ feat(radar-map): add GTA-style circular radar map with rotating compass#88
Closed
leandroruel wants to merge 3 commits intosrizzon:mainfrom
Closed
✨ feat(radar-map): add GTA-style circular radar map with rotating compass#88leandroruel wants to merge 3 commits intosrizzon:mainfrom
leandroruel wants to merge 3 commits intosrizzon:mainfrom
Conversation
…pass - New RadarMap component (bottom-left): canvas raster layer for buildings + SVG overlay for player dot, camera cone, cardinal directions, and bezel - Heading-up rotation: map rotates with camera direction using shortest-arc normalization to prevent CSS transition wrap-around flips - District-colored building dots; current district highlighted on the map - Camera position tracking in OrbitScene via useFrame (throttled to ~10fps) to avoid flooding React state with 60 updates/second - N/S/E/W compass labels rotate with the map; counter-rotated to stay readable - Visible only after user enters the city (exploreMode or flyMode)
# Conflicts: # src/app/page.tsx # src/components/CityCanvas.tsx
|
@leandroruel is attempting to deploy a commit to the Samuel's projects Team on Vercel. A member of the Team first needs to authorize it. |
The radio portal slot at line 2851 was missing suppressHydrationWarning, causing a hydration mismatch when GlobalRadio portaled LofiRadio into it on the client while the server rendered it empty.
srizzon
added a commit
that referenced
this pull request
Apr 7, 2026
…pass Cherry-picked from leandroruel/git-city@d355509 (PR #88) Co-authored-by: leandroruel <leandroruel@users.noreply.github.com>
Owner
|
Hey @leandroruel, thanks for the awesome RadarMap contribution! Really well done with the heading-up rotation and district-aware coloring. I cherry-picked your commit into main (with Co-authored-by attribution) and built on top of it — added remote pilot blips so you can see other players flying on the radar, repositioned it to bottom-right, and removed the legacy MiniMap. Closing this PR since the changes are already merged. Thanks again for the contribution! 🙌 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Addresses the two issues raised in #7:
upstream/main(includes pixels system, E.Arcade, compare cinematic, wallpaper mode, sponsor landmarks, and all other recent features)What this adds
RadarMapcomponent (bottom-left): canvas raster layer renders building dots per district + SVG overlay for player position, camera field-of-view cone, N/S/E/W cardinal labels, and circular bezel ringOrbitScene:useFramethrottled to every 6th frame (~10fps) viaonCameraMoveproptransformso they stay upright as the map spinsexploreMode || flyMode)Files changed
src/components/RadarMap.tsxsrc/components/CityCanvas.tsxonCameraMoveprop toOrbitScene; merged with upstream new props (focusPosition,isCompareCinematicPlaying,wallpaperMode, etc.)src/app/page.tsxMiniMap; wiredRadarMap+cameraPos/playerYawstateTest plan