How ruirocha1991/projetofinal-phaser works
This is a Phaser game whose workflow runs from initialization and asset loading through an animated introduction, menu, arcade gameplay, and a results screen; replay returns to gameplay. Gameplay covers the player, map, hazards, coin collection, scoring, and hit counts. The excerpts show state transitions and selected gameplay calls, but not the browser entry point or the full update loop, so those links are omitted.
Main entry points: oJogo.js Gameplay state · preload.js Asset preload · init.js Initialize · apre.js Introduction
Components 13
Startup and assets
- Initialize
js/init.js - Asset preload
js/preload.js - Game assets
assets
Game screens
- Introduction
js/apre.js - Main menu
js/menu.js - Results screen
js/end.js
Gameplay runtime
- Gameplay state
js/oJogo.js - World setup
js/oJogo.js - Player control
js/oJogo.js - Hazard firing
js/oJogo.js - Coin scoring
js/oJogo.js
Other components
- Player
- Phaser engine
Connections 13
- Player → Initialize: starts
js/init.js - Initialize → Asset preload: starts
js/init.js - Asset preload → Game assets: loads
js/preload.js - Asset preload → Introduction: starts
js/preload.js - Introduction → Main menu: starts
js/apre.js - Main menu → Gameplay state: starts
js/menu.js - Results screen → Gameplay state: restarts
js/end.js - Gameplay state → Results screen: sends score
js/oJogo.js - Gameplay state → World setup: calls setup
js/oJogo.js - Gameplay state → Player control: calls setup
js/oJogo.js - Gameplay state → Hazard firing: dispatches fire
js/oJogo.js - Player control → Coin scoring: collects coins
js/oJogo.js - Gameplay state → Phaser engine: uses engine
js/oJogo.js