/Slytherin_Game

Built a 2D Snake game using pygame module including many multimedia functionalities like images, audio and video.

Primary LanguagePython

Slytherin

A 2D Snake Game using Pygame



Snake



Problem Statement

  • To write a program in python using a pygame module that will animate a 2D Snake Game using many multimedia functionalities like images, audio and video.

Problem Solution

  • By creating a 2D snake game using pygame module, it is beginner-friendly, making it a great platform for all adults and kids to like and the code written in pygame is kept simple which can run across many platforms and operating systems.

Abstract

Slytherin is a 2D snake game made using the pygame module. Some of its main features are :

➢ Main menu
➢ Pause functionality
➢ Highest score counter
➢ Runtime score
➢ Game music

The problem is to design a Snake Game which provides the following functionalities:

  • Snake can move in a given direction and when it eats the food, the length of snake increases.

  • When the snake crosses itself, the game will be over.

For more details about the project, please refer to "Project Report.pdf" and "Project PPT.pdf"

Table of contents



What is Slytherin


Slytherin is a 2D snake game made using pygame module. Some of its main features are :



  • Main menu
  • Pause functionality
  • Highest score counter
  • Runtime score
  • Game music



The game has its own physics Engine.



Modules used




Installation for Windows


Clone Repository


  git clone https://github.com/anirudhjak06/Slytherin_Game.git

Install Python


Install pygame

  pip install pygame


If your pip isin't working, please attach python script path to your envirounment variable




Run game

➢ Download the zip folder and extract the code files or clone it as shown above.
➢ Install python on your computer. [Link](https://www.python.org/downloads/)
➢ Install pygame using the command “pip install pygame”.
➢ Move to the code directory using “cd Code”
➢ Run the python file using the command “python Slytherin.py”

  python Slytherin.py


NOTE: You should make sure that you are in "Code" directory.