Block Breaker Game - VS Code Extension
A fun and interactive block breaker game that runs directly inside Visual Studio Code using WebView panels.
Features
- Complete Block Breaker Game: Classic arcade-style gameplay with paddle, ball, and destructible blocks
- Smooth Controls: Use arrow keys (←→) or A/D keys to control the paddle
- Game Mechanics:
- Ball physics with collision detection
- Colorful blocks arranged in rows
- Score tracking and lives system
- Win/lose conditions
- VS Code Integration: Seamlessly integrated as a WebView panel within your coding environment
- Responsive Design: Game adapts to the VS Code theme and window
How to Play
- Open the Command Palette (
Ctrl+Shift+P or Cmd+Shift+P )
- Run the command:
Start Block Breaker Game
- Use the arrow keys or A/D to move the paddle
- Press SPACE to start/pause the game
- Break all blocks to win!
Game Controls
- Move Paddle: ← → Arrow keys or A/D keys
- Start/Pause: SPACE bar
- Goal: Destroy all blocks without losing all your lives
Requirements
- VS Code version 1.102.0 or higher
- No additional dependencies required
Development
To run this extension in development mode:
- Clone this repository
- Open the project in VS Code
- Press
F5 to run the extension in a new Extension Development Host window
- In the new window, open the Command Palette (
Ctrl+Shift+P ) and run "Start Block Breaker Game"
Contributing
Feel free to submit issues and enhancement requests!
License
This extension is provided as-is for educational and entertainment purposes.
Enjoy!
| |