Car Race Game

Car Race Game - Source Code and UI

This is a simple C++ program to make a car race game. It uses object oriented approach to generate different objects in the game such as using Car, Obstacle and Timer classes.

When running, this car race game draws objects on screen by using Console Graphics Mode. It used built in function initgraph() to initialize the graphics drivers and custom draw() method of Car class to draw car on screen. Most of the drawing methods are used from <graphics.h> library such as setcolor(), setfillstyle(), rectangle(), line(), and outtextxy() to draw text.

How to play the car race game?

You have to reach the finish line before the time goes out, use a scat-pack to speed up. There are many hurdles in your way so you have to move the car left or right by using the arrow keys.

Game Source Code

  Car Race Game (28.6 KiB, 18,169 hits)

Download Turbo C++ For Windows using the this link.

If you are looking for the Best Games for Free to play then follow this link.

 

M. Saqib: Saqib is Master-level Senior Software Engineer with over 14 years of experience in designing and developing large-scale software and web applications. He has more than eight years experience of leading software development teams. Saqib provides consultancy to develop software systems and web services for Fortune 500 companies. He has hands-on experience in C/C++ Java, JavaScript, PHP and .NET Technologies. Saqib owns and write contents on mycplus.com since 2004.
Related Post