Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 836 Bytes

File metadata and controls

37 lines (30 loc) · 836 Bytes

T-Rex

Chrome t-rex game in C++ and Python.

C++ Version

A console-based T-Rex game written in C++.

Features

  • Jumping logic with spacebar.
  • Score tracking.
  • Flicker-reduced rendering.

How to Play

Option 1: One-Click (Windows)

If you have cloned the repo, simply run:

.\run.bat

This script will automatically detect your environment (C++ or Python) and start the game.

Option 2: Download Ready-to-Play (No Setup)

  1. Go to the Actions tab of this GitHub repository.
  2. Click on the latest successful "Continuous Build" workflow run.
  3. Scroll down to Artifacts and download t-rex-windows-game.
  4. Extract and run t-rex.exe.

Option 3: Manual Build

g++ t-rex.cpp -o t-rex.exe
.\t-rex.exe

Logic

  • O: Dinosaur
  • X: Cactus
  • -: Ground
  • Space: Jump