Re: [pygame] Physics module status note

2008-08-15 Thread Peter Gebauer
Hi! Hm, I've been experimenting a bit now and I wonder about the body.rotation, it's using radians. Wouldn't it make more sense to use degrees in the API for all angle values? On 2008-08-14 (Thu) 21:35, Marcus von Appen wrote: On, Thu Aug 14, 2008, Peter Gebauer wrote: [...] Too early

Re: [pygame] Physics module status note, more things...

2008-08-15 Thread mva
Peter Gebauer [EMAIL PROTECTED]: Hi again! Should have waited with my previous post, but here's a few things I don't understand: 1) if the mass of a static body is under 1.0 it behaves as a semi-solid, is this intentional? (i.e other bodies fall into the static body and with mass reaching 0.0

Re: [pygame] pgu broken with pygame 1.8.1release ? - patch for one bug(crash)

2008-08-15 Thread Casey Duncan
I would make the argument that this assertion was broken from the start. Did pygame ever guarantee that it would be a tuple? Would be better to check if its a sequence, maybe something like: try: tuple(x) except TypeError: # Not a sequence else: # A sequence (the biggest problem

Re: [pygame] pgu broken with pygame 1.8.1release ? - patch for one bug(crash)

2008-08-15 Thread Brian Fisher
The Color changes in pygame 1.8.1 will only break things that use Color, right? so where is Color documented? I don't see it here: http://www.pygame.org/docs/ On Thu, Aug 14, 2008 at 5:49 PM, René Dudfield [EMAIL PROTECTED] wrote: This is annoying, because pgu is used by a lot of games. So

[pygame] PyGameDB coming along well

2008-08-15 Thread Richie Ward
The PyGameDB project which has similarity's to the commercial platform Steam is coming to a usable state. It is programmed in Python + WxPython. It works by adding the game to sys.path and importing the game (very simplified way to put it). It uses a XML file to get a list of PyGame's. It will

RE: [pygame] PyGameDB coming along well

2008-08-15 Thread Noah Kantrowitz
Not to point out the obvious or anything, but why would you not just use pygame.org, which already has a big database of games. Just add an API for getting the metadata you need and be done with it. --Noah -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf

Re: [pygame] PyGameDB coming along well

2008-08-15 Thread Dan Krol
This is fantastic, I didn't know this was in the works. I was always thinking, for open source games to take off, there needs to be a good catalog of games that people can browse, and it has to be flashy, but it has to show off the big advantage of open source games, which is that unlike other

Re: [pygame] Physics module status note, more things...

2008-08-15 Thread Peter Gebauer
Nice reply Marcus! In order to get rid of that, you have to choose matching step times, sizes and the speed for bodies according to your simulation needs - at least as long as there is no CCD algorithm implemented :-). Right. Simulated bouncing is implemented already. The collision energy,

Re: [pygame] PyGameDB coming along well

2008-08-15 Thread Richie Ward
It will be up to the repo to moderate the security of packages. I plan to have a policy of moderation on my own repository, once its ready. I will give moderation privileges to trusted and experienced python programmers, and ban people that abuse it. Anyone is free to set up their own game

Re: [pygame] PyGameDB coming along well

2008-08-15 Thread Dan Krol
Ah userland, excellent. I was also thinking about keeping it in userland when I was thinking about this concept. That way, you wouldn't even need to trust the repo very much. Again, awesome. On Fri, Aug 15, 2008 at 2:48 PM, Richie Ward [EMAIL PROTECTED] wrote: It will be up to the repo to

Re: [pygame] PyGameDB coming along well

2008-08-15 Thread Dan Krol
Er, I forgot to add that part of my idea included running the thing in its own user, so your other files were safe. I wonder if Ubuntu would want to automatically set up something like that when you install it? On Fri, Aug 15, 2008 at 3:06 PM, Dan Krol [EMAIL PROTECTED] wrote: Ah userland,

Re: [pygame] Physics module status note

2008-08-15 Thread Hugo Arts
most of python's math functions like asin en atan (from math) return their values in radians, and sin and tan take their arguments as radians. So using radians is more common than degrees. Conversion is also pretty trivial, using math.radians and math.degrees. Hugo On Fri, Aug 15, 2008 at 6:53

Re: [pygame] PyGameDB coming along well

2008-08-15 Thread Richie Ward
Ok, I tried this in the python code itself and it says Operation not permitted on ubuntu. I suppose its unlikely to be able to run as another user without asking for the root password. I cant think of any good way to make it perfectly secure while keeping the cross platform capability and not

RE: [pygame] PyGameDB coming along well

2008-08-15 Thread Noah Kantrowitz
Look in to Brett's work on a secure interpreter system. He gave a talk at pycon '07 about it IIRC. --Noah -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Richie Ward Sent: Friday, August 15, 2008 1:45 PM To: pygame-users@seul.org Subject: Re:

Re: [pygame] PyGameDB coming along well

2008-08-15 Thread Richie Ward
Nice but its not been updated for almost a year. - http://svn.python.org/view/python/branches/bcannon-objcap/ I dont think it has full support and I think it needs to be put into python and enabled/disabled with a module of some sort. On Fri, Aug 15, 2008 at 9:48 PM, Noah Kantrowitz [EMAIL

Re: [pygame] pgu broken with pygame 1.8.1release ? - patch for one bug(crash)

2008-08-15 Thread Emanuel Berg
http://www.pygame.org/docs/ref/color.html I found this on wikipedia, but not the other formats. Maybe there is a better place to look? http://en.wikipedia.org/wiki/CMYK On Fri, Aug 15, 2008 at 6:51 PM, Brian Fisher [EMAIL PROTECTED] wrote: The Color changes in pygame 1.8.1 will only break

Re: [pygame] changes from pygame 1.7.1 to pygame 1.8.1

2008-08-15 Thread René Dudfield
hi, thanks for the report. If you could make a small test case that crashes, or just post the function body that crashes that'd be a big help in tracking down the problem. cu. On Fri, Aug 15, 2008 at 1:21 AM, sy12 [EMAIL PROTECTED] wrote: Hello, Here are the changes that I have noticed on

Re: [pygame] Physics module status note, more things...

2008-08-15 Thread Greg Ewing
[EMAIL PROTECTED] wrote: you could e.g. split the screen into sky and sea, being two different worlds. If the body reaches a certain point, you could remove it from sea and add it to sky This wouldn't simulate floating on the surface very well, though. The body should reach equilibrium when

Re: [pygame] Physics module status note, more things...

2008-08-15 Thread Greg Ewing
Peter Gebauer wrote: I don't have a clue about the math involved to calculate the force, but I could give it a stab. As Archimedes pointed out, the upward force on an immersed body is equal to the weight of water it displaces. So just apply a force proportional to the volume that is under the