Re: [pygame] Need feed back on new game!

2007-05-27 Thread Horst JENS
runs very fine on ubuntu linux (feisty). Nice game. On Thu, 2007-05-24 at 20:48 +1200, Greg Ewing wrote: John Eriksson wrote: After several weeks of coding I'm finally releasing my latest project (at least the first release candidate), the space game Slingshot.

Re: [pygame] Website move

2007-05-27 Thread John Eriksson
Hi, Still getting SQL-error when trying to add a new releas for one of my projects. Best Regerdas /John lör 2007-05-26 klockan 15:29 -0700 skrev Phil Hassey: The pygame.org website was recently moved to a new server and had some troubles ... Sorry it took me a few days to get to fixing it - I

[pygame] Sticky Variables

2007-05-27 Thread Kris Schnee
I've run into that sticky variables problem again: code = {.:[],c:[crate]} a = code[.] b = code[.] a ==b True a is b True One solution is: import copy a = copy.copy(code[.]) b = copy.copy(code[.]) a == b True a is b False But is there a better way to make it clear I want the value,

Re: [pygame] Sticky Variables

2007-05-27 Thread Bob Ippolito
On 5/27/07, Kris Schnee [EMAIL PROTECTED] wrote: I've run into that sticky variables problem again: code = {.:[],c:[crate]} a = code[.] b = code[.] a ==b True a is b True One solution is: import copy a = copy.copy(code[.]) b = copy.copy(code[.]) a == b True a is b False

Re: [pygame] Sticky Variables

2007-05-27 Thread Noah Kantrowitz
Kris Schnee wrote: I've run into that sticky variables problem again: code = {.:[],c:[crate]} a = code[.] b = code[.] a ==b True a is b True One solution is: import copy a = copy.copy(code[.]) b = copy.copy(code[.]) a == b True a is b False But is there a better way

Re: [pygame] Website move

2007-05-27 Thread Phil Hassey
John, Thanks for pointing that out :) I've got it fixed (I think) please tell me if you have any trouble. Thanks! Phil John Eriksson [EMAIL PROTECTED] wrote: Hi, Still getting SQL-error when trying to add a new releas for one of my projects. Best Regerdas /John lör 2007-05-26 klockan 15:29

Re: [pygame] Transparent PNGs

2007-05-27 Thread Greg Ewing
Kris Schnee wrote: Attached is an example made this way that's still not transparent. It seems perfectly well transparent to me, judging by the way it behaves in Intaglio. It must be something to do with the way you're loading or displaying it. Perhaps if you post some code? -- Greg

Re: [pygame] Sticky Variables

2007-05-27 Thread Greg Ewing
Kris Schnee wrote: But is there a better way to make it clear I want the value, not an actual reference? Not really. If you want a copy of something, you need to write code to create a copy, one way or another. If you know the data type of the thing you're copying, there are a variety of

Re: [pygame] Sticky Variables

2007-05-27 Thread Greg Ewing
Ethan Glasser-Camp wrote: I'm interested in the curious use case Kris posts -- checking for object identity as part of a sea adventure? I can only imagine. :) Well, it's obvious, really -- if you're being attacked by a school of giant venomous sea serpents, and you can determine that they're

Re: [pygame] Sticky Variables

2007-05-27 Thread Jotham
Just to muddy the waters some more, on the topic of copying this might be of interest to you. http://www.suttoncourtenay.org.uk/duncan/accu/pythonpatterns.html#flyweight On 5/28/07, Greg Ewing [EMAIL PROTECTED] wrote: Ethan Glasser-Camp wrote: I'm interested in the curious use case Kris