WEBVTT

00:00.950 --> 00:07.990
The final project in the final section of this course though I'll be doing some wrapping up after we're

00:08.000 --> 00:09.580
done.

00:09.700 --> 00:12.140
We'll look at the problem of Space Invaders.

00:12.140 --> 00:18.320
But first I thought I'd start with just going over how I set up the project.

00:18.440 --> 00:29.570
So I have a I have our main project text meter's ever made it and it's just the hello world template

00:30.650 --> 00:37.830
for now and I've made a dot h file as well.

00:37.860 --> 00:46.310
Currently all this has is the problem definition and nothing else which will go over for next time and

00:46.310 --> 00:50.360
I made that age by doing right click.

00:50.360 --> 00:53.230
New header file.

00:53.240 --> 01:06.330
Right click on the source of it and it just text invader's dot h minority exists course but just say

01:06.330 --> 01:08.450
fashion.

01:08.610 --> 01:17.130
You should have the ha or green and have also included the curses you tales that we made last time I

01:17.130 --> 01:24.600
copied it into the source source directory of our project.

01:24.630 --> 01:28.460
I just went to the project and then went to source.

01:28.750 --> 01:31.030
And then I just put it there.

01:31.050 --> 01:39.150
And then if you're kind of wondering why it's not showing up just a right click and refresh and should

01:39.240 --> 01:49.920
actually show up OK and anything I did of course was I went to the properties and I went to actually

01:49.920 --> 01:56.840
set up all the stuff we needed to do for curses and so for only for Mac.

01:56.910 --> 02:04.200
You just have to say in curses in libraries in for Windows you of course I have to do all the include

02:04.920 --> 02:15.420
include paths in the effort to set up the linker flags that I showed you before and the PD horses and

02:15.420 --> 02:19.950
the path BTS is OK just for library stuff.

02:20.160 --> 02:28.380
So I've done all that and the other thing I did was I made it so if I run it it'll actually run in the

02:28.380 --> 02:35.040
native console and have also made the native console 80 by 32 which is the size we want the console

02:35.040 --> 02:47.730
to be for a game if you go to preferences for Mac of course go to preferences and window.

02:48.160 --> 02:50.440
You can set the columns and rows here.

02:50.440 --> 02:55.060
So I've spent did 80 for columns at 32 for the rows.

02:55.060 --> 03:06.550
If you are on Windows you can right click on the console itself and go to layout and should see the

03:06.550 --> 03:07.610
size of the window.

03:07.650 --> 03:14.310
You can actually change to be 32 and so do all that.

03:14.320 --> 03:17.230
One other thing for the project setup.

03:17.230 --> 03:22.710
If you're having trouble is the son Mac with the run configurations like it.

03:22.870 --> 03:25.100
If you don't see it show up.

03:25.330 --> 03:36.790
You should actually run the hello world first in the can of regular eclipse console and then then you

03:36.790 --> 03:41.100
should probably see it see it show up.

03:41.300 --> 03:50.240
So if you run it first and the clips cancel and then go here then you should see this go up and then

03:50.240 --> 04:01.820
you can actually do all the setup necessary for your run configuration as they show you and it's using

04:01.820 --> 04:05.770
the terminal and then of course and checking out the console.

04:05.930 --> 04:09.630
So just like we had before.

04:10.460 --> 04:22.050
So let's now go through the problem and try to start understanding the problem and seeing what we're

04:22.060 --> 04:23.850
going to need for the problem.
