Coders Packet

Dino Game in C++

By Pavithra P

This C++ program is used to play the game called “Dino Game”, where the score is calculated when dinosaur jumps on hurdle and the game is over when the dinosaur directly hits the hurdle.

void scoreboard ()- This function is used to print the road and score board.

textcolor(8)- is used to print the text in grey color.

void dis ()- It is the function which is used to print the running and jumping of dinosaur.

void obj()- This function is used to print the hurdle.

if condition:

If space(“ “) is entered,dinosaur jumps.

when dinosaur lands on hurdle by jumping the score is increased by 1.

The game is over if dinosaur directly hits the hurdle.

else condition

Once the game is over you can exit the came by pressing ‘n’.

Download project

Reviews Report

Submitted by Pavithra P (Pavithra11)

Download packets of source code on Coders Packet