1 Aug 2010 15:15
Re: Example of pymunk using images
Interesting. I made a small example which produces the error all the time and posted it on the chipmunk forum: http://www.slembcke.net/forums/viewtopic.php?f=1&t=1102 Apparently there's a problem with acute (<90 degrees) angles on polygons which is hard to fix in the engine.. Maybe I should do a workaround and create a more complex shape to match the snake-box image. /Victor On Fri, Jul 30, 2010 at 1:44 AM, Jake b <ninmonkeys@...> wrote: > They are mostly acting like bouncing_balls.py, but less bouncy. > > But, they occasional are falling through the floor bottom right corner ( > where walls meet ) FPS is 50. > Ran it couple times. > > Seeing a ghost occasionally. ( One falls on right side of screen, velocity > is so high it but reaches bottom so fast its only blit 2-3 times. ) > > bouncing_balls doesn't do this. > -- > Jake >
.
As you can see, it is mostly about exchanging the modules and certain
API calls as well as changing some arguments (especially colors). I
left out the time-based update, you are using with Clock.tick() and
applied a static update cycle. To use an approach matching Clock.tick(),
you could use sdl.time.get_ticks() and calculate the update delta
yourself.
Regards
Marcus
RSS Feed