WOW
It works without the 0.0...
Why???
Oooo... because now is a double... sorry.
Thanks Xavier
PS: why do you need 0.0 as opposed to just 0?
why have I put 0.0? it have no sense... m AnotherCoffeNeededException
Sorry :(
2010/10/4 Xavier Ho cont...@xavierho.com
On 4 October 2010
Hi:
This is more a python question... And may be stupid... but i cannot see
it... please help.
I want to make my game playable online. So I have to send all the info to
the client and then he will draw corresponding frames in corresponding
positions in the screen...
So I want to send a list of
You can probably achieve nearly the same level of compression (or even perhaps
better depending on the data) much more easily by using the struct module and
then compressing the result using zlib.
The you don't have to do any manual packing and unpacking of the data, which is
tedious and
Hi, new to the list, but not the language. I'm completely at home with Python
:) Right now, I'm coding a roguelike game, and am having trouble getting the
map to update changes. I've got movement and collision detection, but for
whatever reason, the changes to the map are not being updated.
Just a quick look.
In move_test.py, when you check for action 'd' - are you sure the one tiles
bottom is really the same as the other's top - not adjacent?
Perhaps try:
new_tile.rect.top-tile.rect.bottom 1
On Mon, Oct 4, 2010 at 1:05 PM, Michael Schultz mich...@michael-schultz.net
wrote:
Hi,
On Mon, Oct 04, 2010 at 01:05:36PM -0500, Michael Schultz wrote:
Hi, new to the list, but not the language. I'm completely at home with
Python :)
Have you read PEP 8?
Your Common.Common class, which has two unrelated methods and no
instance state, and is instantiated everywhere for a single
Casey Duncan wrote:
You can probably achieve nearly the same level of compression
(or even perhaps better depending on the data) much more easily
by using the struct module and then compressing the result using zlib.
Another possibility might be to use ctypes to do the packing,
since it
On Tue, Oct 5, 2010 at 8:59 AM, Michael Schultz
mich...@michael-schultz.net wrote:
Have you read PEP 8?
Your Common.Common class, which has two unrelated methods and no
instance state, and is instantiated everywhere for a single use and then
discarded, is not how we do things in Python land.
Well, the idea that you need to
put it in a class
in order to
access it in the files that needed it
is certainly not correct. You could do it that way, however like
Marius says, that's a very strange usage.
A more sensible usage could be:
1. Scrap the class, move the two functions out