Skip to content

A racing game made using python's pygame library. Inspired by sentdex.

Notifications You must be signed in to change notification settings

Damercy/Begin_Race

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Hello! This is a beginner project game made using Python and pygame library. It was heavily inspired by Sentdex. I hope you like what you see here and enjoy THE GAME!

Warning: The following is a work in progress and a beginner trying to understand stuff.

Here you go!

THE GAME

Features

THE GAME features the following functionalities (and with many more to come, of course!):

  • A counter to count no. of objects dodged
  • An incrementally increasing level as you progress through the game
  • Background sounds including crash sound & gameplay music
  • Button functions
  • Pause menu to resume or quit the game (PRESS 'p' to PAUSE THE GAME)
  • Most importantly, this game features my dog POLO starring as the icon! (Seriously, what more do you want now?)

The MENU SCREEN & PAUSE SCREEN was also made later so that the game doesn't just simply..Begin. They serve as a UI for the user.

MENU SCREEN

PAUSE SCREEN

The CRASHED SCREEN was also developed with text being displayed as "You Crashed" when the car object hits the blue block(s) or even the side of the 800 x 600 screen.
A sound is also generated during the crash which can be heard when playing the game.

CRASH SCREEN

HOW TO PLAY

The objective of the game is simple ---- To AVOID getting crashed!

The Car only moves sideways, so to move left , press the left arrow () on your keyboard and similarly, press right arrow () to move right.

Also avoid hitting the edges of the screen (window) to avoid crashing.

Keep on playing and dodging objects. For every 10 objects you surpass , the speed of the car automatically increases thereby increasing the difficulty.

Press 'p' to pause the game.

HOW TO CLONE AND START PLAYING

Simply clone this repository and in the local copy in your machine , open the folder that corresponds to the directory 'THE GAME'. Or in other words, move to this location : '[Your download path here]\Begin_Race\The GAME

Then click the game.exe file to start the game.

For modifications to the game files including changing FPS from the current 60FPS,or to add your own sound files/icons/image sprites or any change whatsoever, open the file Game.py in the downloaded repo and modify this .py file as required.

Additional Thoughts

The project is incomplete in the sense that I plan on to make the following modifications in the near future:-

  • Add background
  • Add complex crash functionality like fires & smoke
  • Add better sounds
  • Make it cool in ways I can imagine in the future!

Hope you like it!

THANK YOU!

About

A racing game made using python's pygame library. Inspired by sentdex.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages