Changeset 187:42a10c4f70c8


Ignore:
Timestamp:
Sep 3, 2013, 6:10:44 PM (7 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
rebase_source:
290e678bc6799fb51b0f0135121a21ebe09f68fc
Message:

Err, in pymunk coordinates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/area_editor.py

    r184 r187  
    234234    def mouse_down(self, ev):
    235235        if ev.button == 1:
    236             print "Click: %r" % (self._level_coordinates(ev.pos),)
     236            print "Click: %r" % (
     237                self.level.point_to_pymunk(self._level_coordinates(ev.pos)),)
    237238        if ev.button == 4:  # Scroll up
    238239            self._move_view((0, -10))
Note: See TracChangeset for help on using the changeset viewer.