1
00:00:00,330 --> 00:00:06,060
All right, I've got an exciting section for you, this is Alien Invader game, so the idea for this

2
00:00:06,060 --> 00:00:12,090
game or this project came to me when I was thinking of games I used to play and some of the really simple

3
00:00:12,090 --> 00:00:16,830
ones where you've got a bunch of aliens that are coming down and the objective is to shoot all of them

4
00:00:16,950 --> 00:00:18,450
before they get to your ship.

5
00:00:18,450 --> 00:00:20,830
And if they get to your ship, then the game is over.

6
00:00:21,000 --> 00:00:24,120
So the concept is the same thing here where we've got a bunch of aliens.

7
00:00:24,120 --> 00:00:25,470
They move from side to side.

8
00:00:25,620 --> 00:00:28,710
Every time they hit a side, they move down just a little bit.

9
00:00:28,890 --> 00:00:33,380
And by the time they get to you, if you haven't shot them, then you lose.

10
00:00:33,390 --> 00:00:35,130
And if you get all of them, then you win.

11
00:00:35,370 --> 00:00:37,140
So that's the objective of the game.

12
00:00:37,140 --> 00:00:44,830
And also arrow keys and spacebar to fire so you can shoot back at them and makes the game really interesting.

13
00:00:44,850 --> 00:00:49,140
So this is an exciting one, and I'm so happy to have the opportunity to share this one with you.

14
00:00:49,600 --> 00:00:50,780
So let me let me show you.

15
00:00:51,030 --> 00:00:55,440
So coming into the game, we've got a start button, and this is a keyboard based game.

16
00:00:55,620 --> 00:00:59,600
So we can press the space bar and the objective is to hit all of them.

17
00:00:59,610 --> 00:01:04,040
And in this case, game over, the alien crashed down to the bottom, hit my ship.

18
00:01:04,050 --> 00:01:07,840
So game is over and then you can restart it and try to score more.

19
00:01:07,980 --> 00:01:09,690
So this is awfully dynamic.

20
00:01:09,900 --> 00:01:15,840
You can adjust the settings and tweak the values and variables that are used within the game to make

21
00:01:15,840 --> 00:01:19,710
to the game functionality and to keep the game function the way you want to function.

22
00:01:20,190 --> 00:01:23,400
You can also adjust the width of the aliens, the way the aliens look.

23
00:01:23,410 --> 00:01:28,830
So there's a little of styling here and also when you are generating these aliens, so these are created

24
00:01:28,830 --> 00:01:32,700
using JavaScript and using applying styles.

25
00:01:32,910 --> 00:01:38,070
So this is another really interesting way that you can generate content and make content that you can

26
00:01:38,070 --> 00:01:40,260
interact with all using JavaScript.

27
00:01:40,290 --> 00:01:43,620
So again, no libraries, no tricks, no nothing, just JavaScript.

28
00:01:43,890 --> 00:01:45,900
So I hope you enjoy this one and have some fun with it.
