[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] Background and collision detection in Lunar Lander game



Em Mon, 15 Jul 2002 08:35:38 -0700
Pete Shinners <shredwheat@attbi.com> escreveu:
> heh, it's not quite in the pcr, i'd want to clean it up a little
> before submitting it. it is in the pygame 'contrib' directory in the
> ftp area.
> 
> the code does "ball" to "line" collision detection. for a lunar lander
> game it could work really well. the only limitation is the collision
> is really based on a sphere, so your ship would need to be "roundish".
> (hmm, something like the ET spaceship)
> 
> i've written the code to do a very cool sidescroller, but that day may
> 
> never come. you'll need to get into the physics module to change the 
> collision reactions a bit. currently they are set to "bounce and
> slide".
> 
> the example code has a bitmap image of the background, then in gimp i 
> created a "vector" shape around the surfaces. the program reads those 
> exported vectors and that is what the player interacts with.

so should we wait to see it included in the pcr or should it get it as
it stands now?
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org