How youssefdh840/game-world- works
World Challenge is a social multiplayer cultural-games app. Players authenticate or enter as guests, discover countries or choose a game, find an opponent or create a private duel, play a real-time match, and earn progression such as passport stamps. The graph also includes documented daily challenges, leaderboards, badges, and admin moderation. Source excerpts show key orchestration and service dependencies; several feature implementations are unsampled, so those branches are documented capabilities rather than asserted call flows.
Main entry points: App.tsx App Shell · userService.ts User & Progress Data · firebase.ts Firebase Client · AuthContext.tsx Authentication State
Components 28
App Experience
- App Shell
src/App.tsx - Navigation
src/components/Navigation.tsx - Home
src/views/HomeScreen.tsx - Country Explore
src/views/ExploreScreen.tsx - Country Details
src/components/CountryDetailModal.tsx - Game Selection
src/views/PlayScreen.tsx
Match & Play
- Matchmaking UI
src/components/MatchmakingModal.tsx - Matchmaking
src/services/matchmakingService.ts - Game Room
src/views/GameRoomScreen.tsx - Game Operations
src/services/gameService.ts - Question Service
src/services/questionService.ts - Question Catalog
src/services/questionData.ts
World & Progression
- Daily Challenge
src/components/DailyChallengeModal.tsx - Passport
src/views/PassportScreen.tsx - Player Profile
src/views/ProfileScreen.tsx - Leaderboards
src/views/LeaderboardScreen.tsx - Badge Catalog
src/services/badgesData.ts - Admin Dashboard
src/components/AdminPanelModal.tsx
Identity & Data
- Authentication UI
src/components/AuthModal.tsx - Authentication State
src/context/AuthContext.tsx - User & Progress Data
src/services/userService.ts - Geolocation
src/services/geolocationService.ts - Country Catalog
src/services/countryData.ts - Firebase Client
src/services/firebase.ts - Sound Effects
src/services/soundEffects.ts - Game Domain Types
src/types/game.ts
Other components
- Player
- Firestore
Connections 47
- Player → App Shell: opens
README.md - App Shell → Authentication State: provides auth
src/App.tsx - App Shell → Home: renders
src/App.tsx - App Shell → Country Explore: renders
src/App.tsx - App Shell → Game Selection: renders
src/App.tsx - App Shell → Passport: renders
src/App.tsx - App Shell → Player Profile: renders
src/App.tsx - App Shell → Leaderboards: renders
src/App.tsx - App Shell → Navigation: renders
src/App.tsx - App Shell → Matchmaking UI: opens
src/App.tsx - App Shell → Daily Challenge: opens
src/App.tsx - App Shell → Admin Dashboard: opens
src/App.tsx - App Shell → Authentication UI: opens
src/App.tsx - Player → Authentication UI: authenticates
README.md - Authentication UI → Authentication State: uses auth
src/components/AuthModal.tsx - Authentication State → User & Progress Data: creates profiles
src/context/AuthContext.tsx - Authentication State → Firebase Client: authenticates with
src/context/AuthContext.tsx - Country Explore → Country Details: opens details
src/views/ExploreScreen.tsx - Country Explore → Country Catalog: reads catalog
src/views/ExploreScreen.tsx - Matchmaking UI → Matchmaking: creates duel
src/components/MatchmakingModal.tsx - Matchmaking → Question Service: fetches questions
src/services/matchmakingService.ts - Matchmaking → Geolocation: detects location
src/services/matchmakingService.ts - Matchmaking → Country Catalog: resolves country
src/services/matchmakingService.ts - Matchmaking → Firebase Client: manages rooms
src/services/matchmakingService.ts - Game Room → Game Operations: uses game operations
src/views/GameRoomScreen.tsx - Game Operations → Question Service: gets questions
src/services/gameService.ts - Game Operations → Firebase Client: uses database
src/services/gameService.ts - Question Service → Question Catalog: uses catalog
src/services/questionService.ts - Question Service → Country Catalog: filters by country
src/services/questionService.ts - Question Service → Firebase Client: reads community questions
src/services/questionService.ts - Daily Challenge → Question Service: gets questions
src/components/DailyChallengeModal.tsx - Daily Challenge → User & Progress Data: updates rewards
src/components/DailyChallengeModal.tsx - Passport → Country Details: opens details
src/views/PassportScreen.tsx - Passport → Country Catalog: reads catalog
src/views/PassportScreen.tsx - App Shell → User & Progress Data: loads stamps
src/App.tsx - Player Profile → User & Progress Data: reads profile data
src/views/ProfileScreen.tsx - Player Profile → Badge Catalog: reads badges
src/views/ProfileScreen.tsx - Leaderboards → User & Progress Data: reads rankings
src/views/LeaderboardScreen.tsx - Admin Dashboard → Firebase Client: uses database
src/components/AdminPanelModal.tsx - Admin Dashboard → Question Catalog: uses question catalog
src/components/AdminPanelModal.tsx - User & Progress Data → Firebase Client: reads and writes
src/services/userService.ts - User & Progress Data → Geolocation: normalizes location
src/services/userService.ts - Firebase Client → Firestore: connects
README.md - Game Room → Sound Effects: plays effects
src/views/GameRoomScreen.tsx - Daily Challenge → Sound Effects: plays effects
src/components/DailyChallengeModal.tsx - Authentication State → Country Catalog: uses country data
src/context/AuthContext.tsx - Authentication State → Geolocation: detects location
src/context/AuthContext.tsx