Mercurial > nagslang
changeset 489:31d721121966
Fix level editor.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 07 Sep 2013 17:43:33 +0200 |
parents | ae8eb7c0f7bb |
children | 2e4cc6802d0e |
files | tools/area_editor.py |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
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])