-
Notifications
You must be signed in to change notification settings - Fork 839
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4129 from Yashgabani845/yash-work2
Black breaker game added
- Loading branch information
Showing
8 changed files
with
1,992 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Block Breaker Game | ||
|
||
## Description | ||
The Block Breaker Game is a classic arcade-style game where the player controls a paddle to bounce a ball and break blocks. The objective is to clear all the blocks on the screen by hitting them with the ball while preventing the ball from falling off the screen using the paddle. | ||
|
||
## Features | ||
- **Multiple Levels:** Progressive difficulty with increasing levels. | ||
- **Power-Ups:** Various power-ups to enhance gameplay (e.g., paddle size increase, extra balls). | ||
- **Score Tracking:** Keeps track of the player's score. | ||
- **Sound Effects:** Engaging sound effects for different actions like hitting blocks, catching power-ups, etc. | ||
- **Responsive Controls:** Smooth and responsive paddle controls. | ||
|
||
## Gameplay | ||
- Use the left and right arrow keys to move the paddle. | ||
- Prevent the ball from falling off the bottom of the screen by bouncing it back with the paddle. | ||
- Break all the blocks on the screen to advance to the next level. | ||
- Collect power-ups for special abilities and higher scores. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Menja</title> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
<body> | ||
<!-- Game canvas --> | ||
<canvas id="c"></canvas> | ||
|
||
<!-- Gameplay HUD --> | ||
<div class="hud"> | ||
<div class="hud__score"> | ||
<div class="score-lbl"></div> | ||
<div class="cube-count-lbl"></div> | ||
</div> | ||
<div class="pause-btn"><div></div></div> | ||
<div class="slowmo"> | ||
<div class="slowmo__bar"></div> | ||
</div> | ||
</div> | ||
|
||
<!-- Menu System --> | ||
<div class="menus"> | ||
<div class="menu menu--main"> | ||
<h1>MENJA</h1> | ||
<button type="button" class="play-normal-btn">PLAY GAME</button> | ||
<button type="button" class="play-casual-btn">CASUAL MODE</button> | ||
<div class="credits">An 8kB game by <a href="https://cmiller.tech">Caleb Miller</a></div> | ||
</div> | ||
<div class="menu menu--pause"> | ||
<h1>Paused</h1> | ||
<button type="button" class="resume-btn">RESUME GAME</button> | ||
<button type="button" class="menu-btn--pause">MAIN MENU</button> | ||
</div> | ||
<div class="menu menu--score"> | ||
<h1>Game Over</h1> | ||
<h2>Your Score:</h2> | ||
<div class="final-score-lbl"></div> | ||
<div class="high-score-lbl"></div> | ||
<button type="button" class="play-again-btn">PLAY AGAIN</button> | ||
<button type="button" class="menu-btn--score">MAIN MENU</button> | ||
</div> | ||
</div> | ||
|
||
</body> | ||
<script src="script.js"></script> | ||
</html> |
Oops, something went wrong.