Lenard, Rene and co,
>> There is no unit test for blitting a SRCALPHA source with non-zero alpha
to a SRCALPHA destination with non-zero alpha
I'm writing some tests for surface.blit atm. What is the expected behaviour
of such an operation?
def test_blit__SRCALPHA_to_SRCALPHA_non_zero(self):
I had a little play with the test_blit_to_self.py:
SDL VERSION:
1.2.13 prebuilts
PYGAME:
Mingw compiled, svn r 1619
OBSERVATIONS:
Unmodified the test wouldn't run at all as noted earlier.
I don't know if it's any help but I noticed after commenting out the
"blitting screen to self" section t
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
[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
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
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 t
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 PROTEC
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:
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 ha
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 AM
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, exc
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 mod
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 reposit
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 energ
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 cata
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 Behal
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 a
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
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
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
Oh dear, I'm spamming the channel.
4) Friction does nothing yet? Can't find it being used except to hold a
value and changing it makes no difference.
On 2008-08-15 (Fri) 14:14, Peter Gebauer wrote:
> Hi again!
>
> Should have waited with my previous post, but here's a few things I don't
> unde
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 they fall right through)
In test
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 ear
23 matches
Mail list logo