Skip to content

Commit

Permalink
Merge pull request #4129 from Yashgabani845/yash-work2
Browse files Browse the repository at this point in the history
Black breaker game added
  • Loading branch information
kunjgit authored Jun 6, 2024
2 parents 94d4e99 + 1f266f3 commit eaa357e
Show file tree
Hide file tree
Showing 8 changed files with 1,992 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Games/Menja_block_breaker/README.md
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.

50 changes: 50 additions & 0 deletions Games/Menja_block_breaker/index.html
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>
Loading

0 comments on commit eaa357e

Please sign in to comment.