WEBVTT

00:00.630 --> 00:10.550
So I stole this from this kind of classic gaming sites that had sort of the description of Space Invaders

00:10.550 --> 00:12.530
and go to the site if you want.

00:12.530 --> 00:14.480
It's got lots of interesting stuff about it.

00:14.540 --> 00:16.150
But the game in general.

00:16.940 --> 00:23.900
So it starts so the object of the game is to shoot the invaders with your missile base while avoiding

00:24.080 --> 00:26.850
their shots and preventing invasion.

00:26.940 --> 00:34.280
Ok massing a high score is a further objective and one that must be prioritize against your continued

00:34.280 --> 00:35.710
survival.

00:35.780 --> 00:46.490
Each game screen starts with five rows of 11 invaders the bottom two rows score 10 points or her large

00:46.490 --> 00:47.030
invader.

00:47.030 --> 00:56.120
The middle two rows are 20 points for the medium the beer and the top rows scores 30 points for each

00:56.120 --> 00:57.420
small innovators.

00:57.770 --> 01:00.150
Ours will be all the same size.

01:00.180 --> 01:03.910
Don't worry the big meeting in small here.

01:04.070 --> 01:08.570
This makes each screen worth a total of nine hundred ninety points.

01:08.640 --> 01:16.440
The score for each screen can be dramatically increased by the destruction of the mystery value spaceship.

01:16.440 --> 01:27.460
When I call the UFO that frequently flies from one side of the screen to the other mystery UFO should

01:27.460 --> 01:34.170
have points value of 50 to 200 points temporary sanctuary.

01:34.280 --> 01:42.980
Can you SOP's beneath the four Bs shields shields are destructible by both the player and the aliens.

01:43.000 --> 01:46.920
Only the part of the shield hit by either player.

01:47.210 --> 01:53.100
You are either a player missile or an alien bomb should be destroyed not the entire issue.

01:53.260 --> 01:56.520
So like parts of the shield can be kind of broken.

01:56.530 --> 01:58.260
It's what's saying here.

01:58.510 --> 02:07.050
Invader's travel sideways and each time they touch the side they drop down one line on the screen and

02:07.270 --> 02:16.590
when one day they need to drop 11 lines at each to reach the bottom to invade from screen 2 through

02:16.590 --> 02:17.540
9.

02:17.550 --> 02:24.460
They start progressively lower down on the screen so this is this is actually talking about the games.

02:24.840 --> 02:32.190
So if you actually won the game the next time they spawn because you just kind of keep going.

02:32.190 --> 02:35.820
They start one mind lower than they did before.

02:35.940 --> 02:44.810
OK screen 10 the game reverts to the screen 1 a start position and the cycle begins again.

02:45.920 --> 02:53.330
So again essentially what happens is they start kind of the highest on the first on the first try.

02:53.550 --> 03:02.580
And if you destroy them all and then kind of that will sort of restart the game then they'll start one

03:02.580 --> 03:11.570
line lower until they reach 10 and then they kind of recycle back to the first first time.

03:11.820 --> 03:18.100
There is no time limit except for the fact that if you do not shoot them all before they reach the bottom

03:18.160 --> 03:21.520
the bottom of the screen the game ends.

03:22.030 --> 03:24.930
So the more invaders the player shoots the faster.

03:25.000 --> 03:30.920
Maybe aliens move when the invaders are low enough to touch the base shelters.

03:30.950 --> 03:33.610
They erased them as they pass.

03:33.740 --> 03:34.870
That's very important.

03:34.870 --> 03:35.660
OK.

03:35.900 --> 03:42.220
And the last invader Missouri quickly or us any missiles drop by.

03:42.300 --> 03:44.960
She's interested say bombs.

03:45.530 --> 03:52.750
Bombs dropped by the invader on the row above invasion row will not harm the players missile.

03:52.790 --> 03:53.460
So.

03:53.660 --> 04:02.320
So Alien bombs and players missile can't collide other words the aliens can have a maximum of three

04:02.320 --> 04:07.880
bombs on the street in that time the player can only have one missile shots on the screen at one time.

04:08.320 --> 04:14.440
If the player is hit the game should pause and the player should be showing the exploding animation

04:14.530 --> 04:18.870
so the player can get hit in the head explode.

04:19.030 --> 04:29.370
And what we'll do is you'll have to press a button or a key to continue the game if an alien is hit

04:29.430 --> 04:33.170
they should explode for a short time then disappear.

04:33.770 --> 04:37.300
There should be an intro screen game over screen.

04:37.320 --> 04:43.500
The player can enter their name in high Group high score screen so there's different screens to this

04:43.500 --> 04:44.500
game.

04:44.550 --> 04:49.990
It's quite a bit more complicated than say battleship for example.

04:50.140 --> 04:55.860
It should be a high score table that can be seen from the initial welcome screen and after the game

04:55.860 --> 04:57.330
is over.

04:59.160 --> 05:05.500
And the player enters his three letter name so it will show up after they kind of enter their name.

05:05.580 --> 05:09.230
See what score the.

05:09.470 --> 05:16.730
So all the regular aliens are two by four in terms of size two rows four columns.

05:16.730 --> 05:18.870
Player is two by five.

05:18.920 --> 05:26.990
And the alien ufo is two by six and you can see all the sprites are actually going to be drawing sprites.

05:26.990 --> 05:30.740
So you can see all the sprites here of what everything is going to look like.

05:30.740 --> 05:37.470
You can change the sprites however you like but easier are the ones I'm going to use.

05:37.540 --> 05:38.270
OK.

05:38.480 --> 05:41.390
And notice that there they have animations.

05:41.420 --> 05:46.030
There's ones prayed for this thirty point alien will look like this.

05:46.130 --> 05:50.680
Maybe the initial spray will like this and then when he moves he'll kind of like this.

05:50.960 --> 05:57.210
And similarly for these aliens OK the UFO doesn't change at all.

05:57.540 --> 05:58.470
And the players.

05:58.610 --> 06:04.600
In actual game play doesn't change but the explosion will actually have an animation.

06:04.940 --> 06:07.770
OK and here's what the shields will look like.

06:07.800 --> 06:09.830
Here's what the alien bomb will look like.

06:09.830 --> 06:15.220
So the alien bomb is also animating things so that's important.

06:16.210 --> 06:18.160
So go from this list.

06:18.340 --> 06:25.720
And then back here and make that and the alien explosion just like this.

06:25.720 --> 06:28.930
We could change it to be the same size as well.

06:28.930 --> 06:33.940
If you want to look at if you want to look like this that is all you want.

06:34.480 --> 06:39.130
It doesn't matter too much and that's it.

06:39.130 --> 06:47.230
So what can we start understanding about what kind of data we want.

06:47.740 --> 06:50.320
So let's take a look.

06:50.320 --> 06:52.270
So when you're a player

06:57.050 --> 06:58.220
so.

06:59.310 --> 07:01.090
You're.

07:01.180 --> 07:05.020
Only some humans need the shields

07:08.170 --> 07:10.500
any kind of alien bombs

07:13.820 --> 07:15.680
player missiles.

07:21.790 --> 07:31.350
They all need sort of states that the game can be in.

07:31.350 --> 07:44.510
So games it's because for example says here there's intro screen of Game Over screen high score screen

07:44.710 --> 07:48.540
as well as many different states that the game will be in.

07:49.890 --> 07:59.450
That will need to to figure out the scores on the score and a high score table.

08:04.530 --> 08:04.790
OK.

08:04.930 --> 08:07.670
So these are just kind of general observations.

08:07.840 --> 08:23.310
Sensage general data maybe they Here's all the general data that I kind of glean from this description.

08:23.310 --> 08:27.660
So let's kind of break it down.

08:27.900 --> 08:30.870
So let's start with the player

08:36.910 --> 08:44.030
so where will have what each a position

08:46.970 --> 08:49.460
it'll have.

08:49.680 --> 08:56.230
It only has one missile and the player can only have one missile shot on screen and when times are going

08:56.230 --> 09:08.770
to give it to where a missile has animations state Guess what if they're so usually it doesn't have

09:08.770 --> 09:10.300
animations to eat.

09:10.480 --> 09:13.590
But what if it got hit and it's exploding.

09:13.590 --> 09:24.030
No it will have to kind of go between these two animations and this animation state it has the size

09:24.030 --> 09:26.040
of the Spryte

09:32.720 --> 09:36.000
it has.

09:36.500 --> 09:39.140
It didn't actually say up here.

09:40.650 --> 09:47.120
It just kind of a weird sort of added a couple things to this description but I didn't add that it had

09:47.260 --> 09:50.720
we have lives.

09:50.950 --> 09:55.240
In fact we have three lives OK.

09:55.610 --> 09:58.010
And then it's game over.

09:58.610 --> 10:01.450
And the player also has a score as well.

10:02.340 --> 10:06.780
So how many points he currently has.

10:06.870 --> 10:11.490
So that's kind of the major stuff player.

10:11.490 --> 10:14.040
So what about the aliens.

10:14.100 --> 10:26.310
So I'm going to break up the aliens into kind of the regular ten twenty thirty point aliens and just

10:26.790 --> 10:29.820
distinguish them from the mystery UFO.

10:29.930 --> 10:40.320
And so I'm going to call the regular aliens the aliens swarm.

10:40.570 --> 11:00.120
And so this is the actual This isn't an individual it's actually all all the 10 20 and 30 point aliens.

11:00.130 --> 11:03.350
So as one kind of unit

11:06.100 --> 11:14.900
the aliens swarm in general has a position.

11:15.950 --> 11:20.180
They have a direction that they're kind of moving in.

11:20.210 --> 11:26.080
So either left or right.

11:29.380 --> 11:40.520
They also have animations which animations state they're in because when they move they change their

11:40.530 --> 11:42.920
animation for your scene.

11:43.020 --> 11:47.470
Space Invaders played a.

11:47.540 --> 11:58.090
They also have size of each alien.

11:58.170 --> 12:00.090
They have a state that they're in.

12:00.170 --> 12:00.870
So

12:03.440 --> 12:08.200
they really only have three states alive.

12:08.400 --> 12:20.120
Dead or exploding because they have to explode for a while says somewhere around here.

12:20.700 --> 12:21.710
Feelings hit.

12:21.730 --> 12:25.110
They should explode for a short period of time then disappear.

12:25.930 --> 12:32.030
So they'll have kind of an exploding state as it were.

12:32.370 --> 12:35.700
And of course they have alien bombs.

12:41.590 --> 12:44.830
And notice I'm not giving them points here.

12:44.850 --> 12:45.330
Right.

12:46.750 --> 12:49.670
All kind of deal with that some other way.

12:52.050 --> 13:04.480
Rosca have the feeling you know and that we actually have eyes for this bright and the actual position

13:04.480 --> 13:19.620
that they're in and points that they that it's worth game which is random from 50 so it can have a value

13:19.620 --> 13:22.570
of 50 to 100 200 points.

13:23.540 --> 13:32.520
So it's that we miss or we miss the actual shields.

13:32.960 --> 13:35.500
Right here.

13:35.530 --> 13:38.670
So that's actually that's it for you.

13:38.810 --> 13:49.960
Well so the shield itself will have a Spryte and notice that these don't like this doesn't have a sprite.

13:49.970 --> 13:51.460
This doesn't have a spray.

13:51.470 --> 13:54.370
This doesn't have a sprite currently.

13:54.740 --> 13:56.000
But this will have a sprites.

13:56.000 --> 14:07.490
And the reason why is because the spray can change.

14:07.670 --> 14:14.510
Unlike the aliens which doesn't really change the only change in terms of animation which we already

14:16.280 --> 14:18.180
factored in to ours.

14:18.350 --> 14:25.840
And similarly with the glare the player doesn't really change he just has a animation state if he's

14:25.910 --> 14:34.680
exploding but the shield itself will have an actual sprite because the Spryte say the middle seat sprite

14:34.760 --> 14:35.120
say.

14:35.120 --> 14:41.020
This one got steroid so it could look like this if it got hit in the middle right.

14:43.150 --> 14:45.440
So that's important to capture.

14:45.820 --> 14:51.000
So have a sprites and they'll all have position

14:55.330 --> 14:56.230
so

14:58.950 --> 15:01.620
we'll also have let's say a position

15:08.060 --> 15:15.110
in those that position really just has it's just an x y coordinates.

15:20.450 --> 15:22.040
The alien bomb

15:26.570 --> 15:28.610
will also have a position

15:31.050 --> 15:33.660
and it will have the

15:37.920 --> 15:43.200
the animation state could be of four different states.

15:43.230 --> 15:45.850
Could be like this.

15:46.080 --> 15:49.180
This this this.

15:49.410 --> 15:57.970
That's four states it could be in kind of similarly sort of the missile that we have for the player

15:59.160 --> 16:01.050
right.

16:01.320 --> 16:06.440
So call it missile really is just a position.

16:06.460 --> 16:07.070
So

16:10.710 --> 16:15.160
that's kind of it's in the Spryte will use for it.

16:16.390 --> 16:23.110
It's kind of an aside.

16:23.240 --> 16:27.100
It will just be kind of a vertical line like this.

16:28.040 --> 16:31.080
So again this won't change.

16:31.280 --> 16:36.740
Therefore we don't need an animation stage and we don't need to set the sprite in here because it will

16:36.740 --> 16:42.710
change all day kind of more subtly.

16:42.880 --> 16:47.620
The we said we need game states right.

16:47.660 --> 16:53.530
So maybe we actually need kind of a game structure as well.

16:54.350 --> 16:58.320
So we actually have the game stee in here.

17:01.530 --> 17:06.030
Maybe that current level that we're on like it said above

17:12.310 --> 17:23.760
is it's so onscreen one they need to drop all of minds right so screen to really there should be level

17:23.770 --> 17:29.120
1 and level 2.

17:29.300 --> 17:43.620
So we're going to have that level here and we're going to have the size of the window in the game as

17:43.620 --> 17:44.220
well.

17:47.550 --> 17:52.440
There's going to be extra stuff that we're not think of right now but again we're just sort of thinking

17:52.440 --> 18:00.360
in terms of what we may need just based off the description and all the sprites that we have.

18:00.360 --> 18:06.240
So we're kind of thinking out loud and sort of doing the best we can with what you know.

18:06.240 --> 18:13.680
For now often when you're in the game you'll have to make revisions and do different maybe maybe add

18:13.680 --> 18:16.570
some more data that you of missed.

18:16.650 --> 18:22.590
So but usually when you kind of go through it the first time you should really just do what we're doing

18:22.590 --> 18:28.440
right now and sort of think about all the things we're going to need logically.

18:28.940 --> 18:31.800
And if you have to make changes to it later that's OK.

18:33.230 --> 18:35.050
So we have scores.

18:35.300 --> 18:44.800
Obviously it's just going to score value and it said we could enter a name so maybe a name is all.

18:45.350 --> 18:47.780
And so the high score table

18:54.750 --> 19:00.810
as well which I think is going to make vector school is gay

19:04.090 --> 19:08.530
so if there's anything really missing

19:13.170 --> 19:21.510
in terms of kind of the broad overview of the actual data for the game but I'm sure there'll be some

19:21.510 --> 19:27.470
things that we need to add or change over the course of doing this game.

19:27.600 --> 19:28.490
OK.

19:28.500 --> 19:36.270
So I want to in the next lecture go over the actual implementation of the data so making all the strokes

19:36.780 --> 19:39.760
and kind of thinking about everything we're going to need.

19:39.920 --> 19:43.050
And so I will see you in the next lecture.
