GitXplorerGitXplorer
s

snake-python

public
3 stars
9 forks
2 issues

Commits

List of commits on branch master.
Verified
f3d5e416f0808cd9b1f3dea6acf86f208a85a1b1

Add BSD license

ssamertm committed 7 years ago
Unverified
ba0e0e2489d58d85d05ef83a1fca408c7013b1b3

Make client's socket read blocking

ssamertm committed 11 years ago
Unverified
e6e737b294f245de9a4eddc369c43f3238d6f609

Actually fix second -> microsecond conversion

ssamertm committed 11 years ago
Unverified
abf9ac31ef6ef23e6a870648046af3baa22e79cc

Tail is set to 4 after death

ssamertm committed 11 years ago
Unverified
11944309249bf1f386f3602cea8a0f848532f2e2

Use sleep to maintain framerate and calculate microseconds correctly

ssamertm committed 11 years ago
Unverified
f4586ea1eb54b6beaed5495443e80235c928cf4b

Adjust framerate to be more reasonable

ssamertm committed 11 years ago

README

The README file for this repository.

Snake

About

This is a Snake game written in Python and Pygame.

Dependencies

  • Pygame (sudo apt-get install python-pygame on Debian/Ubuntu)

To install Pygame for Python 3, you should to download this experimental version and install the dependencies for Pygame:

sudo apt-get install python3-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python-numpy subversion libportmidi-dev

Then go to the folder that you extracted for Pygame and run sudo python3 setup.py install.

Usage

Simply run python game.py (or python3 game.py if you're using Python 3).

That wasn't too hard, was it? :)