pygame is
Simple DirectMedia Layer is
Site Swing
Go! Snake!

Go! Snake! - 0.2

Vovk (richirich)



This is my first PyGame Project. feel free write critic .^__^. ESC - quit game SPACE - pause game well, i reused one of [] images and some of [] pixel art, sounds i found in the net :) and thanks for MVC tutorial on pygame ^)


Added Source code.


Home Page:


click to view original size


Go! Snake! - 0.2 - Oct 20, 2008
Go! Snake! - 0.1 - Oct 19, 2008 account Comments

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

October 22, 2008 12:07am - Vovk - nickname: (richirich) - 5/5
heh, and there i strted write smth with similar idea :P
thx for your code i'll try it out :P
October 21, 2008 11:36pm - Andy Hanson - nickname: (rhodiumgames)
Rather than go through your code, I wrote a smooth snake demo myself: (I claim no rights over it, it's completely free). Hopefully the ideas can be implemented into your program. Basically the idea is you record all the turning points, and they can be any value, even (1.256,87.9) :P. Later you can paste a turning sprite onto those points or something.
October 21, 2008 5:17am - Vovk - nickname: (richirich)
you just need click relese 0.2 ^__^
October 21, 2008 5:15am - Vovk - nickname: (richirich)
October 20, 2008 9:48pm - Andy Hanson - nickname: (rhodiumgames)
I still only see the same link repeated three times. It has an EXE in it, no source.
October 20, 2008 9:37pm - Andy Hanson - nickname: (rhodiumgames)
I still only see the same link repeated three times. It has an EXE in it, no source.
October 20, 2008 3:16am - Vovk - nickname: (richirich)
i just thought a few things about smooth moving.
right now snake grows and drawing like in matrix games. so we limited by this sprite size, wich represent matrix cell. Then if we want to draw snake's movement we must change snake grows model ^__^
October 20, 2008 12:20am - Vovk - nickname: (richirich)
ah, about snake's movement! How i can implement smooth movement?
October 20, 2008 12:17am - Vovk - nickname: (richirich)
My Bad, sorry!
I've added Source code link.

Well, im using spritecollide method to check whether snake's head collide with any foon sprites or not.

i've added class diagram in the source.
October 19, 2008 3:35pm - Andy Hanson - nickname: (rhodiumgames)
First off, I can't see how you programmed this, since all your links point to the same Release.rar which just has an EXE and data files, no source. Macintosh and Linux users, who are pretty common on this site, can't even play the game!

Although imperfect, using a sprite's rectangle can be a very accurate and fast way of collision detection! Snake would also work well as a matrix-based game, but you would lose smoothness in both gameplay and graphics. For example, in the current version the snake's movement isn't smooth, it makes 'jumps'.
Rectangle-based collision detection isn't your problem here. All you have to do is use pygame's built-in method, pygame.Rect.colliderect(pygame.Rect), to check whether your snake's head sprite collides with any food sprites, and it should work fine.
October 19, 2008 2:45pm - Vovk - nickname: (richirich)
you are right! i'll fix it in near future.

and can anyone point me at method to detect collision more accurate then just using rectangle area around sprites?
October 19, 2008 2:01pm - Andy Hanson - nickname: (rhodiumgames)
I think some of the food sprites are too big. Sometime's I'll go through one but not eat anything, and I have to go through another square which the food covers in order to eat it.

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Feb 21, 2017

Jan 31, 2017

Jan 24, 2017

Jan 18, 2017

Jan 7, 2017

Dec 30, 2016

Dec 8, 2016

Nov 28, 2016

Nov 27, 2016

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