python - Negative coordinates in pygame -


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

At this time, the surface which is 1.5 times the surface of the original, then everything that needs to be pulled is taken to ensure a certain amount (to ensure positive coordination) and.

Is this an easy / alternative way of doing this?

A simple solution is to write a linear mapping function on the PGRAM screen coordinator with the world coordinate

< Previous> DIF coordination (X, Y): "Direct the world for pixel coordinates." Return 320 + 170 * x, 400-170 * y

And while illustrating all the world objects, take a look for a perfect example.


Comments