0% found this document useful (0 votes)
2K views22 pages

Egg Catcher Game in Python

This document summarizes an Egg Catcher game project created in Python. The game allows the user to move a basket left and right to catch falling eggs. If the user misses an egg, they lose a life and points. Catching a golden egg regains a lost life. The game ends if the user misses 3 eggs without catching a golden one. The project was created by Shaikh Sadaf Salim, a TYBBACA student with Roll No. 28 in Division A. It provides details on the existing system, proposed improvements, feasibility study, system design, entity relationship diagram, and flowchart.

Uploaded by

Sadaf
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views22 pages

Egg Catcher Game in Python

This document summarizes an Egg Catcher game project created in Python. The game allows the user to move a basket left and right to catch falling eggs. If the user misses an egg, they lose a life and points. Catching a golden egg regains a lost life. The game ends if the user misses 3 eggs without catching a golden one. The project was created by Shaikh Sadaf Salim, a TYBBACA student with Roll No. 28 in Division A. It provides details on the existing system, proposed improvements, feasibility study, system design, entity relationship diagram, and flowchart.

Uploaded by

Sadaf
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 22

EGG CATCHER

GAME
MADE IN PYTHON LANGUAGE
NAME : SHAIKH SADAF SALIM
CLASS : TYBBACA
ROLLNO :28
DIV : A
FINAL PROJECT PPT
WELCOME TO
MY PROJECT
PRESENTATION
Acknowledgement
Working on this project has been a great learning experience for me. There
was a moments Of anxiety when I could not solve a problem for several days and
there was moments when I could solved the problems after struggling for several days.
But I have enjoyed every bit of the process and when my project finally
executed successfully without any error I was really really happy and are
thank full to the project guide insha mam for encouraging me.
I convey my sincere thanks to the project guide insha mam for providing
all sorts of facilities. Her support and guidance helped me to carry out the
project. i owed a great debt of her gratitude for her constant advice, support ,
and Encouragement throughout the project.
DISCRIPTION OF
PROJECT
Move the basket left/right to catch the egg (or)
INTRODUCTION tap the egg that you
want to catch.
If you miss an egg you will lose a life and some
Egg Catcher Game is an exciting and free egg dollars, and if you
catching game. Can you catch all the good eggs catch a golden egg, you would regain the lost
and prevent them from dropping. Avoid catching life. The egg game
the black eggs and dropping would be over if you miss 3 eggs without
3 good eggs will end the game. Egg Catcher catching any golden egg.
Game Eggs Catcher is a classic game where the goal
is to catch as many
is suitable for everyone and is compatible to run eggs as possible. In this game, every egg you
on tablets and phones. catch will increase your
score and if you miss 3 eggs you will lose the
game.
An egg catcher game tests your concentration
and the speed of your
reflexes as you have to catch eggs falling all
around the screen with
one basket. To create an egg catcher game you
have to design an
animation of falling eggs at random positions
and a basket will be
catching all the falling eggs .
EXISTING SYSTEM PROPOSED SYSTEM
Egg catching game exciting and To create an eggs catcher game using Python, your first
entertaining for children and adults step will be to design a floor, basket, and eggs. Once
Egg catching game exciting and
entertaining for children and adults your game starts, the eggs will gradually move across
all you have to fill the basket with the floor, which will create an animation indicating that
the largest number of eggs To get the eggs are falling.Ensure that you have Python (I
more points the way of playing :Press
the right arrow to move the basket to prefer version 3.5+) installed on your system and the
the right Press the north arrow to path is properly configured. Install the Git client.
move the basket to the north side egg
catching It is a game for kids to teach
kids counting and numbers Teach
your children how to count the
numbers by playing eggs and
counting the number of eggs inside
the basket Game eggs for the game of
entertaining children and toys
SCOPE OF THE GAME

The egg catcher game project has been developed to meet the
aspirations indicated in the modern age.
An attempt has been made through this project to make egg
catcher game ease & fast.
It provides scores for cating every egg and has three live facilities
to accomplish the desired objectives.
The facility Include in this project and the suggested activities
have been organized to impart knowledge & develop skill &
attitude in the brain skills works.
It may help collecting eggs perfectly in details.
In a very short time, the collection will be obvious, simple and
sensible.
It will help a person to know the activeness of brain perfectly and
vividly.
It also helps in making you feel good and fun .
FEASIBILITY
STUDY
Technical Economic
feasibility feasibility
All software necessary for
creation of this program is
Technical feasibility: python available freely to me at no
allows software developed extra cost. Graphics can be
Operational
using the language to obtained for free from a
function on any windows variety of sources, including the feasibility
operating system that has the internet, outsourcing
pygame framework, so the and self-creation, and no extra
softwar will run on all hardware is required The expertise for this project can be
windows operating systems. for this software to perform. No obtained through the course of the
budget is available or project, the resources for this project are
required, so this project is obtainable with little or
economically feasible. no effort. Once the project is complete,
no maintenance will need to be
performed as the use will have been
fulfilled.
To create an egg catcher game using Python, we need

SYSTEM to use three different loops:


One to create new eggs.

DESIGN Another to check if the catcher has caught an egg.


And the third loop to move eggs and to check if the
eggs touched the ground.I hope you now have understood the complete
process
of creating an eggs catcher game using Python. Now
let’s see how to create an egg catcher game using
Python. To create this game, I will be using three
Python modules:
itertools: to change the colours of the falling eggs.
random: to make the eggs appear at random positions.
Tkinter: to animate the game on the screen.
ENTITY
RELATIONSHI
P DIAGRAM
EGG CATCHER
GAME
FLOWCHART
DATA
DICTIONARY
from itertools import cycle
#used to iterate over data structures that can be stepped over using
a for-loop.
from random import randrange,choice
#randrange() function returns a random integer number within the
given range,
#The choice() method returns a randomly selected element from
the specified sequence.
from tkinter import *
#Tkinter is the name of library. Import * means everything.
from tkinter import messagebox
canvas_width = 800
canvas_height = 500
#rectangular area intended for drawing pictures or other complex
layouts.
win = Tk()
#that adds custom commands to create and manipulate GUI
widgets.
c.create_rectangle(-5,canvas_height-100,canvas_width+5,canvas_height+5,fill = "sea green",width=0)

c.create_oval(-80,-80,120,120,fill = "orange",width=0)
c.pack()

#text

score = 0

score_text = c.create_text(10,10,anchor='nw',font=('Arial',10,'bold'),fill='darkblue',text='Score : '+str(score))

lives = 3

lives_text = c.create_text(canvas_width-10,10,anchor='ne',font=('Arial',10,'bold'),fill='darkblue',text='Lives : '+str(lives))

#egg

colors = ["light blue","light pink","light yellow","light green","red","blue","green","black","white","yellow"]

egg_width = 45
egg_height = 55

egg_score = 10

egg_speed = 300

egg_interval = 4000

difficulty_factor = 0.95
#catcher def create_eggs(): #to define a function of lives in game
#to define a function of creating eggs
x = randrange(10,750)
catcher_color = "blue" global lives
y = 40
new_egg =
catcher_width = 100 c.create_oval(x,y,x+egg_width,y+egg_h lives-=1
eight,fill=choice(colors),width=0)
catcher_height = 100 eggs.append(new_egg) c.itemconfigure(lives_text,text="Lives :
win.after(egg_interval,create_eggs) "+str(lives))
catcher_start_x1 = canvas_width/2- def move_eggs(): def check_catch():
#to define a function of making eggs
catcher_width/2 #to define a function of catching eggs in
moving
catcher_start_y1 = canvas_height- for egg in eggs:
basket
catcher_height-100 (egg_x1,egg_y1,egg_x2,egg_y2) = (catcher_x1,catcher_y1,catcher_x2,catcher
catcher_start_x2 = c.coords(egg) _y2) = c.coords(catcher)
catcher_start_x1+catcher_width+20 c.move(egg,0,10) for egg in eggs:
catcher_start_y2 = if egg_y2 > canvas_height: (egg_x1,egg_y1,egg_x2,egg_y2) =
egg_dropped(egg)
catcher_start_x2+catcher_height-100 c.coords(egg)
win.after(egg_speed,move_eggs)
catcher = if catcher_x1 < egg_x1 and egg_x2 <
def egg_dropped(egg):
c.create_arc(catcher_start_x1,catcher_star #to define a function of dropping eggs catcher_x2 and catcher_y2-egg_y2 < 40:
t_y1,catcher_start_x2,catcher_start_y2,sta eggs.remove(egg) eggs.remove(egg)
rt=200,extent = 140,style="arc",outline = c.delete(egg) c.delete(egg)
catcher_color,width = 3) lose_a_live() score_increase()
eggs = [] if lives == 0: win.after(100,check_catch)
messagebox.showinfo('GAME OVER!' ,
'Final Score : ' + str(score))
win.destroy()
def move_left(event):
#to define a function of moving
(x1,y1,x2,y2) = c.coords(catcher)
if x1>0:
c.move(catcher,-20,0)
def move_right(event):
x1,y1,x2,y2) = c.coords(catcher)
if x2<canvas_width:
c.move(catcher,+20,0)
#The after() method calls the callback function once after a delay milliseconds
(ms) within Tkinter's main loop.
win.after(1000,create_eggs)
win.after(1000,move_eggs)
win.after(1000,check_catch)
#used to combine data frames together by their columns.
c.bind('<Left>',move_left)
c.bind('<Right>',move_right)
c.focus_set()
#when your game is ready to run.
win.mainloop()
LIMITATIONS AND FUTURE ENGAGEMENT
LIMITATIONS:
The games are basic.
purposely hard to make poeple addicted and spend
more money on the machine.
Owning an arcade machine will set you back alot of
money.
Dedicated to playing only one game and this
becomes boring overtime.
FUTURE ENHANCEMENT
Coin operation – The player has to put in some form
of currency to start the game level.
Standard screen with basic graphics – Limited
graphics because they had limited hardware and
sofware capabilities
Limited hardware and software capabilities
Co-op Support – Could play with one or more
players as long as they are using the same
arcade (not online)
One machine = One game – Only one game per
machine (expensive)
Advancements have been made since the 1960’s –
There are now arcades with higher end graphics for
games such as Time Crisis but they are still limited
compared to the consoles.
OUTPUT SCREEN
CONCLUSION
I BELIEVE THAT THE PROJECT WAS
COMPLETED
SUCCESSFULLY.
ALTHOUGH THE PYTHON IS VERY
SIMPLE
AND CREATES “AMAZING ” EGGS , AND
THE
BACKGROUND HAS ONLY
ONE COLOR, THE GAME WORKS WELL
AND HAS NICE CHARACTER
GRAPHICS.I'D NEVER
IMAGINED THAT CREATING EGG
CATCHING GAME WOULD BE SO HARD
AND TIME CONSUMING.
WITHOUT INSHA MAM HELP AND
DEDICATION I WOULD
HAVE NOT BEEN ABLE TO COMPLETE
THE PROJECT.
I SPENT ENDLESSHOURS WITH MY
PROJECT, AS WELL
WITH OTHERS, EXPLAINING HOW THE
HARDWARE WORKS.
MAM HAS GREATLY CONTRIBUTED TO
OUR LEARNING.
BIBLIOGRAPHY :
www.google.com
www.wikipidia.com
www.youtube.com
www.slideshare.com
github.com
THANKYOU🤗

You might also like