Galgotias College of Engineering & Technology

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 15

Galgotias College of Engineering

& Technology

Session: 2019-20

A MINI PROJECT REPORT ON “FRUIT COLLECT”

BACHELOR OF ENGINEERING
(DEPARTMENT OF COMPUTER SCIENCE AND
ENGINEERING)

SUBMITTED TO:- SUBMITTED BY:-


Dr. Inderpreet Kaur Vivek Kr Chaubey(1809710127)

Satpal Yadav (1809710098)

Sumit Kr Singh(1809710114)

Shivam (1809710100)
Acknowledgement

It gives us a great sense of pleasure to present the report on the Project


undertaken during B.tech second year. We are special debt of gratitude
to Dr. Inderpreet Kaur , Department of Computer Science &
Engineering, GCET, Greater Noida for her support and guidance
throughout the course of our work. Her sincerely, thoroughness and
perseverance have been a constant source of inspiration for us. It is only
her cognizant effort that our endeavours have seen light of day.
We also take the opportunity to acknowledge the contribution of
Dr.Inderpreet Kaur, Faculty member of Computer Science &
Engineering, GCET , for her full support and assistance during the
development of the project, we also do not like to miss the opportunity
to acknowledge the contribution of all faculty members of the
department for their kind assistance and cooperation during the
development of our project. Last but not the least, we acknowledge our
friends for their contribution in the completion of the project.
Introduction

Enjoying the best Fruit Catcher game falling fruit from sky into a basket.

A fruit catcher catch game is a best fun game to play for child and adult.

. In Fruit Catcher catch game when fruits are falling on the sky, slide your device
to move the basket and catch them. Alternatively you can touch at the point, where
you want the basket to move basket, if catch the fruit then get some point, if catch
mango then get best point to increase your high score
Overall Description

In Fruit Catcher catch game when fruits are falling on the sky, slide your device to
move the basket and catch them. Alternatively you can touch at the point, where
you want the basket to move basket, if catch the fruit then get some point, if catch
mango then get best point to increase your high score

It is provide super Entertaining game, Catch the fruit for gaining score and avoid
the fruits bombs, gain more score to catch more fruit, if you take fruit bomb then
you can lose your life, so avoid fruit bomb.

Fruit catcher catch game fruits like banana, orange, apple, watermelon, strawberry.
Catch the fruits in the basket. When you start playing then you can't stop yourself.
Catch all the Fruits and avoid bombs.

If you try to catch falling stars for bonus points and if catch bad fruits, which will
decrease your score and leave.

Fruit catcher catch game will bring true excitement and challenges along with it. It
is also intended for both kids and adults.

Features:-

- No ads.

- Best to play fruit catcher game.

- Endless gameplay.
- Totally free to play.

- Easy to Play.

- Awesome fruit catch effects.

- Fruit catch sound.

- Unlimited Fun.

- Addictive Game.

- Avoid catching bombs.

- Simple and user friendly.

- Left right arrow key to control the basket

- Rated for 3+

- Run in any version of window.

Game Info.

Version 1.0.1

Download size
Hardware & software requirement

 HARDWARE :

1. Monitor
2. Keyboard
3. Mouse
4. Ram 1gb(minimum)
5. Disk space 50 MB

 SOFTWARE :

1. Operating System
(Like :- MS Window 7,8,10, Ubuntu , MacOs )
2. Pycharm
3. Phyton 3.7

4.
IMPLEMENTATION

import pygame

import random

pygame.init()

def gameloop():

display=pygame.display.set_mode((500,500))

clock=pygame.time.Clock()

crashed=False

white=(255,255,255)

black=(0,0,0)

font = pygame.font.Font('freesansbold.ttf', 16)

missed_apple=0

score=0

x=300

ch_x=0

basketimg=pygame.image.load("basket.png")

fruit_img=pygame.image.load("apple.png")
bomb_img=pygame.image.load("bomb.png")

def basket(x, y):

display.blit(basketimg, (x, y))

def movapple(a, b):

display.blit(fruit_img, (a, b))

def bomb(m,n):

display.blit(bomb_img,(m,n))

a = random.randrange(25, 420)

b=-100

fruit_speed=0.02

basket_speed=10

m = random.randrange(25,420)

n = -1200
while not crashed:

for event in pygame.event.get():

if event.type==pygame.QUIT:

quit()

if event.type==pygame.KEYDOWN:

if event.key==pygame.K_LEFT:

ch_x=-basket_speed

if event.key==pygame.K_RIGHT:

ch_x=basket_speed

if event.type==pygame.KEYUP:

ch_x=0

if x<=0:

x=0

if x>=430:

x=430

fruit_speed+=0.0001
basket_speed+=0.1

display.fill(white)

for o in range(4,450):

b=b+fruit_speed

movapple(a, b)

n+=.05

bomb(m,n)

x+=ch_x

if b>=450:

a = random.randrange(25, 420)

b=0

missed_apple+=1

if n>=450:

m = random.randrange(25, 420)

n = -200

if a>x-10 and a<x+61:

if b>=440:

score+=1

missed_apple-=1
if m>x-10 and m<x+61:

if n>=440:

missed_apple=3

scoredisp = font.render(f'Score: {score}', True, black)

display.blit(scoredisp, [350, 30])

rem_life = font.render(f'Remaining life: {3-missed_apple}', True, (150,0,0))

display.blit(rem_life, [20, 30])

basket(x, 450)

if missed_apple>2:

display.fill(black)

screen_text = font.render(f'Game over. Score = {score} Press R to restart or Q to


quit.', True, white)

display.blit(screen_text, [20, 30])

if event.type==pygame.KEYDOWN:

if event.key==pygame.K_r:
gameloop()

if event.key==pygame.K_q:

crashed=True

pygame.display.update()

clock.tick(40)

gameloop()

pygame.quit()

//End Of Code
Conclusion

Computer has got clear advantage over the manual system. The
computerized system is more reliable, efficient and fast at the project, I
can say that computer play a very crucial role in the development of
firm. All the daily reports generated by the system are to be checked by
the concerned official so as to ensure that all the transaction have been
put through in appropriate accounts and this is tallied with the new
-vouchers.

Computer does maximum work with in minimum time. Because it is


used in every field so that it provides comfort and suitability to
everyone. Providing maximum facilities and comfort to customers to
customers is main goal of the firm. To achieve this goal, other modern
facilities relating to computer should have to be provided.
Reference

BOOKS:

1) PYTHON THE COMPLETE REFERENCE  (English, Paperback, Martin C.


Brown).
2) Core Python Programming , by Dr. R. Nageswara Rao (Author)

WEBSITES:

a)https://www.geeksforgeeks.org/
b)https://www.tutorialspoint.com/
c)https://www.udemy.com/
d)https://www.youtube.com/

You might also like