1
00:00:00,330 --> 00:00:01,480
Hey, welcome back.

2
00:00:01,500 --> 00:00:08,790
I call this one the click popper game, because the objective of this game is to try to click these

3
00:00:08,790 --> 00:00:14,610
elements as they pop up and don't click the ones that aren't supposed to be clicked because then you're

4
00:00:14,610 --> 00:00:15,140
going to lose.

5
00:00:15,390 --> 00:00:21,510
So it keeps track of your score and also gives you a little bit of time to score as many points as possible.

6
00:00:21,790 --> 00:00:25,230
So using JavaScript, we're going to create the entire game board.

7
00:00:25,380 --> 00:00:33,480
So no HTML as well as we're going to create the elements, setting a timer using set timeout math random

8
00:00:33,690 --> 00:00:37,890
to set random positions and random elements that are going to pop up.

9
00:00:37,950 --> 00:00:42,350
And then we're also going to use tracking of the different hits for scoring mechanisms.

10
00:00:42,660 --> 00:00:43,510
So let me show you this.

11
00:00:44,130 --> 00:00:50,640
So at the start button, we start a new game and the objective here is to score as much as possible.

12
00:00:50,830 --> 00:00:56,460
You see, I've got lives there, and if I hit one of those bad ones like that one, I'm going to.

13
00:00:56,700 --> 00:01:01,070
And if I go down under zero, then I'm also going to end the game.

14
00:01:01,350 --> 00:01:06,160
So the objective is to just to it try to score as high as possible.

15
00:01:06,360 --> 00:01:11,010
These ones are going to be showing up at random and you can see some of them are going to increase my

16
00:01:11,010 --> 00:01:11,400
score.

17
00:01:11,410 --> 00:01:15,840
Some of them are going to decrease my score and the ones that I missed.

18
00:01:15,840 --> 00:01:18,080
So I lost a life on the ones that I missed as well.

19
00:01:18,840 --> 00:01:21,780
So that ended the game and I scored seven forty five.

20
00:01:22,050 --> 00:01:23,010
See if you can beat that.
