Skip to content

Latest commit

 

History

History
 
 

Sprites and Cherries

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Package/Script Name

Aim

The main aim of this project is to create a game using pygame module

Purpose

The purpose of this project to bring fun to the players.

Short description of package/script

  • 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

Setup instructions

Install the python 2.7 or above version

Install the pygame module using command - pip install pygame

Workflow

  • 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

Compilation

Download the code file

Double click the code and enjoying your game.

Output

Author(s)

Rammya Dharshini K

Disclaimers, if any

None