Mercurial > nagslang
diff tools/area_editor.py @ 489:31d721121966
Fix level editor.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 07 Sep 2013 17:43:33 +0200 |
parents | 04908862a0b2 |
children | da337a7cfe18 |
line wrap: on
line diff
--- a/tools/area_editor.py Sat Sep 07 17:40:59 2013 +0200 +++ b/tools/area_editor.py Sat Sep 07 17:43:33 2013 +0200 @@ -85,9 +85,15 @@ # Needed to fill in the lookup dict self.reset_objs() + def point_to_pygame(self, pos): + # inverse of point_to_pymunk + # (this is also the same as point_to_pymunk, but an additional + # function for sanity later in pyweek). + return (pos[0], self.y - pos[1]) + def point_to_pymunk(self, pos): # inverse of point_to_pygame - # (this is also the same as point_to_pygame, but a additional + # (this is also the same as point_to_pygame, but an additional # function for sanity later in pyweek). return (pos[0], self.y - pos[1])