How alinemello29/jogo-dinossauro-simples works
This is a small browser dinosaur game. The user presses Space to jump; the script animates the dinosaur, spawns moving cacti, detects collisions, and replaces the page with a game-over message. The source excerpt supports the game logic and its browser interactions; HTML and styling details are not shown.
Main entry points: script.js Game runtime
Components 3
Gameplay
- Game runtime
script.js
Other components
- Player
- Browser page
Connections 3
- Game runtime → Player: listens for keyup
script.js - Player → Game runtime: presses Space
script.js - Game runtime → Browser page: updates scene
script.js