Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rajatdiptabiswas/snake-pygame

:snake: A snake game written in Python using the Pygame library
https://github.com/rajatdiptabiswas/snake-pygame

pycharm pygame python snake-game

Last synced: 6 days ago
JSON representation

:snake: A snake game written in Python using the Pygame library

Awesome Lists containing this project

README

        

# Snake Eater
A snake game written in Python using the Pygame library.

## Installing
Download the Python 3 installer package from the official website and install it, if not installed previously.

Run the following in the terminal to install the Pygame library
```
pip3 install pygame
```

## Running the application
Download the source code from the repository and run the file just as any other Python script (.py) file.
```
python3 Snake\ Game.py
```

The `difficulty` variable can be changed with the values provided in the comment to set the difficulty level.

The rest of the code is properly commented and self explanatory. Tweaks can be made to change the play style or visuals of the game.

## Screenshots

![1](https://user-images.githubusercontent.com/32998741/33873439-27f635b2-df45-11e7-8fc1-f7812f17447a.png)
*Written using PyCharm*

![2](https://user-images.githubusercontent.com/32998741/33873437-2780ed2a-df45-11e7-9776-b1f151fa4e02.png)
*Active game screen*

![3](https://user-images.githubusercontent.com/32998741/33873440-28647360-df45-11e7-8291-b82d5646352f.png)
*Game over screen*

## Prerequisites
* [Python](https://www.python.org)
* [Pygame](https://www.pygame.org/wiki/GettingStarted), an open source Python library for making multimedia applications

## Authors

* **Rajat Dipta Biswas** - *Initial work*

See also the list of [contributors](https://github.com/rajatdiptabiswas/snake-pygame/graphs/contributors) who participated in this project.

## Acknowledgements
* [Pygame Documentations](https://www.pygame.org/docs/)
* [Udemy: Python Game Development](https://www.udemy.com/python-game-development-creating-a-snake-game-from-scratch/learn/v4/overview)