/CSharp-Project-Create-a-mini-game

In correspondence with Create methods in C# console applications (Get started with C#, Part 5B)

Primary LanguageC#

Challenge-project-Create-methods-in-CSharp

Introduction

This project sourced from Microsoft Learn, equivalent to Create methods in C# console applications (Get started with C#, Part 5B)

Navigate to Microsoft Learn

This project is the challenge project, to create a mini game - really, a mini game.

How to play

With loading screen, the game will be initialized with the player character with a string of food somewhere on the screen.

User can use arrow keys to navigate in the screen to take the food. Diferent types of food will trigger player in different mode.

There are 3 types of food and 3 modes for player:

  • Normal/Initial mode - ('-') (food: @@@@@)
  • Hyper mode - (^-^) (food: $$$$$)
  • Sick mode - (X_X) (food: #####)

The game will be terminated wheneve you resize the screen or press Escape during the game.

Please enjoy this mini game :)

How to run the program in the local environment

This repository requires .NET runtime installed in the local environment to run it.

I have installed .NET in my computer

Please download the zip file of this repository or use git clone command with the URL to clone it to your drive. Go to the targeted folder, you can either run it in your terminal or open with your preferred IDE (for example Viscual Studio / Visual Studio Code). If you want to run it in the terminal, use dotnet run to build and run it. If you want to run it inside your preferred IDE, like Visual Studio, you can navigate yourself to debug in the top menu bar, and click start debugging.

I have not installed .NET in my computer

Please go to the link below which leads you back to Microsoft, follow the instructions and install .NET in your computer.

Install .NET on Windows, Linux, and macOS