Sei sulla pagina 1di 22

T-REX GAME

Micro-Project in:

Diploma III Semester

Computer Graphics (22318)

Submitted By:

Rushikesh Matre - 17

Raj Jamnik - 13

Moezz Rajjan - 09

Submitted To:

PROGRAM OF COMPUTER ENGNEERING

2018-2019

Dr. D.Y Patil, School of Polytechnic, Vidyanagar,

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

Mr. /Miss. / Mrs. __________________________________________

Class______________________________ Roll no. ______________

has completed the micro project work satisfactorily in the course of

________________________________________________________

as prescribed by the Maharashtra State Board of Technical Education

in the academic year 2017-2018 in the program of

_________________________________________________ of the

Institute.

Date ______________

Teacher__________ In charge Dep. __________Principal__________


ACKNOWLEDGEMENT

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.

I also express my thanks to my friends for their underlying support shown


during the
Preparation of this project.

_______________________

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.

1 Aim, Description and Objective

2 Algorithm of the Program

3 Flowchart of the Program

Report (Part B)

4 Introduction of Computer Graphics

6 Application of Computer Graphics

7 Advantages and Disadvantages of


Computer Graphics
8 ‘C’ Program code of the Project

9 Output of the Project

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

 Advantages of computer graphics:


 We can create our own creation by using CG(computer
graphics).
 Easy to understand

 Disadvantages of computer graphics:


 It is not easy to create effective CG(computer graphics).
 Lot of resources are involved in CG creation,it make's cost
very high,
 It take's more time to create.
‘C’ PROGRAM CODE OF THE PROJECT

#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

Searched and selected


1 topic for Rushikesh,Raj,Moeez.
micro-project
Took the topics for micro
2 project Rushikesh,Moeez.

Discussed the topic with


group members and
3 teachers Moeez,Raj.

Collected and gathered the


4 required Rushikesh,Moeez,Raj.
material for the micro-
project.
Confirming the material
5 with faculty Moeez,Raj.

Made the required changes


6 as Moeez,Rushikesh.
refered by teacher.
Planned the outline of
7 micro project Rushikesh,raj.

8 Working on micro project Rushikesh,Moeez.

Submission of the micro


9 project Raj,Moeez,Rushikesh.
Micro Project Evaluation Sheet (PART-A)

Name of Student: Enrollment No:

Name of Programme: Computer Engineering Semester: III


Course Title: CGR Code:22318
Title of the Micro Project: T-REX GAME
Course Outcomes Achieved
1. Manipulate visual and geometric information of images.
2. Implement standard algorithms to draw various graphics objects using C program.
3. Develop programs for 2-D and 3-D Transformations.
4. Use projections to visualize objects on view plane.

Evaluation as per Suggested Rubrics for Assessment of Micro Project

Sr. No Characteristics Poor Average Good Excellent


to be assessed (Marks 1-3) (Marks 4-5) (Marks 6-8) ((Marks 9-10)

(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)

Name of Student: Enrollment No:


Name of Programme: Computer Engineering Semester: III
Course Title: CGR Code: 22318
Title of the Micro Project: A MAN WITH FLYLING KITE

Comments/suggestions about team work/leadership/inter-personal communication (if


any)

…………………………………………………………………………………………………

………………………………………………………………………………………………...

………………………………………………………………………………………………..

Any other comments :


…………………………………………………………………………………………………

………………………………………………………………………………………………...

………………………………………………………………………………………………..

Process Assessment Product Assessment Total


Marks 10
Part A- Project Project Part-B Project Individual
Proposal Methodology Report/ Working Presentation / Viva
(2marks) (2marks) Model (2 marks) (4 marks)

Name and designation of Faculty Member :

Signature :

Potrebbero piacerti anche