[pygame] sprite collisions - looking for simple snippet

2009-07-12 Thread nitrofurano
hi! i'm having difficulty on coding a small nippet of sprite collisions on pygame on sdlbasic, it's extremelly simple to get working (please don't worry about PEP8... :/ ) http://img19.imageshack.us/img19/6966/bht0.png http://img19.imageshack.us/img19/8138/bht1.png

[pygame] sprites in arrays instead of

2009-07-07 Thread nitrofurano
hi! recently i coded this humble snipped using sprites from subsurfaces: http://pastebin.com/f2b05bf70 the question is: it seems to be simple working with just 4 different sprites, one in each variable - but when they are hundreds or thousands, this task become to be very boring - can we store