How hsantosdias/minijogologica3d works
Mini Jogo de Lógica 3D is a browser-based reaction game served as a static site. The player starts a game, clicks the highlighted target before the round timer expires, and earns score and level progression; missed targets cost lives, and the game ends when lives run out. The runtime combines the Three.js scene and animation with round/game-state logic, HUD updates, visual and audio feedback, and a saved high score. The sampled source is partial, so unsampled event wiring and render-loop relationships are not expanded.
Main entry points: main.js Game state · index.html Game page · styles.css Interface styles
Components 9
Static site
- Game page
index.html - Interface styles
css/styles.css
Game runtime
- Game state
js/main.js - 3D scene
js/main.js - Rounds and scoring
js/main.js - Visual and audio effects
js/main.js
Browser platform
- Three.js
- Browser APIs
Other components
- Player
Connections 11
- Player → Game page: opens
README.md - Game page → Interface styles: uses styles
README.md - Game page → Game state: runs game logic
README.md - Player → Game state: clicks target; presses P
README.md - Game state → 3D scene: creates scene
js/main.js - Game state → Rounds and scoring: starts rounds; updates score
js/main.js - Rounds and scoring → Visual and audio effects: triggers feedback
js/main.js - 3D scene → Three.js: builds 3D scene
js/main.js - Visual and audio effects → Three.js: spawns particles
js/main.js - Rounds and scoring → Browser APIs: stores high score
js/main.js - Visual and audio effects → Browser APIs: plays tones
js/main.js