[Tutor] Mapping of co-ordinates... pygame

Alan Gauld alan.gauld at btinternet.com
Thu Jul 23 18:51:59 CEST 2009


"Wayne" <srilyk at gmail.com> wrote 

> def draw_pixel(x, y):
>    w = screen.get_width()
>    h = screen.get_height()
>    screen.draw_pixel(w/2+x, h/2+y)

I think that should be h/2-y for the coordinates given?

Alan G.



More information about the Tutor mailing list