How jinjooyoung/2026_networkprogramming works
This is a Unity web-build project containing three mini-games—card matching, recycling, and fruit slicing—and a small Node/Express leaderboard service. The apparent user journey is game selection, play, and score submission or leaderboard lookup. Unity gameplay scripts and scene wiring were not included in the excerpts, so their internal relationships are not asserted; the server’s routes, encryption, and file-backed score handling are visible in Node/server.js.
Main entry points: GameStateManager.cs Game state · Game0_CardMatchManager.cs Card matching · Game1_RecycleManager.cs Recycling game · Game2_FruitSliceManager.cs Fruit slicing
Components 22
Unity app
- Game selection
Assets/Scripts/Managers/GameSelectManager.cs - Main lobby
Assets/Scripts/Managers/MainLobbyManager.cs - Game state
Assets/Scripts/Managers/GameStateManager.cs - Game timer
Assets/Scripts/GameTimer.cs - Score tracking
Assets/Scripts/ScoreManager.cs - Game UI
Assets/Scripts/UI/UIManager.cs - Input controls
Assets/Scripts/Controls - Leaderboard client
Assets/Scripts/Managers/NetworkManager.cs
Mini-games
- Card matching
Assets/Scripts/Games/0_CardMatch/Game0_CardMatchManager.cs - Card objects
Assets/Scripts/Games/0_CardMatch/CardObject.cs - Card data
Assets/Scripts/Games/0_CardMatch/CardDataSO.cs - Recycling game
Assets/Scripts/Games/1_Recycle/Game1_RecycleManager.cs - Trash and zones
Assets/Scripts/Games/1_Recycle/TrashObject.cs - Trash data
Assets/Scripts/Games/1_Recycle/TrashDataSO.cs - Fruit slicing
Assets/Scripts/Games/2_FruitSlice/Game2_FruitSliceManager.cs - Fruit and effects
Assets/Scripts/Games/2_FruitSlice/FruitObject.cs - Fruit data
Assets/Scripts/Games/2_FruitSlice/FruitDataSO.cs
Leaderboard service
- Leaderboard API
Node/server.js - Payload encryption
Node/server.js - Score file
Node/server.js
Game content
- Game assets
Assets/Data
Other components
- Player
Connections 20
- Player → Game selection: chooses game
- Game selection → Main lobby: opens game
- Main lobby → Game state: starts play
- Game state → Game timer: tracks time
- Game state → Card matching: runs
- Game state → Recycling game: runs
- Game state → Fruit slicing: runs
- Player → Input controls: provides input
- Card matching → Card objects: uses
- Card matching → Card data: uses
- Recycling game → Trash and zones: uses
- Recycling game → Trash data: uses
- Fruit slicing → Fruit and effects: uses
- Fruit slicing → Fruit data: uses
- Game state → Score tracking: updates score
- Score tracking → Leaderboard client: submits score
- Leaderboard client → Leaderboard API: sends requests
Node/server.js - Leaderboard API → Payload encryption: encodes payload
Node/server.js - Leaderboard API → Score file: reads and writes
Node/server.js - Game state → Game UI: updates display