How pedroferreira50/transcendance works
Open Sea is a browser-based real-time maze game with online multiplayer, bot and local play, spectators, reconnects, and player progression. In the online flow, users authenticate, create or join a lobby and configure a match; the server starts and authoritatively manages it, streams game state to the browser, and records results. The frontend also exposes profiles, match history, and leaderboards. The source index confirms several module references, but unsampled lobby, stats, and persistence internals limit how specifically their runtime links can be drawn.
Main entry points: server.ts HTTP and socket server · GameManager.ts Match manager · GameScreen.tsx Game interface · authRoutes.ts Authentication routes
Components 24
Browser client
- Application shell
Transcendance/frontend/src/App.tsx - Game interface
Transcendance/frontend/src/components/GameScreen.tsx - Lobby interface
Transcendance/frontend/src/components/Lobby.tsx - Mode navigation
Transcendance/frontend/src/components/OpenSea.tsx - Game renderer
Transcendance/frontend/src/game/renderer.ts - Game protocol
Transcendance/frontend/src/game/protocol.ts - Socket client
Transcendance/frontend/src/socket.ts
Identity and profiles
- Authentication routes
Transcendance/backend/src/authRoutes.ts - Session tokens
Transcendance/backend/src/auth.ts - Statistics routes
Transcendance/backend/src/statsRoutes.ts - Player statistics
Transcendance/backend/src/statistics.ts
Realtime match service
- HTTP and socket server
Transcendance/backend/src/server.ts - Lobby coordination
Transcendance/backend/src/lobby.ts - Game socket handlers
Transcendance/backend/src/game/gameSocket.ts
Game engine
- Match manager
Transcendance/backend/src/game/GameManager.ts - Match simulation
Transcendance/backend/src/game/GameRoom.ts - Map selection
Transcendance/backend/src/game/mapLoader.ts - Rules and options
Transcendance/backend/src/game/config.ts - Entity placement
Transcendance/backend/src/game/placement.ts - Bot strategy
Transcendance/backend/src/game/bot.ts
Persistence
- SQLite database
Transcendance/backend/src/database.ts - Match persistence
Transcendance/backend/src/persistence.ts - Prisma client
Transcendance/backend/src/prisma.ts
Other components
- Player
Connections 26
- Player → Application shell: opens
Transcendance/frontend/src/App.tsx - Application shell → Mode navigation: renders
Transcendance/frontend/src/App.tsx - Application shell → Authentication routes: checks session
Transcendance/frontend/src/App.tsx - Mode navigation → Lobby interface: selects mode
Transcendance/frontend/src/components/OpenSea.tsx - Lobby interface → Socket client: emits events
Transcendance/frontend/src/components/Lobby.tsx - Lobby interface → Game interface: renders match
Transcendance/frontend/src/components/Lobby.tsx - Game interface → Game renderer: draws state
Transcendance/frontend/src/components/GameScreen.tsx - Game interface → Socket client: exchanges state
Transcendance/frontend/src/components/GameScreen.tsx - Game interface → Game protocol: uses types
Transcendance/frontend/src/components/GameScreen.tsx - HTTP and socket server → Authentication routes: mounts routes
Transcendance/backend/src/server.ts - HTTP and socket server → Statistics routes: mounts routes
Transcendance/backend/src/server.ts - HTTP and socket server → Lobby coordination: sets up
Transcendance/backend/src/server.ts - HTTP and socket server → Game socket handlers: sets up
Transcendance/backend/src/server.ts - HTTP and socket server → Match manager: creates manager
Transcendance/backend/src/server.ts - Authentication routes → Session tokens: uses tokens
Transcendance/backend/src/authRoutes.ts - Authentication routes → SQLite database: queries users
Transcendance/backend/src/authRoutes.ts - Statistics routes → Player statistics: uses
Transcendance/backend/src/statsRoutes.ts - Game socket handlers → Match manager: dispatches events
Transcendance/backend/src/game/gameSocket.ts - Match manager → Match simulation: creates rooms
Transcendance/backend/src/game/GameManager.ts - Match manager → Map selection: loads maps
Transcendance/backend/src/game/GameManager.ts - Match manager → Bot strategy: requests decisions
Transcendance/backend/src/game/GameManager.ts - Match manager → Match persistence: saves matches
Transcendance/backend/src/game/GameManager.ts - Match simulation → Rules and options: uses rules
Transcendance/backend/src/game/GameRoom.ts - Match simulation → Entity placement: places entities
Transcendance/backend/src/game/GameRoom.ts - HTTP and socket server → Prisma client: creates client
Transcendance/backend/src/server.ts - Prisma client → SQLite database: configures storage
Transcendance/backend/src/prisma.ts