Professional Documents
Culture Documents
A STUDY ON
Certificate
This is to certify that ,
Sr. Enrollment Exam Seat
Roll No Full name of Student
No No No
1 30 Chaitali Ankush Ingale 2100590077
2 34 Tanmay Sanjay Jirekar 2100590081
3 56 Mirza Ibrahim 2100590106
4 60 Rohit Narendra More 2100590110
5 61 Soham Rajendra More 2100590111
Place: Dhule
Date : / / 2022
Seal of
Institute
Part A : Project Proposal
1.0 Introduction:
• Graphics provides one of the most natural means of communicating with a computer,
since our highly developed 2D Or 3D pattern-recognition abilities allow us to
perceive and process pictorial data rapidly.
• Computers have become a powerful medium for the rapid and economical
Production of pictures.
• We can make pictures of not only the real world objects but also of abstract
Objects such as mathematical surfaces on 4D and of data that have no
inherent geometry
• The aim of this project is to create an interesting and creative game using tools
like OpenGL and C++ (g++ compiler). Apart from the gameplay, this project
also deals with providing a beautiful graphical interface between the user
and the system.
• A system is put into place to maintain the score of the user. This will enable
the user to keep track of the high scores of the player.
The theory, practical experiences and relevant soft skills associated with this course are to be taught
and implemented, so that the student demonstrates the following industry oriented COs associated with
the above mentioned competency:
a. Manipulate visual and geometric information of images.
b. Implement standard algorithms to draw various graphics objects using C program.
c. Develop programs for 2-D and 3-D Transformations.
d. Use projections to visualize objects on view plane.
e. Implement various clipping algorithms.
f. Develop programs to create curves using algorithms.
The aim of this project is to create an interesting and creative game using tools
like OpenGL and C++ (g++ compiler). Apart from the gameplay, this project
also deals with providing a beautiful graphical interface between the user
and the system
A. Algorithm :
#Algorithm for the Source Code :-
Step 1 : start
Step 2: Declare variables gd=DETECT, gd,gm.
Step 3 : Read values gd ,gm ,i.
Step 4 :Display plane body.
setcolor(10)
rectangle(150+i,100,170+i,130)
ellipse(150+i,115,90,270,127,15)
ellipse(116+i,104,10,170,24,12)
B. Flow Chart :
# Flow Chart for the Source Code :-
C. Source Code :
#include "header.h"
SDL_Rect cor={24,25};
int quit=no;
SDL_Event event;
extern int quit;
SDL_BlitSurface(bg,NULL,screen,NULL);
// build_map(screen);
gameplay(screen);
return 0;
}
if (legibility(comp,&direction)==yes)
{
moveit(direction); // it just changes the co-ordinates.....doesnt animate sprites
switch(direction)
{
case SDLK_UP:
SDL_BlitSurface(one,&char_up,screen,&location);
SDL_Flip(screen);
break;
case SDLK_DOWN:
SDL_BlitSurface(one,&char_down,screen,&location);
SDL_Flip(screen);
break;
case SDLK_RIGHT:
SDL_BlitSurface(one,&char_right,screen,&location);
SDL_Flip(screen);
break;
case SDLK_LEFT:
SDL_BlitSurface(one,&char_left,screen,&location);
SDL_Flip(screen);
break;
}
SDL_Delay(75);
SDL_BlitSurface(one,&char_neutral,screen,&location);
SDL_Flip(screen);
SDL_Delay(75);
SDL_BlitSurface(two,NULL,screen,&location);
SDL_Flip(screen);
}
else
{
//SDL_Delay(1000);
SDL_BlitSurface(one,&char_neutral,screen,&location);
SDL_Flip(screen);
}
SDL_FreeSurface(one);
SDL_FreeSurface(two);
createmap(screen,comp);
while (quit==no)
{
while(SDL_PollEvent(&event))
{
if(event.type==SDL_QUIT) quit=yes;
if (event.type==SDL_KEYDOWN) key_press=event.key.keysym.sym;
}
pacman_sprites(cor,key_press,screen,comp);
}
}