This is the readme for my commandline dungeon crawler game.
Results: 90/100
Code explanation video --> here
I have compiled the project so that it can be executed without any issues 😊.
- Type cd .\bin\Release\netcore3.1 then type Crawler.exe.
-
Type the same then type .\Crawler.exe.
-
Or go to that folder and execute the .exe file.
-
Load the map with either
"load Simple.map"
or"load Advanced.map"
command. -
Start the game by typing
"play"
.
First information: You are a character and have to escape dungeons where there is gold and monsters! Play the levels to escape!
Aim: This is a Dungeon Crawler made for the Command Line/ Powershell. Move the character, represented by an '@', starting on a 'S', by using the WASD keys and make your move around the map without crashing into walls '#' and battling with Monsters! 'M' by using the SPACEBAR key and picking up pieces of gold 'G' by pressing E key.
Key | Action |
---|---|
W | Move Up |
S | Move Down |
A | Move Left |
D | Move Right |
E | Pickup Gold |
"Spacebar" | Attack Monsters |
This project used a various amount of techniques:
- Reading files.
- Jagged arrays.
- Switches.
- Various C# techniques.
- C# Console Application on Visual Studio 2019.
- Maze Game Coding Video for ideas: Video on Youtube
- Linkedin's C# Essentials Playlist: Linkedin Playlist on C#
- W3Schools C# Section: W3Schools C#
Play screen after map loaded
Map Selection Screen.
Gameplay
- 08/01/2021 - Fixed code so it passes all tests in Powershell and Visual Studio and changed the UI to look more appealing.
- 11/01/2021 - Fixed loading bug with the advanced map under new execution phase and loading it in after typing 'play' and polished the reset of variable on the replay feature.
- 12/01/2021 - Fixed bugs that messed with tests, although gold pickup doesn't work if you're on it, only works if you're next to it and updated user interface.
- 13/01/2021 - Fixed attack action where .Trim() would remove the ' ' and then replace it with no empty space so it wouldn't register attacking the monster.
- 14/01/2021 - For now if you move over the 'G' it will automatically increment gold counter but pickup stills works if next to the gold and pressing E, also ammended comments.