How lelicorne/super-tetris works
This repository is a browser-based falling-block game with configurable piece shapes, a board, and power-ups. The player uses keyboard or touch controls; the game updates its state and draws the board and upcoming pieces on canvases. The sampled implementation is a single JavaScript file, so its responsibilities are shown as components sharing that path. The HTML and CSS are present in the tree, but were not sampled; relationships to them are therefore omitted.
Main entry points: game.js Canvas rendering
Components 7
Game runtime
- Game rules
js/game.js - Board state
js/game.js - Power-ups
js/game.js
Rendering and interface
- Canvas rendering
js/game.js - Next piece display
js/game.js
Player controls
- Control bindings
js/game.js
Other components
- Player
Connections 5
- Player → Control bindings: operates
js/game.js - Control bindings → Game rules: runs actions
js/game.js - Canvas rendering → Board state: draws state
js/game.js - Canvas rendering → Power-ups: draws powers
js/game.js - Next piece display → Game rules: draws queue
js/game.js