File tree 2 files changed +2
-8
lines changed
2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 7
7
< script >
8
8
var chance = Math . random ( ) * 10
9
9
var score = 0
10
- var lives = 3
10
+ var lives = 5
11
11
</ script >
12
12
< link rel ="stylesheet " href ="style.css ">
13
13
</ head >
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ const canvas = document.getElementById('game');
66
66
height : 10 ,
67
67
68
68
// how fast the ball should go in the x or y direction
69
- speed : 4 ,
69
+ speed : 3.5 ,
70
70
71
71
// ball velocity
72
72
dx : 0 ,
@@ -154,12 +154,6 @@ const canvas = document.getElementById('game');
154
154
// remove brick from the bricks array
155
155
bricks . splice ( i , 1 ) ;
156
156
score ++
157
-
158
-
159
-
160
-
161
-
162
-
163
157
// ball is above or below the brick, change y velocity
164
158
// account for the balls speed since it will be inside the brick when it
165
159
// collides
You can’t perform that action at this time.
0 commit comments