Skip to content

Commit b888ea1

Browse files
authored
Merge pull request #7 from NotStonee/testing
more lives and speed changes
2 parents 26c7b06 + 34cd090 commit b888ea1

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script>
88
var chance=Math.random() * 10
99
var score = 0
10-
var lives = 3
10+
var lives = 5
1111
</script>
1212
<link rel="stylesheet" href="style.css">
1313
</head>

script.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const canvas = document.getElementById('game');
6666
height: 10,
6767

6868
// how fast the ball should go in the x or y direction
69-
speed: 4,
69+
speed: 3.5,
7070

7171
// ball velocity
7272
dx: 0,
@@ -154,12 +154,6 @@ const canvas = document.getElementById('game');
154154
// remove brick from the bricks array
155155
bricks.splice(i, 1);
156156
score++
157-
158-
159-
160-
161-
162-
163157
// ball is above or below the brick, change y velocity
164158
// account for the balls speed since it will be inside the brick when it
165159
// collides

0 commit comments

Comments
 (0)