[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] Changing screen coord system



Thanks for the archive link.
(pos[0],screensize[1]-pos[1]) is fine except that my bitmaps that were on
the top of the screen get drawn off the screen. Since it is a tiled game, I
can add tile_height to it, but then when I draw lines, they start in the
wrong place. Etc etc. I am used to 0,0 at bottom, left, so was just
wondering if there was a built in coord system that I could set up like I've
done with other APIs

----- Original Message -----
From: "alex" <alex@quad.com.ar>
To: <pygame-users@seul.org>
Sent: Wednesday, January 15, 2003 4:29 PM
Subject: Re: [pygame] Changing screen coord system


> > First of all, can anyone tell me if there is a way to search the
> > pygame-users archives? I don't like asking newbie questions. But since I
> am
> > here ...
>
> http://aspn.activestate.com/ASPN/Mail/Browse/Threaded/pygame-users
> you can find that link by going pygame.org --> mailing list --> mailing
list
> archive
>
> > Is there a way to change the screen coordinate system? I prefer 0,0 at
the
> > bottom, left. Of course I can hack this with a screen_height - y_coord,
> but
> > it is not perfect.
>
> def getcoords(pos):
>    global screensize
>    return (pos[0],screensize[1]-pos[1])
>
> what's not perfect about it?
>
>
> ____________________________________
> pygame mailing list
> pygame-users@seul.org
> http://pygame.seul.org
>

____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org