Skip to content

Commit 5640e3f

Browse files
Merge pull request #1950 from Shruti0460/master
New UI update
2 parents c888ff5 + 41dd099 commit 5640e3f

File tree

5 files changed

+471
-0
lines changed

5 files changed

+471
-0
lines changed

data.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,11 @@
633633
"id": 127,
634634
"name": "Flower Garden Game",
635635
"description": "Plant flowers and avoid mushrooms in this fun timer-based game."
636+
},
637+
{
638+
"id": 128,
639+
"name": "Breakout Brick Game",
640+
"description": "Classic brick breaker game using HTML, CSS, and JavaScript with paddle and ball controls"
636641
}
637642

638643
]
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width,initial-scale=1" />
6+
<title>Breakout — Brick Breaker Game</title>
7+
<link rel="stylesheet" href="style.css" />
8+
</head>
9+
<body>
10+
<div class="container">
11+
<header>
12+
<h1>Breakout</h1>
13+
<div class="info">
14+
<div>Score: <span id="score">0</span></div>
15+
<div>Lives: <span id="lives">3</span></div>
16+
<div>Level: <span id="level">1</span></div>
17+
</div>
18+
</header>
19+
20+
<canvas id="gameCanvas" width="800" height="600"></canvas>
21+
22+
<div class="controls">
23+
<button id="startBtn">Start / Restart</button>
24+
<button id="pauseBtn">Pause</button>
25+
<label class="toggle">
26+
Mouse Control
27+
<input id="mouseToggle" type="checkbox" checked />
28+
</label>
29+
<small>Use ← → or Mouse to move paddle. Space to pause.</small>
30+
</div>
31+
32+
<footer>
33+
<p>Made with — Simple JS Canvas Breakout</p>
34+
</footer>
35+
</div>
36+
37+
<script src="script.js"></script>
38+
</body>
39+
</html>

0 commit comments

Comments
 (0)