How smsmaydi/open-sea works
This is a browser-based, 3D interactive portfolio presented as a seafaring exploration game. The visitor starts the experience, sails through a rendered world, explores profile islands, and reads localized portfolio content in the HUD/logbook. App is the apparent entry point and coordinates the world, HUD, input, content, and audio. The excerpts establish some world construction and shared rendering utilities; several runtime links are indicated only by the source index, so those links are marked unverified rather than asserted as inspected calls.
Main entry points: SeaWorld.tsx Sea world · App.tsx App coordinator · Ship.ts Player ship · Atmosphere.ts Atmosphere
Components 28
App and interface
- App coordinator
src/App.tsx - HUD and logbook
src/ui/Hud.tsx - Input controls
src/experience/Input.ts
World simulation
- Sea world
src/world/SeaWorld.tsx - Player ship
src/experience/Ship.ts - Portfolio islands
src/experience/Island.ts - Ocean surface
src/experience/Ocean.ts - World dressing
src/experience/Dressing.ts - Sea life
src/experience/Fauna.ts - Rival ship
src/experience/Rival.ts - Kraken encounter
src/experience/Kraken.ts - Debris effects
src/experience/Debris.ts - Ship wake
src/experience/Wake.ts
Rendering utilities
- Particle effects
src/experience/Particles.ts - Atmosphere
src/experience/Atmosphere.ts - Weather
src/experience/Weather.ts - Clouds
src/experience/Clouds.ts - Sky
src/experience/Sky.ts - World curvature
src/experience/curve.ts - Shared shader environment
src/experience/env.ts - Model loader
src/experience/kit.ts - Wave functions
src/experience/waves.ts - Coast utilities
src/experience/coast.ts - Device and motion settings
src/experience/settings.ts
Portfolio and media
- Island content
src/data/content.ts - Audio controls
src/audio/sounds.ts - 3D model assets
public/models
Other components
- Visitor
Connections 32
- Visitor → App coordinator: opens
- App coordinator → Sea world: renders
src/App.tsx - App coordinator → HUD and logbook: renders
src/App.tsx - App coordinator → Input controls: creates
src/App.tsx - App coordinator → Audio controls: starts and controls
src/App.tsx - App coordinator → Island content: reads and stores
src/App.tsx - HUD and logbook → Island content: displays
src/ui/Hud.tsx - HUD and logbook → Input controls: uses
src/ui/Hud.tsx - Sea world → Player ship: constructs
src/world/SeaWorld.tsx - Sea world → World dressing: constructs
src/world/SeaWorld.tsx - Sea world → Ocean surface: constructs
src/world/SeaWorld.tsx - Sea world → Portfolio islands: constructs
src/world/SeaWorld.tsx - Sea world → Sea life: dispatches
src/world/SeaWorld.tsx - Sea world → Rival ship: dispatches
src/world/SeaWorld.tsx - Sea world → Kraken encounter: dispatches
src/world/SeaWorld.tsx - Sea world → Debris effects: dispatches
src/world/SeaWorld.tsx - Player ship → Ship wake: creates
src/experience/Ship.ts - Player ship → Wave functions: samples
src/experience/Ship.ts - Player ship → Model loader: loads model
src/experience/Ship.ts - Player ship → World curvature: curves materials
src/experience/Ship.ts - Sea life → Wave functions: samples
src/experience/Fauna.ts - Sea life → Particle effects: uses
src/experience/Fauna.ts - Atmosphere → Clouds: coordinates
src/experience/Atmosphere.ts - Atmosphere → Sky: coordinates
src/experience/Atmosphere.ts - Atmosphere → Weather: coordinates
src/experience/Atmosphere.ts - Atmosphere → Shared shader environment: updates
src/experience/Atmosphere.ts - World curvature → Shared shader environment: uses uniforms
src/experience/curve.ts - Wave functions → Shared shader environment: reads swell
src/experience/waves.ts - Wave functions → Device and motion settings: reads motion setting
src/experience/waves.ts - Model loader → 3D model assets: loads
src/experience/kit.ts - Portfolio islands → Island content: uses island data
src/experience/Island.ts - Sea world → 3D model assets: renders assets