Home

Awesome

Console T-Rex Game

Dino

This is a console-based game inspired by the Google Chrome T-Rex dinosaur game, developed in C. The game provides a minimalistic experience with keyboard controls and a dynamic console interface.

Table of Contents


Features

Requirements

Make sure you have a C compiler installed, like gcc or clang.

Installation

Arch Linux AUR Pakage installation :

yay -S trex-c

Installation from source files

  1. Clone the repository:

    git clone https://github.com/StiveMan1/T-RexC.git
    cd T-RexC
    
  2. Compile the game:

    gcc trex-c.c -O3 -lm -o trex-c
    
  3. Run the game:

    ./trex-c
    

Usage

The game runs directly in the terminal. Use the following keys to control your character:

Gameplay

Avoid obstacles (represented by enemies on the screen) to keep your character alive. The score increases as you survive longer, with a higher score indicating better performance. Watch out for the changing day and night cycle, and use the jump function to avoid enemies and ground obstacles.

Configuration

Some gameplay and display elements can be configured:

Code Structure

Contributing

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Commit your changes (git commit -m 'Add new feature').
  4. Push to the branch (git push origin feature-branch).
  5. Open a Pull Request.

All contributions are welcome! Please follow the coding style found in the existing code and add comments where necessary.

License

This project is licensed under the GNU License. See the LICENSE file for details.