Skip to content

simonkoeck/dino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dino

Jump 'n' Run in your terminal

Preview

About

Dino is inspired by Chrome Dino Game. But instead of a dino the main player is a person (mainly due to the lack of creativity and also copyright issues :D).

The controls are rather simple:

  • space to jump
  • esc to exit

Prerequisites

Setup

  1. Clone the repository
git clone https://github.com/simonkoeck/dino.git && cd dino
  1. Restore/install packages
dotnet restore
  1. Run the game
dotnet run

Building

dotnet build --configuration Release

After running this command, an executable should be built to bin/Release/.

See https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-build for more details.

Supported Platforms

Dino is available for

  • Windows
  • Linux
  • Mac

As long as your platform is supported by .NET, you can build dino.

Behind the scenes

Dino's whole game is rendered inside a console (System.Console Namespace). Due to performance issues, only the objects which are updated will be rerendered. Rendering is done using Console.SetCursorPosition function.

The game difficulty is based on the score and decreases the obstacle instantiation timeout, which makes the game faster and harder.

Contributing

Every contribution is welcome! Please commit any pull requests against the main branch.

About

Jump 'n' Run in your terminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages