/py_horse_racing

A simple PyGame based game of horse racing

Primary LanguagePythonMIT LicenseMIT

Horse Racing Game

Introduction

Welcome to Horse Racing, a simple Pygame-based game where you control a horse rider through a scrolling environment. In this game, you'll experience the thrill of horse racing as you navigate your way through the track.

Screenshot

PyGame Tutorial

In addition, this game serves as a tutorial for learning Pygame and game development principles. This tutorial is divided into 7 lessons:

Gameplay

  • RIGHT Arrow Key: Increase speed and run faster.
  • LEFT Arrow Key: Slow down the horse.
  • UP Arrow Key: Jump to avoid coming foxes which slow you down.
  • ESC Key: Quit the game.

Requirements

How to Run

  1. Clone this repository to your local machine and go to the project folder
  2. Install Python 3.12 if you haven't already.
  3. Create a Virtual Environment by running python3 -m venv .venv
  4. Activate the Virtual Environment by running source .venv/bin/activate
  5. Install Pygame by running pip install pygame.
  6. Run the game by executing python horse_racing_game.py.

Credits

Enjoy the game! Feel free to share your feedback and suggestions.