pygame is
Simple DirectMedia Layer is
Site Swing
Yellow Snake

Yellow Snake - 1.01

Brock Glaze (bglaze)



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


Home Page:


click to view original size


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

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

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

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

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 ..., line 255 : for tile_y in range(0, master_height // h):, 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.

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Oct 1, 2015

Sep 11, 2015

Sep 6, 2015

Aug 26, 2015

Aug 25, 2015

Aug 21, 2015

Aug 16, 2015

Jul 30, 2015

Jun 24, 2015

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