Yukti CGR Mic

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 17

Teacher Evaluation Sheet

Name of Student: Nahar Yukti Nahar


Enrolment No: 2200790221
Name of Program: Computer Technology Semester:- III
Course Title: Computer Graphics (CGR) Code: -22318
Title of the Micro Project: Car parking game/simulator

Course Outcomes Achieved:-


[ Note: Mention only the Achieved outcomes form listed below]
CO-a Manipulate visual and geometric information of images.
CO-b Implement standard algorithms to draw various graphics objects.
CO-c Develop programs for 2-D and 3-D Transformations.
CO-d Use projections to visualize objects on view plane.
CO-e Implement various clipping algorithms.
CO-f Develop programs to create curves using algorithms

Evaluation as per Suggested Rubric for Assessment of Micro-Project:

Sr.
Characteristic to be Poor Average Good Excellent
No.
assessed (Marks 1-3) (Marks 4-5) (Marks 6 - 8) (Marks 9-10)
(A) Process and Product Assesssment (Convert above total marks out of 6 marks)
1 Relevance to the Course
Literature Survey /
2
Information Collection
Completion of the Target as
3
per project proposal
Analysis of data and
4
representation
5 Quality of Prototype / Model
6 Report Preparation
(B) Individual Presentation / Viva (Convert above total marks out of 4 marks)
8 Presentation
9 Viva
Micro – Project Evaluation Sheet:
Process Assessment Product Assessment
Part Project Part Individual Total
A – project Methodology B – Project Presentation / Marks 10
Name of Student Proposal (2 marks) Report / Working Viva (4 marks)
(2 marks) Model(2 marks)

(Surname first)

Comments / Suggestions about team work / leadership / inter – personal communication (if any)

Any Other Comment

Name and designation of the faculty Member: Ms. S.S.Shinde Signature


MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION

SNJB's Shri Hiralal Hastimal (Jain Brothers,


Jalgaon) Polytechnic, Chandwad
(All AICTE Approved Programs NBA Accredited)

MICRO PROJECT
Academic year 2023-24

TITLE OF PROJECT
Car Parking game/simulator

Program: Computer Technology Program Code: CM

Course: Computer Graphics Course code: 22318


MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

Sr.No. Name of Student Roll No Enrollment No Seat No


1. 65 2200790221 379291

CERTIFICATE
This is to certify 1) Nahar Yukti Paresh

of 3rd Semester of Diploma in Computer Technology of Institute, SNJB's Shri Hiralal


Hastimal (Jain Brothers, Jalgaon) Polytechnic, Chandwad (Code: 0079) has completed
the Micro-Project satisfactorily in Subject Computer Graphics (CGR) (22318) for the
academic year 2023- 2024 as prescribed in the curriculum.

Place: CHANDWAD

Date: / /2023

Subject Teacher HOD Principal


(Ms. S. S. Shinde) (Mr. P. R. Sali) (Dr. V. A. Wankhede)
INDEX

SR_NO. CONTENT PAGE NO.

Part A

1.0 Brief Introduction

2.0 Aim of Micro Project

3.0 Action Plan

4.0 Resources Required

Part B

1.0 Brief Description

2.0 Aim of Micro Project

3.0 Course Outcome Integrated

4.0 Actual Procedure Followed

5.0 Actual Resource Used

6.0 Outputs of the Micro-projects

7.0 Skill Developed

8.0 Applications of this Microproject


PART A-Plan

Title of micro-project: car parking game/simulator

1.0 Aim/Benefits of the Micro-Project-

1. To understand the performance of programs using c language


2. To learn graphics mode and learn to draw various shapes in it using different c
programs.
3. To develop 2D mini car parking game/simulation.
4. Main aim of this Micro-project is to illustrate a 2D car animation using loops and
C programs, there is a user interaction in this program .We have used input devices
like keyboard to interact with the program.

2.0 Course Outcomes Addressed-

CO-a Manipulate visual and geometric information of images.


CO-b Implement standard algorithms to draw various graphics objects.
CO-c Develop programs for 2-D and 3-D Transformations.
CO-d Use projections to visualize objects on view plane.
CO-e Implement various clipping algorithms.

3.0 Proposed Methodology-

This micro project contains the c program code to develop mini car parking
game/simulation .In Computer Graphics, we use graphic.h which provide direct
functions to draw different coordinate shapes (like circle, rectangle, etc).By using
these functions we can draw objects like car, hut, trees, etc. In this program we will
draw a road, parking area, etc.
Functions used in the Program
delay(n): This function is used for holding the program output for a small period of
time since processing is very fast so use it to see the result.
setcolor(n): A function from graphics.h header files which set the color of the pointer
(cursor). There are some predefined colors in computer graphics. Here n is color
number.
line(x1, y1, x2, y2): A function from graphics.h header file which draw a line with
(x1, y1) as first coordinate of line and (x2, y2) as second coordinate of the line.
circle(x, y, r): A function from graphics.h header files which draw a circle with center
(x, y) and radius r.
4.0 Action Plan-

Sr no. Details of activity Planned Start Planned Finish


Date Date
1. Finalization of topic 31/07/2023 07/08/2023

2. Preparation of Abstract 09/08/2023 01/09/2023

3. Collection of data 02/09/2023 06/09/2023

4. Preparation of concept 09/09/2023 23/09/2023

5. Seminar / Presentation 30/09/2023 11/10/2023

6. Submission of Micro Project 06/11/2023 06/11/2023

5.0 Resources Required:

Sr.No Name of Resource/Material Specification Quantity Remarks


1. Computer (Desktop/Laptop) i3,RAM 2GB 1
2. Microsoft office word 2010 1
3. Books
4. Websites
5. Softwares TurboC++ 1
PART B-Plan
Title of micro-project: Car parking game/simulator

1.0 Brief Description:


This car parking game involves creating a simple 2d or 3d game where player controls a car
and has to navigate it through a parking lot to successfully park in designated spaces.

2.0 Aims/Benefits of Micro Project:


1. To learn graphics mode and learn to draw various shapes in it using different c
programs.
2. To develop 2D mini car parking game/simulation.
3. Main aim of this Micro-project is to illustrate a 2D car animation using loops and
C programs, there is a user interaction in this program .We have used input devices
like keyboard to interact with the program.

3.0 Course Outcomes Achieved:

CO-a Manipulate visual and geometric information of images.


CO-b Implement standard algorithms to draw various graphics objects.
CO-c Develop programs for 2-D and 3-D Transformations.
CO-d Use projections to visualize objects on view plane.
CO-e Implement various clipping algorithms.

4.0 Actual Methodology/Procedure Followed:


To develop this game, we have gone through the following points –
Use less code lines as possible.Save and Reduce memory and processing burden.The system
is developed using Turbo C/C++ and concepts of Computer Graphics,Also the use of C
programs is done for switch case is done for the grid and basic UI ofthe System. The UI is
user friendly and easy to use. Specific points are undertakenbefore developing the System.
The Following Code is implemented for The Car Parkingl:
Game/Simulator System [CODE]

#include<stdio.h>

#include<dos.h>

#include<graphics.h>

#include<conio.h>

int i,x=5,y=250; //Declaring the values of the reference points globally

int gd=DETECT, gm;

void draw_car()

initgraph(&gd,&gm," ");

//Drawing Road

setcolor(RED);

circle(400,200,10);

line(400,200,400,170);

line(400,200,450,170);

rectangle(330,60,430,130); //red parking area

rectangle(480,60,590,130); //red parking area

rectangle(480,160,590,230); //red parking area

setcolor(GREEN);

rectangle(480,360,590,430);

line(0,200,300,200);

line(0,300,300,300);

line(300,200,300,50);

line(300,300,300,450);

rectangle(300,50,650,46);
rectangle(300,450,650,456);

setcolor(YELLOW);

setfillstyle(SOLID_FILL,YELLOW);

rectangle(0,191,295,195);

floodfill(1,193,YELLOW);

rectangle(0,307,295,311);

floodfill(1,308,YELLOW);

line(0,305,295,305);

line(295,195,295,50);

line(295,305,295,450);

line(100,250,150,250);

line(200,250,250,250);

line(300,250,350,250);

setcolor(WHITE);

circle(x,y,5);

rectangle(x+5,y-15,x+20,y+15);

ellipse(x+13,y-21,0,360,10,5);

ellipse(x+13,y+21,0,360,9,5);

ellipse(x+80,y+12,0,360,8,4);

ellipse(x+80,y-12,0,360,8,4);

line(x+20,y-15,x+80,y-8);

line(x+20,y+15,x+80,y+8);

line(x+80,y-8,x+80,y+8);

setfillstyle(SOLID_FILL,RED);

floodfill(x+22,y+13,WHITE);
setfillstyle(SOLID_FILL,CYAN);

floodfill(x+7,y+13,WHITE);

setcolor(RED);

if(y<220)

lose_statement();

else if((x>350)&&(y<220))

lose_statement();

setcolor(GREEN);

if((x>480)&&(y>360))

win_state();

getch();

win_state()

setcolor(GREEN);

outtextxy(100,100,"Excellent work!!!!");

delay(150);

outtextxy(100,120,"Excellent work!!!!");

delay(150);
outtextxy(100,130,"Excellent work!!!!");

delay(1000);

outtextxy(100,150,"You Win!!!!");

delay(3000);

exit(0);

lose_statement()

outtextxy(100,100,"Wrong Way!!!!");

delay(1500);

outtextxy(100,130,"Game Over!!!!");

delay(2500);

exit(0);

void main()

int a,ch,input;

delay(500);

printf("\n\n\n\t\t************************************************");

printf("\n\t\t******* Welcome to car parking Simulator *******");

printf("\n\t\t************************************************");

delay(2500);

clrscr();

printf("\n\n\n\t\t\tPark Car in green area....");


delay(2500);

clrscr();

delay(100);

printf("\n\tPress Up Down Left Right Arrow keys to control car \n\tPress

Backspace to Exit");

delay(100);

printf("\n\n\n\tPark the Car in 11 moves");

delay(2500);

clrscr();

printf("\nPress any key to start");

input=getch();

initgraph(&gd,&gm," ");

draw_car();

/*

77 Right Arrow Key

72 up Arrow Key

75 left Arrow Key

80 down Arrow Key

8 Backspacce

*/

do

ch=getch();

switch(ch)

case 72 : y=y-30;

draw_car();
break;

case 80 : y=y+50;

draw_car();

break;

case 75 : x=x-50;

draw_car();

break;

case 77 : x=x+60;

draw_car();

break;

case 8 : exit(0);

break;

default :

printf("\n\tPress correct Key");

}while(ch=8);

printf("\n\n\t\tGameover");

}
5.0 Actual Resources Used:

Sr.No Name of Resource/Material Specification Quantity Remarks


1. Computer (Desktop/Laptop) i3,RAM 2GB 1
2. Microsoft office word 2010 1
3. Books
4. Websites
5. Softwares TurboC++ 1
7.0 Skill Developed:
Understanding the benefits of Graphics Mode in a programming language can be beneficial
for a coder and organization are fulfilled in the developed Micro-project, the common and
basic aim of a this project is understanding the basic concepts of computer graphics and are
taken in view and are implemented in the system for Micro-project.
The Skills developed in this micro-project are team work, HR and knowledge regarding
graphics mode and applications of them.
The use of programming and graphics is done for the development of the game.

8.0 Applications of this Microproject:


The Skills developed in this micro project can be used extensively in many ways like
creating shapes and also using various components used here, can be used at a time in
many ways.
Various uses of the graphics mode are used according to the purpose of need and the
working of code.
The game developed in this project can be played by small kids , this is the simplicity
of the project.
This is the small game that tests the iq skills of the small kids for reading speed and
controlling, concentration, etc.

You might also like