by Adam Švestka
An infinite 2D vertical scrolling game. The player navigates upward over platforms, avoids or kills enemies and collects diamonds.
Based on the Diamond Hollow series of Flash games. Coded in C# using the MonoGame framework.
Tested with .NET 6
and .NET Core 3.1
-
Download a version of the source code from MFF GitLab
- You can either visit the link above and click on > zip to download the source code
- Or you can clone the repository using a command:
git clone [email protected]:teaching/nprg031/2022-summer/student-svestka1.git
-
Install .NET
Make sure you have
.NET 6
and.NET Core 3.1
installed.You can download them here: https://dotnet.microsoft.com/en-us/download
-
Run the application
cd student-svestka1 dotnet run
You might have to run this twice; .NET has to build the game resources along with the project and seems to not do this in the correct order sometimes.
You can move the player left/right using the A/D keys and jump with Space. The player aims in the direction of your mouse and you can fire by left-clicking. Holding down the left mouse button will make the player shoot continuously.
Anything else that moves is an enemy, so shoot them or avoid them. Your objective is to collect as many diamonds as possible, there is no end to the game. For more information on enemies and special items, you can collect to aid you, see the HOW TO PLAY.
Requires DocFX. You can install it with NuGet:
nuget install docfx.console
The executable will be under docfx.console/tools/
(requires mono).
Then run the following commands to build and serve the docs:
cd Docs
docfx docfx.json --serve
Open http://localhost:8080
in your browser to view the docs.
A version of the docs is hosted at https://adamsvestka.github.io/Diamond-Hollow/