CGR Project
CGR Project
Micro-Project in:
Submitted By:
Rushikesh Matre - 17
Raj Jamnik - 13
Moezz Rajjan - 09
Submitted To:
2018-2019
Sector-7,Nerul,Navi Mumbai-400706.
D Y PATIL SCHOOL OF POLYTECHNIC
Sector – 7, Nerul, Navi Mumbai-400 706
CERTIFICATE
This is to certify that
________________________________________________________
_________________________________________________ of the
Institute.
Date ______________
I take this opportunity to express deep sense of gratitude and sincere thanks
for the invaluable guidance that I have received at the worthy hands of
I express my sincere thanks to our H.O.D. Prof. Umesh Patil for permitting me
to do this
Project and also to the entire staff member who have helped me directly or
indirectly.
_______________________
CO 3(I)
DYPP, Nerul.
PROGRAM OF COMPUTER ENGINEERING
Dr. D.Y Patil, School of Polytechnic, Vidyanagar,
Sec-7, Nerul, Navi Mumbai 400 706.
INDEX
Report(Part A)
Sr No. Topic Page No.
Report (Part B)
10 Conclusion
11 References
12 Weekly Report
13 Evaluation Sheet
AIM, DESCRIPTION AND OBJECTIVE
Aim:
T-Rex Game
Description:
A dinosaur is running in output. Some obstacles in appearing on the Road
Dinosaur is jumping on the obstacles and getting it clear.
Objectives:
The dinosaur need to jump on the obstacles like cacti, getting the highest score
you can in order show off and brag to your friends.
ALGORITHM OF THE PROGRAM
FLOWCHART OF THE PROGRAM
INTRODUCTION OF COMPUTER GRAPHICS
Computer graphics are pictures and films created using computers. Usually,
the term refers to computer-generated image data created with help of
specialized graphical hardware and software. Some topics in computer
graphics include user interface design, sprite graphics, vector graphics, 3D
modeling, shades, GPU design, implicit surface visualization with ray tracing,
and computer vision, among others. Computer graphics is made up of number
of pixels. Pixel is the smallest graphical picture or unit represented on the
computer screen.
APPLICATION OF COMPUTER GRAPHICS
Computer graphics are very useful. Today almost every computer can do some
graphics, and people have even come to expect to control their computer
through icons and pictures rather than just by typing. Computer-generated
imagery is used for movie making, video game and computer program
development, scientific modeling, and design for catalogs and other
commercial art. Some people even make computer graphics as art. We can
classify applications of computer graphics into four main areas:
Design
Simulation
Display of information
User interfaces
According to these four areas there are several types of applications which are
used in today’s world. These are,
ADVANTAGES AND DISADVANTAGES OF COMPUTER
GRAPHICS
#include<stdio.h>
#include<dos.h>
#include<stdlib.h>
#include<conio.h>
void getup()
{
textcolor(BLACK);
textbackground(15);
clrscr();
window(10,2,70,3);
cprintf("Press X to Exit, Press Space to Jump");
window(62,2,80,3);
cprintf("SCORE : ");
window(1,25,80,25);
for(int x=0;x<79;x++)
cprintf("ß");
textcolor(0);
}
int t,speed=40;
void ds(int jump=0)
{
static int a=1;
if(jump==0)
t=0;
else if(jump==2)
t--;
else t++;
window(2,15-t,18,25);
cprintf(" ");
cprintf(" ÜÛßÛÛÛÛÜ");
cprintf(" ÛÛÛÛÛÛÛÛ");
cprintf(" ÛÛÛÛÛßßß");
cprintf(" Û ÜÛÛÛÛßßß ");
cprintf(" ÛÛÜ ÜÛÛÛÛÛÛÜÜÜ ");
cprintf(" ßÛÛÛÛÛÛÛÛÛÛÛ ß ");
cprintf(" ßÛÛÛÛÛÛÛß ");
if(jump==1 || jump==2){
cprintf(" ÛÛß ßÛ ");
cprintf(" ÛÜ ÛÜ ");
}else if(a==1)
{
cprintf(" ßÛÛß ßßß ");
cprintf(" ÛÜ ");
a=2;
}
else if(a==2)
{
cprintf(" ßÛÜ ßÛ ");
cprintf(" ÛÜ ");
a=1;
}
cprintf(" ");
delay(speed);
}
void obj()
{
static int x=0,scr=0;
if(x==56 && t<4)
{
scr=0;
speed=40;
window(36,8,60,9);
cprintf("Game Over");
getch();
window(36,8,60,9);
cprintf(" ");
}
window(74-x,20,80-x,25);
cprintf("Û Û ");
cprintf("Û Û ");
cprintf("ÛÜÜÜÜÛ ");
cprintf(" Û ");
cprintf(" Û " );
x++;
if(x==73)
{
x=0;
scr++;
window(70,2,80,3);
cprintf(" ");
window(70,2,80,3);
cprintf("%d",scr);
if(speed>20)
speed--;
}
}
void main()
{
char ch;
int i;
getup();
while(1){
while(!kbhit())
{
ds();
obj();
}
ch=getch();
if(ch==' ')
{
for(i=0;i<10;i++)
{
ds(1);
obj();
}
for(i=0;i<10;i++)
{
ds(2);
obj();
}
}
else if (ch=='x')
return;
}
}
OUTPUT OF THE PROGRAM:
CONCLUSION
Several approaches were used to achieve the AI that can play Dinosaur Game.
For the feature extraction based algorithm, computer version methods can
recognize the T-Rex and obstacles from the images. Carefully designed feature
extraction algorithms can successfully abstract the state and AI built upon
them can improve its performance significantly compared with naive baseline.
REFERENCES
https://9to5google.com/2015/06/18/chromes-easter-egg-t-rex-
game-just-got-harder-introduction-pterodactyls/
http://cs229.stanford.edu/proj2016/report/KeZhaoWei-
AIForChromeOfflineDinosaurGame-report.pdf
https://dev.to/arnellebalane/playing-the-t-rex-runner-game-
inside-a-picture-in-picture-window-kpc
Weekly Report
Name of responsible
Sr. Planned Planned team member
No Details of activity Start Finish
date Date
(A) Process and Product Assessment (Convert above total marks out of 6 Marks )
1 Relevance to the
Course
2 Literature
Survey/
Information
Collection
3 Project Proposal
4 Completion of
the target as per
project proposal
5 Analysis of Data
And
representation
6 Quality of
prototype/Model
(B) Individual Presentation /Viva (Convert above total marks out of 4 marks )
7 Report
Preparation
8 Presentation
Micro Project Evaluation Sheet (PART-B)
…………………………………………………………………………………………………
………………………………………………………………………………………………...
………………………………………………………………………………………………..
………………………………………………………………………………………………...
………………………………………………………………………………………………..
Signature :