Skip to content

A modern artistic take on the classic Brick Breaker game featuring a shooting star that bounces off a deer paddle to break colorful bricks. Built with vanilla JavaScript and HTML5 Canvas, enhanced with particle effects and smooth animations.

License

Notifications You must be signed in to change notification settings

ChanMeng666/html-brick-game

Repository files navigation


Starlight Brick Breaker


2024-12-14.16-12-44.mp4

屏幕截图 2024-12-08 191344

Features

A modern artistic reimagining of the classic Brick Breaker game with unique visual elements and smooth gameplay mechanics.

⭐ Shooting Star Ball

Navigate a magical shooting star across the screen, complete with glowing particle trail effects that create beautiful light patterns as you play.

🦌 Mystical Deer Paddle

Control an elegant deer paddle that gracefully moves to bounce the star, bringing a touch of natural beauty to the classic paddle mechanic.

🎨 Colorful Interactive Design

Break through vibrant, colorful bricks that create stunning particle effects upon collision, set against a smoothly animated gradient background.

🌟 Particle Effect System

Enjoy a rich visual experience with dynamic particle effects for ball trails, brick collisions, and paddle impacts.

💎 Polished Game Elements

  • Smooth, responsive controls
  • Lives tracking system
  • Score counter
  • Victory and game over states
  • Elegant messaging system

🎮 Pure Vanilla Implementation

Built entirely with vanilla JavaScript and HTML5 Canvas - no external libraries or dependencies required.

🚀 Getting Started

  1. Clone the repository
git clone https://github.com/ChanMeng666/html-brick-game.git
  1. Open index.html in your browser
  2. Click "Start the game" to begin playing
  3. Use your mouse to control the deer paddle

🎯 How to Play

  1. Move your mouse to guide the deer paddle horizontally
  2. Bounce the shooting star to break all the bricks
  3. Don't let the star fall below the paddle
  4. Break all bricks to win the game
  5. You have 3 lives to complete your mission

🛠️ Tech Stack

HTML5 CSS3 JavaScript

📁 Project Structure

  • index.html: Game container and UI elements
  • game.js: Core game logic and rendering
  • styles.css: Styling and animations
  • SVG/: Visual assets for the deer paddle and star

🔧 Customization

You can customize various game parameters in game.js:

  • Ball speed and size
  • Paddle dimensions
  • Brick layout and colors
  • Particle effect properties
  • Background animation speed

🤝 Contributing

Contributions are welcome! Feel free to submit pull requests or open issues for bugs and feature requests.

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🎮 Try It Out

https://chanmeng666.github.io/html-brick-game/


Created with ❤️ by ChanMeng666

About

A modern artistic take on the classic Brick Breaker game featuring a shooting star that bounces off a deer paddle to break colorful bricks. Built with vanilla JavaScript and HTML5 Canvas, enhanced with particle effects and smooth animations.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published