If you use a different project name…
There’s one thing you need to do if you gave your UI project a name other than SuperAdventure, change the project’s namespace.
A namespace is a way to group your classes together.
When you create a project in Visual Studio, it will use the project’s name as the namespace name. So, if you name your project “MyAwesomeGame”, its namespace will be “MyAwesomeGame”. The problem you’ll have is if you copy/paste code from my code samples, it expects the namespace to be “SuperAdventure”.
Fortunately, there is a simple way to make the program work.
Open your solution in Visual Studio.
Right-click on your UI project name (in Solution Explorer) and select “Properties”.
Click on “Application” (on the left-side menu).
Change the “Default namespace” value to “SuperAdventure”.
Now you can copy and paste the code from the lessons, and not have problems due to the namespaces not matching.