Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# C# Objects Loops and Final Touches Playing the Game

Game.cs(40,12): error CS1525: Unexpected symbol `Level', expecting `,' or `;' https://w.trhou.se/wpi7vdxtwa

I've tried copying everything as it was instructed, but the program won't compile.

https://w.trhou.se/wpi7vdxtwa

2 Answers

Steven Parker
Steven Parker
231,275 Points

Good job on providing the snapshot link, that helped greatly with analysis. :+1:

Line 38 is missing a semicolon that should be at the end. The compiler is still expecting it when it encounters more code on line 40.

Once you fix that, you'll find out that "Invader" still needs a constructor that will accept the "path" argument. This was added in the Using Properties video in the previous stage.

Thank you!