The Architect
Let’s get started with Murder’s Architect system.
Build and run
Now, let’s fire up the Architect and see what this game engine looks like! Pick either Option A or Option B below.
Option A: To run the Architect with Visual Studio:
-
Open the HelloMurder.sln solution.
-
Along the top bar you will see the Debug and Any CPU dropdown menus. To the right of Any CPU you will see a dropdown box for selecting the Startup Project.
Click the Startup Project dropdown box and select HelloMurder.Editor.
-
Press F5, or the green arrow next to HelloMurder.Editor.
-
After compilation, you should then see the editor window pop up.
Option B: To run the Architect from the command line:
-
Navigate to the folder we created during the clone process, e.g. myhellomurder:
cd myhellomurder
-
Navigate into the src/HelloMurder.Editor folder:
cd src/HelloMurder.Editor
-
Type the dotnet build command:
dotnet build
-
If everything was built without errors, type dotnet run:
dotnet run
Asset editors
The Architect window, HelloMurder.Editor, should now appear:
The Assets tab contains a treeview of the Asset folders in the game. Clicking a folder will expand or collapse the folder’s contents.
The project starts with the following asset folders:
- Features - Collections of Systems
- Fonts - Fonts
- Generated - Assets generated as part of an Atlas
- Localization - Assets that will be localized for the end-user
- Prefabs - Entities re-used across the game
- Story - Assets pertaining to the “story”, including character graphics and dialogues
- Tilesets - Tileset assets used in World creation
- World - The game “levels” incorporating Features, and Entities
The project also contains two unique assets:
- Editor Settings - Settings to customize the Architect Editor
- Game Profile - Settings to customize the Game
Play
Now that we’ve seen the Architect, let’s get to the game itself:
- Press F5 or select Play to start the game. The game will start in the “Main Menu” world, as specified in the Game Profile.
- Select the New Game option by pressing Space, Enter, or a gamepad button. Gameplay will branch to the “Hello World” world.
- There’s a little yellow guy and a level. Seems like everything’s working – but there’s no way to make the little yellow guy move. There’s not much to do now, so press F5 to return to the Architect.
One step at a time.
Next steps
Next, we’ll leave the Architect behind and start adding code to make our player movable.