He who is not contented with what he has, would not be contented with what he would like to have.
- Socrates -
Greed is played according to the following rules.
Gems (*) and rocks (#) randomly appear and fall from the top of the screen. The player (#) can move left or right along the bottom of the screen. If the player touches a gem they earn a point. If the player touches a rock they lose a point. Gems and rocks are removed when the player touches them. The game continues until the player closes the window.
Make sure you have dotnet 6.0 or newer installed on your machine. Open a terminal and browse to the project's root folder. Start the program by running the following commands.
dotnet build
dotnet run
You can also run the program from an IDE like Visual Studio Code. Start your IDE and open the project folder. Select "Run and Debug" on the Activity Bar. Next, select the project you'd like to run from the drop down list at the top of the Side Bar. Lastly, click the green arrow or "start debugging" button.
The project files and folders are organized as follows:
root (project root folder)
+-- Game (source code folder)
+-- Program.cs (program entry point)
+-- README.md (general info)
+-- Unit04.csproj (dotnet project file)
- dotnet 6.0
- raylib-cs 3.7.0.1
Kevin Allred [email protected]