pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Go! Snake!

Go! Snake! - 0.2

Vovk (richirich)

Tags:

Description

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

Changes

Added Source code.

Links

Home Page: http://well-dnt-have-one.com
Source: http://rapidshare.com/files/155705282/Snake_Source.rar.html
Windows: http://rapidshare.com/files/155705282/Snake_Source.rar.html
Mac: http://rapidshare.com/files/155705282/Snake_Source.rar.html

Screenshot


click to view original size

Releases

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

Pygame.org account Comments

If you wish to leave a comment with your pygame.org 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: http://www.mediafire.com/download.php?5jkfdtcioew (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)
http://rapidshare.com/files/155705282/Snake_Source.rar.html
October 20, 2008 9:48pm - Andy Hanson - nickname: (rhodiumgames)
I still only see the same link http://rapidshare.com/files/155439859/Relese.rar.html 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 http://rapidshare.com/files/155439859/Relese.rar.html 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.
spotlight

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

Aug 18, 2014

Aug 2, 2014


Jul 28, 2014

Jul 22, 2014

Jul 21, 2014

Jul 20, 2014

Jul 19, 2014

Jul 15, 2014

Jul 9, 2014

Jun 27, 2014

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