# HG changeset patch # User Jeremy Thurgood # Date 1378568613 -7200 # Node ID 31d7211219665ff3fa273dc6f55f704e6d3f315b # Parent ae8eb7c0f7bbeba9fa649b928d918a73beae1979 Fix level editor. diff -r ae8eb7c0f7bb -r 31d721121966 tools/area_editor.py --- 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])