How sabbirahmedsr/arduinowordgame works
This is a browser-based, letter-learning runner game: the player advances through a word by entering each required letter, primarily via an Arduino connected over Web Serial, with keyboard fallback and an on-screen bit/letter HUD. GameEngine orchestrates level setup, input, obstacle progress, transitions, and the animation loop; rendering and feedback are delegated to background, word, particle, asset, and UI components. The tree and excerpts establish these principal calls. The README is empty, and other data and markup files were not sampled, so their specific runtime wiring is not asserted.
Main entry points: GameEngine.js Game Engine · SerialController.js Serial Controller · AssetManager.js Asset Manager · WordItem.js Word Item
Components 16
Gameplay Flow
- Game Engine
js/GameEngine.js - Word Item
js/WordItem.js
Rendering & Effects
- Parallax Background
js/ParallaxBackground.js - Particle System
js/ParticleSystem.js - Browser Canvas
Input & HUD
- HUD & Word UI
js/UIController.js - Serial Controller
js/SerialController.js - Keyboard Input
js/GameEngine.js - Arduino Device
arduino/8bit_serial_input/8bit_serial_input.ino
Game Content
- Asset Manager
js/AssetManager.js - Game Config
js/GameConfig.js - Resource Config
data/resources.json - Level Data
data/levelData.json - Letter Map
data/letterMap.json - Environment Config
data/environmentConfig.json
Other components
- Player
Connections 19
- Player → Game Engine: enters letters
js/GameEngine.js - Game Engine → Serial Controller: handles input
js/GameEngine.js - Game Engine → Keyboard Input: handles keys
js/GameEngine.js - Arduino Device → Serial Controller: streams bits
- Serial Controller → Game Engine: sends letters
js/GameEngine.js - Serial Controller → Letter Map: loads mapping
js/SerialController.js - Serial Controller → HUD & Word UI: updates HUD
js/SerialController.js - Game Engine → HUD & Word UI: updates progress
js/GameEngine.js - Game Engine → Word Item: sets and draws
js/GameEngine.js - Game Engine → Particle System: updates effects
js/GameEngine.js - Game Engine → Parallax Background: initializes and draws
js/GameEngine.js - Game Engine → Asset Manager: loads resources
js/GameEngine.js - Asset Manager → Resource Config: fetches config
js/AssetManager.js - Asset Manager → Environment Config: reads paths
- Game Engine → Game Config: uses settings
js/GameEngine.js - Game Engine → Level Data: selects words
- Parallax Background → Asset Manager: gets images
js/ParallaxBackground.js - Word Item → Particle System: spawns effects
js/WordItem.js - Game Engine → Browser Canvas: renders frame
js/GameEngine.js