pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Yellow Snake

Yellow Snake - 1.01

Brock Glaze (bglaze)

Tags:

Description

This is my attempt at a clean snake game. The highest level has some blinking, so beware if you are at risk for seizures...

Links

Home Page: http://www.pygame.org/
Source: http://www.bglz.net/files/python/projects/yellow_snake.zip

Screenshot


click to view original size

Releases

Yellow Snake - 1.03 - Sep 27, 2011
Yellow Snake - 1.02 - Sep 26, 2011
Yellow Snake - 1.01 - Sep 25, 2011

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

September 27, 2011 3:40pm - Brock Glaze - nickname: (bglaze)
josmiley:

Made the changes you suggested. Also added a pause option.
September 27, 2011 2:17pm - Brock Glaze - nickname: (bglaze)
josmiley:

Thank you for your input! I will make those changes to make it compatible with 3.0!

Also, once you reach certain levels the images for the sprites go into animation mode, and I plan on experimenting with different images to make the snake look better. However, you are definitely right about using fill and just rect surfaces being a better option if I plan on keeping them just colored squares.

I really appreciate you taking the time to check it out and comment! Thanks for your help!
September 27, 2011 2:27am - josmiley / Luke spywoker - nickname: (mutualaccount)
oops ...
snake.pyw, line 69 : for block in range(length):
September 27, 2011 2:26am - josmiley / Luke spywoker - nickname: (mutualaccount)
make some change to run under py3 ...
sfuncs.py, line 255 : for tile_y in range(0, master_height // h):
sfuncs.py, line 259 : for tile_x in range(0, master_width // w):
snake.pyw, line 69 : for block in xrange(length):

it is well done but I think the use of "Sprite" was useless because you used squares, "fill" might be more appropriate which would have reduced the code.

good job.
September 26, 2011 2:41pm - Brock Glaze - nickname: (bglaze)
I added score keeping and level increases to raise per-eat-tail-length and speed.
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Jul 28, 2014

Jul 22, 2014

Jul 21, 2014

Jul 20, 2014

Jul 19, 2014

Jul 15, 2014

Jul 10, 2014

Jul 9, 2014

Jun 27, 2014



Jun 24, 2014

... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)