How joel-lo/games- works
This repository is a browser-based arcade collection: visitors enter through a home page, reach a game-selection page, and play standalone games. The game scripts handle input, simulation, scoring, and display; Pac-Man additionally separates its controller from player and ghost logic, while Hangman keeps its word-and-hint data separate. The tree and excerpts support these game components, but no README or HTML excerpts were provided, so navigation links between pages are unverified. Other unsampled game implementations are represented by their exact script paths.
Main entry points: Selection.html Game selection · Pacman.html Pac-Man page · Pacman - game.js Pac-Man controller · index.html Home page
Components 21
Arcade portal
- Home page
index.html - Start gate
index.js - Game selection
Selection.html
Standalone games
- Dinosaur page
Dinosaur.html - Dinosaur game
Dinosaur.js - Flappy Bird page
Flappy Bird.html - Flappy Bird game
Flappy Bird.js - Snake page
Snake Game.html - Snake game
Snake Game.js - Snake high scores
Snake Game.js - Tetris page
Tetris.html - Tetris game
Tetris.js
Pac-Man
- Pac-Man page
Pacman.html - Pac-Man controller
Pacman - game.js - Pac-Man player logic
Pacman - pacman.js - Ghost logic
Pacman - ghost.js - Pac-Man implementation
Pacman.js
Hangman
- Hangman page
Hangman.html - Hangman game
Hangman.js - Word and hint list
Hangman-List.js
Other components
- Visitor
Connections 20
- Visitor → Start gate: clicks start
index.js - Home page → Start gate: loads script
- Home page → Game selection: opens selection
- Game selection → Dinosaur page: opens game
- Game selection → Flappy Bird page: opens game
- Game selection → Snake page: opens game
- Game selection → Tetris page: opens game
- Game selection → Pac-Man page: opens game
- Game selection → Hangman page: opens game
- Dinosaur page → Dinosaur game: loads game
- Flappy Bird page → Flappy Bird game: loads game
- Snake page → Snake game: loads game
- Snake game → Snake high scores: reads and writes
Snake Game.js - Tetris page → Tetris game: loads game
- Pac-Man page → Pac-Man controller: loads controller
- Pac-Man controller → Pac-Man player logic: creates and updates
Pacman - game.js - Pac-Man controller → Ghost logic: creates and updates
Pacman - game.js - Pac-Man page → Pac-Man implementation: loads implementation
- Hangman page → Hangman game: loads game
- Hangman game → Word and hint list: chooses word
Hangman.js