You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A responsive, lightweight Flappy Bird clone built with HTML5 Canvas, CSS3, and modern Vanilla JavaScript. Features dynamic physics, touch/keyboard controls, local high-score persistence, and modal UI overlays.
๐ธ Preview
(Add a screenshot of your game here once hosted, e.g., )
โจ Features
* 60 FPS Canvas Rendering: Built using requestAnimationFrame for smooth animations.
* Cross-Platform Controls: Supports Keyboard (Space, Arrow Up, X), Mouse Click, and Mobile Touch interactions.
* Persistent High Scores: Saves your top score using browser localStorage.
* Dynamic Pipe Generation: Randomized pipe gaps and heights generated on set intervals.
* AABB Collision System: Accurate Axis-Aligned Bounding Box collision detection for game over states.
๐ ๏ธ Tech Stack
* Markup: HTML5 Canvas & Overlay UI
* Styling: CSS3 (Flexbox, Modal Overlays)
* Scripting: Modern Vanilla JavaScript (ES6+)
๐ Project Structure
```text
โโโ index.html # Core markup and canvas element
โโโ style.css # Layout, fonts, and UI modal styling
โโโ script.js # Main game loop, state handling, and physics logic
โโโ flappybird3.png # Player sprite
โโโ toppipe.png # Top obstacle sprite
โโโ bottompipe.png # Bottom obstacle sprite
```
๐ Getting Started
### Prerequisites
All you need is a modern web browser (Chrome, Firefox, Edge, or Safari).