Changeset 489:31d721121966


Ignore:
Timestamp:
09/07/13 15:43:33 (8 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Phase:
public
Message:

Fix level editor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/area_editor.py

    r486 r489  
    8686        self.reset_objs()
    8787
     88    def point_to_pygame(self, pos):
     89        # inverse of point_to_pymunk
     90        # (this is also the same as point_to_pymunk, but an additional
     91        # function for sanity later in pyweek).
     92        return (pos[0], self.y - pos[1])
     93
    8894    def point_to_pymunk(self, pos):
    8995        # inverse of point_to_pygame
    90         # (this is also the same as point_to_pygame, but a additional
     96        # (this is also the same as point_to_pygame, but an additional
    9197        # function for sanity later in pyweek).
    9298        return (pos[0], self.y - pos[1])
Note: See TracChangeset for help on using the changeset viewer.