The main aim of this project is to create a game using pygame module
The purpose of this project to bring fun to the players.
- If standalone script, short description of script explaining what it achieves.
Sprites are the 2-D figures when the sprites starts to eat cherries it will grow in size.
-
List out the libraries imported.
- pygame
- random
- sys
- time
Install the python 2.7 or above version
Install the pygame module using command - pip install pygame
- Importing the required modules
- Setting Up the Window and the Data Structure
- Adding a Sprite
- Changing the Size of a Sprite
- Setting Up the Music and Sounds
- Adding Sound Files
- Toggling the Sound On and Off
- Drawing the Player on the Window
- Checking for Collisions
- Drawing the Cherries on the Window
Download the code file
Double click the code and enjoying your game.
Rammya Dharshini K
None