Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed C# Objects!
You have completed C# Objects!
Preview
The game is finished. Let's make a level and play it.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
In most real life games,data about
each level would be stored in a file.
0:00
When the player chooses to play a level,
it would read from the file, and
0:01
the map, path, invader, and level objects
would be created using that data.
0:04
For the time, being instead of
reading this information from a file,
0:10
we'll create the level
object right here in main.
0:13
We already have a map and
a path created so let's keep those.
0:16
We'll need to create an array of invaders.
0:20
We'll have four in this level.
0:23
So I'll say invader,
array, call it invader,
0:25
call invaders, then create
a new Invader pass of the path,
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up