You are on page 1of 46

PYTHON GAME USING PYGAME

Let’s KNOW ABOUt the GAMe


Project Owners:
->Keshav Sriram.K
->Prabu.T
->Gokul Raj
Grade: 11-’sCIeNCe’.
MODULES AND FUNCTIONS:
MODULE:
 A module allows you to logically organize your Python code.
 Grouping related code into a module makes the code easier to understand
and use.
 A module is a Python object with arbitrarily named attributes that you can
bind and reference.
FUNCTION:
Functions are an essential part of the Python programming language:
you might have already encountered and used some of the many fantastic
functions that are built-in in the Python language or that come with its library
ecosystem.
IMPORT:
Word Used In The Program:
Pygame:
Word Used In The Program:
Random:
Word Used In The Program:
Randint:
Word Used In The Program:
time:
Word Used In The Program:
Pygame.init():
Word Used In The Program:
PyGAMe.IMAGe LOAd(“_____“):
Word Used In The Program:
Pygame.display.set_mode():
Word Used In The Program:
Pygame.FULLSCREEN:
Word Used In The Program:
PyGAMe.dIsPLAy.set_CAPtION(“__”):
Word Used In The Program:
Pygame.display.set_icon(____):
Word Used In The Program:
Pygame.display.update():
Word Used In The Program:
PyGAMe.MUsIC LOAd(“___”):
Word Used In The Program:
PyGAMe.MIxer.sOUNd(“__”):
Word Used In The Program:
Pygame.mouse.get_pos():
Word Used In The Program:
Pygame.mouse.get_pressed():
Word Used In The Program:
def:
Word Used In The Program:
PyGAMe.fONt.fONt(“____”):
Word Used In The Program:
blit():
Word Used In The Program:
return:
Word Used In The Program : Font. render() to create an image of the
text, then blit this image onto another
Surface.
.get rect():
Word Used In The Program:
if:
Word Used In The Program:
elif:
Word Used In The Program:
else:
Word Used In The Program:
Pygame.time.get ticks():
Word Used In The Program:
While:
Word Used In The Program:
and:
Word Used In The Program:
Pygame.mixer.sond.play():
Word Used In The Program:
Pygame.QUIT():
Word Used In The Program:
Pygame.KEYDOWN:
Word Used In The Program:
Pygame.K_ESCAPE:
Word Used In The Program:
in:
Word Used In The Program:
For:
Word Used In The Program:
Pygame.mixer.music.play():
Word Used In The Program:
Pygame.mixer.music.pause():
Word Used In The Program:
Pygame.mixer.music.unpause():
Word Used In The Program:
if not:
Word Used In The Program:
break:
Word Used In The Program:
or:
Word Used In The Program:
clock.tick():
Word Used In The Program:
intro():
Word Used In The Program:
main():
Word Used In The Program:

You might also like