How kruetztopf/scotlandyard works
This is a mobile Scotland Yard–style location game. Players create or join a lobby, configure a play boundary, and enter a live map game with location tracking, robber sightings, chat, and catch voting. The sampled app entry point confirms the lobby-to-game transition; screen excerpts and the source index show the main feature components and their dependencies. The README is empty, and several feature files were not excerpted, so those branches are limited to relationships supported by the source index.
Main entry points: MapScreen.tsx Live game screen · LobbyScreen.tsx Lobby screen · supabase.ts Supabase client · App.tsx App router
Components 23
App flow
- App router
App.tsx
Lobby and setup
- Lobby screen
src/screens/LobbyScreen.tsx - Boundary setup
src/components/BoundarySetupModal.tsx - Lobby game menu
src/components/GameMenuModal.tsx - Profile editor
src/components/ProfileModal.tsx
Live gameplay
- Live game screen
src/screens/MapScreen.tsx - Live map
src/components/OSMMapView.tsx - Photo catch
src/components/CameraCatchModal.tsx - Catch voting
src/components/CatchVoteModal.tsx - Game chat
src/components/ChatModal.tsx - In-game menu
src/components/GameMenuModal.tsx - Instructions
src/components/InstructionModal.tsx
Shared services
- Game data types
src/types/game.ts - Geo utilities
src/utils/geo.ts - Local profile
src/utils/profile.ts - Recent lobbies
src/utils/recentLobbies.ts - Notifications
src/utils/notifications.ts - Supabase client
src/lib/supabase.ts
Other components
- Player
- Supabase backend
- Device location
- OpenStreetMap tiles
- OS notifications
Connections 32
- Player → App router: uses
- App router → Lobby screen: shows lobby
App.tsx - App router → Live game screen: shows game
App.tsx - Lobby screen → App router: starts game
src/screens/LobbyScreen.tsx - Lobby screen → Boundary setup: opens setup
src/screens/LobbyScreen.tsx - Lobby screen → Lobby game menu: renders menu
src/screens/LobbyScreen.tsx - Lobby screen → Profile editor: opens profile
src/screens/LobbyScreen.tsx - Lobby screen → Supabase client: uses backend
src/screens/LobbyScreen.tsx - Lobby screen → Recent lobbies: saves recent games
src/screens/LobbyScreen.tsx - Lobby screen → Local profile: loads profile
src/screens/LobbyScreen.tsx - Boundary setup → Supabase client: reads and writes
src/components/BoundarySetupModal.tsx - Profile editor → Local profile: loads and saves
src/components/ProfileModal.tsx - Live game screen → Live map: renders map
src/screens/MapScreen.tsx - Live game screen → Photo catch: renders catch
src/screens/MapScreen.tsx - Live game screen → Catch voting: renders voting
src/screens/MapScreen.tsx - Live game screen → Game chat: renders chat
src/screens/MapScreen.tsx - Live game screen → In-game menu: renders menu
src/screens/MapScreen.tsx - Live game screen → Instructions: renders instructions
src/screens/MapScreen.tsx - Live game screen → Geo utilities: checks game geometry
src/screens/MapScreen.tsx - Live game screen → Local profile: loads profile
src/screens/MapScreen.tsx - Live game screen → Notifications: sends chat alerts
src/screens/MapScreen.tsx - Live game screen → Supabase client: uses backend
src/screens/MapScreen.tsx - Live map → Geo utilities: formats map data
src/components/OSMMapView.tsx - Live map → OpenStreetMap tiles: loads map tiles
src/components/OSMMapView.tsx - Photo catch → Supabase client: uses backend
src/components/CameraCatchModal.tsx - Catch voting → Supabase client: uses backend
src/components/CatchVoteModal.tsx - Game chat → Supabase client: uses backend
src/components/ChatModal.tsx - Supabase client → Supabase backend: connects to
src/lib/supabase.ts - Notifications → OS notifications: schedules alerts
src/utils/notifications.ts - App router → Game data types: uses game data
App.tsx - Lobby screen → Game data types: uses game data
src/screens/LobbyScreen.tsx - Live game screen → Game data types: uses game data
src/screens/MapScreen.tsx