views:

32

answers:

1

What would be the best way to use negative coordinates in pygame?

At the moment I have a surface that is 1.5 times the original surface then everything that needs to be drawn is shifted up by a certain amount (to ensure the negative coordinates become positive) and drawn.

Is there an easier/alternate way of doing this?

A: 

There is no way to move the origin of a surface from 0,0.

Implement your own drawing class which transforms all the coordinates passed in into the space of the surface.

Aaron Digulla
That is basically what I have. I created adj_up and adj_down functions
feelie
That's the most simple way.
Aaron Digulla