How prikapoor/flappy_bird works
Sky Flapper is a browser-based Flappy Bird-style canvas game. The player selects settings, starts a run, steers by flapping, and sees the evolving world, score, and game state; runs can end, restart, or be paused. Major documented capabilities include themed levels, difficulty, power-ups, skins, achievements, generated sound, and saved progress. The excerpts show the animation loop, input handling, and persistence calls, but do not expose every runtime handoff, so uncertain connections are omitted.
Main entry points: main.js Loop and setup · input.js Input controls · features.js Power-ups and achievements · state.js Run state
Components 12
Runtime
- Loop and setup
js/main.js - Input controls
js/input.js - Game configuration
js/config.js - Run state
js/state.js
Gameplay
- Game update
js/update.js - Collision checks
js/collision.js
Presentation
- Generated sound
js/audio.js - Canvas world rendering
js/render.js - HUD and menus
js/ui.js
Progression
- Power-ups and achievements
js/features.js
Other components
- Player
- Browser localStorage
Connections 9
- Player → Input controls: controls
README.md - Loop and setup → Game update: calls each frame
js/main.js - Loop and setup → Canvas world rendering: renders each frame
js/main.js - Loop and setup → Run state: loads run settings
js/main.js - Loop and setup → Power-ups and achievements: loads progress and skin
js/main.js - Input controls → Generated sound: initializes and toggles
js/input.js - Input controls → Power-ups and achievements: changes skin and panel
js/input.js - Run state → Browser localStorage: reads and writes settings
js/state.js - Power-ups and achievements → Browser localStorage: reads and writes progress
js/features.js