How kushagra751/portfolio works
This is a playable 3D portfolio: visitors start the scene, move a robot through five zones, interact to open portfolio panels, and can collect stars or fast-travel. The graph separates world rendering, gameplay state and controls, presentation, and portfolio content. The README documents contact-form modes, resume downloads, and the WebGL fallback; some internal wiring is supported only by the source index, so unsampled details are not expanded.
Main entry points: App.jsx App Shell · store.js Game UI State · Scene.jsx Scene Renderer · layout.js World Layout
Components 21
3D World
- Scene Renderer
src/world/Scene.jsx - Island Environment
src/world/Environment.jsx - Zone Structures
src/world/Structures.jsx - World Layout
src/world/layout.js - Player Movement
src/world/Player.jsx - Star Pickups
src/world/Collectibles.jsx
Controls And State
- Input Handling
src/input.js - Game UI State
src/store.js - Procedural Audio
src/audio.js
Portfolio Interface
- App Shell
src/App.jsx - Intro Screen
src/ui/Intro.jsx - HUD And Travel
src/ui/HUD.jsx - Touch Controls
src/ui/Touch.jsx - Panel Router
src/ui/Panel.jsx - Zone Panels
src/ui/panels.jsx - Toast Notices
src/ui/Toast.jsx - WebGL Fallback
src/ui/Fallback.jsx
Portfolio Content
- Portfolio Data
src/data.js - Resume PDF
public/Kushagra_Patidar_Resume.pdf
Other components
- Visitor
- Contact Destinations
Connections 39
- Visitor → App Shell: opens portfolio
README.md - App Shell → Scene Renderer: renders
src/App.jsx - App Shell → Intro Screen: renders
src/App.jsx - App Shell → HUD And Travel: renders
src/App.jsx - App Shell → Touch Controls: renders
src/App.jsx - App Shell → Panel Router: renders
src/App.jsx - App Shell → Toast Notices: renders
src/App.jsx - App Shell → WebGL Fallback: selects without WebGL
src/App.jsx - App Shell → Input Handling: sets up
src/App.jsx - Scene Renderer → Island Environment: renders
src/world/Scene.jsx - Scene Renderer → Zone Structures: renders
src/world/Scene.jsx - Scene Renderer → Player Movement: renders
src/world/Scene.jsx - Scene Renderer → Star Pickups: renders
src/world/Scene.jsx - Scene Renderer → World Layout: reads zones
src/world/Scene.jsx - Island Environment → World Layout: reads world data
src/world/Environment.jsx - Zone Structures → World Layout: reads zone data
src/world/Structures.jsx - Player Movement → Input Handling: reads movement
src/world/Player.jsx - Player Movement → Game UI State: updates gameplay
src/world/Player.jsx - Player Movement → World Layout: reads world state
src/world/Player.jsx - Player Movement → Procedural Audio: plays effects
src/world/Player.jsx - Star Pickups → Game UI State: records collection
src/world/Collectibles.jsx - Star Pickups → World Layout: reads star spots
src/world/Collectibles.jsx - Input Handling → Game UI State: dispatches actions
src/input.js - Game UI State → Procedural Audio: triggers sounds
src/store.js - Intro Screen → Game UI State: starts game
src/ui/Intro.jsx - HUD And Travel → Game UI State: reads and updates
src/ui/HUD.jsx - HUD And Travel → World Layout: reads travel zones
src/ui/HUD.jsx - HUD And Travel → Portfolio Data: reads profile
src/ui/HUD.jsx - Touch Controls → Input Handling: sets joystick input
src/ui/Touch.jsx - Touch Controls → Game UI State: reads state
src/ui/Touch.jsx - Panel Router → Zone Panels: selects zone content
src/ui/Panel.jsx - Panel Router → Game UI State: reads panel state
src/ui/Panel.jsx - Zone Panels → Portfolio Data: renders portfolio content
src/ui/panels.jsx - Zone Panels → Contact Destinations: submits form optionally
README.md - Zone Panels → Contact Destinations: opens email app by default
README.md - HUD And Travel → Resume PDF: offers download
README.md - Zone Panels → Resume PDF: offers download
README.md - Toast Notices → Game UI State: reads notices
src/ui/Toast.jsx - WebGL Fallback → Portfolio Data: renders portfolio content
src/ui/Fallback.jsx