How tzshanta-maker/touchline-vale works
Touchline Vale is a playable 3D football game, with browser, desktop, and Android ways to run it. The main workflow is player input through the game loop into a live match, where team AI and player/ball simulation determine play and the UI presents controls and match feedback. Separate branches cover squad setup, procedural stadium and player visuals, and platform shells. Relationships are limited to calls or wiring visible in excerpts, the source index, or README; unsampled features are represented only where documented.
Main entry points: main.js Application entry · Game.js Match game loop · GamepadNav.js Gamepad navigation · UI.js Menus and HUD
Components 18
Match simulation
- Match game loop
src/core/Game.js - Team AI
src/ai/TeamAI.js - Ball simulation
src/entities/Ball.js - Player simulation
src/entities/Player.js
Input and presentation
- Input handling
src/core/Input.js - Touch controls
src/ui/TouchControls.js - Gamepad navigation
src/ui/GamepadNav.js - Menus and HUD
src/ui/UI.js - Sound
src/ui/Sound.js
Teams and visuals
- Player models
src/entities/PlayerModel.js - Squads and formations
src/entities/teams.js - Game configuration
src/config.js - Procedural stadium
src/world/Stadium.js - Procedural textures
src/world/Textures.js
Game runtimes
- Application entry
src/main.js - Desktop shell
desktop/main.cjs - Android host
android/src/com/touchlinevale/game/MainActivity.java
Other components
- Player
Connections 22
- Player → Application entry: starts game
README.md - Application entry → Match game loop: creates and starts
src/main.js - Application entry → Input handling: creates
src/main.js - Application entry → Menus and HUD: creates
src/main.js - Application entry → Touch controls: attaches
src/main.js - Application entry → Gamepad navigation: registers
src/main.js - Touch controls → Input handling: sets actions
src/ui/TouchControls.js - Gamepad navigation → Input handling: uses
src/main.js - Gamepad navigation → Menus and HUD: navigates
src/main.js - Match game loop → Team AI: uses
src/core/Game.js - Match game loop → Ball simulation: uses
src/core/Game.js - Match game loop → Player simulation: uses
src/core/Game.js - Match game loop → Procedural stadium: uses
src/core/Game.js - Match game loop → Squads and formations: uses
src/core/Game.js - Match game loop → Game configuration: reads settings
src/core/Game.js - Team AI → Squads and formations: uses formations
src/ai/TeamAI.js - Ball simulation → Procedural textures: creates texture
src/entities/Ball.js - Procedural stadium → Procedural textures: builds with
src/world/Stadium.js - Player models → Procedural textures: uses
src/entities/PlayerModel.js - Menus and HUD → Sound: plays feedback
src/ui/UI.js - Desktop shell → Application entry: loads game
- Android host → Application entry: hosts game