Changeset 480:c302e304b0ce for nagslang


Ignore:
Timestamp:
Sep 7, 2013, 2:53:09 PM (7 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
amend_source:
99aa8406441682bc280ecfb1bb26c2debe6293a2
rebase_source:
fcf7a87e42fd2b2b921e1bd73c6095b46d721d7b
Message:

Only print the death position in debug mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/screens/area.py

    r471 r480  
    55import pymunk.pygame_util
    66
     7from nagslang.options import options
    78from nagslang.constants import (
    89    COLLISION_TYPE_WALL, COLLISION_TYPE_PLAYER, CALLBACK_COLLIDERS,
     
    163164        if ev.type == pygame.locals.KEYDOWN:
    164165            if ev.key == pygame.locals.K_ESCAPE:
    165                 print self.protagonist.physicser.position
     166                if options.debug:
     167                    print ('Died at: (%i,%i)'
     168                           % (self.protagonist.physicser.position.x,
     169                              self.protagonist.physicser.position.y))
    166170                if self._level.is_starting_level():
    167171                    QuitEvent.post()
Note: See TracChangeset for help on using the changeset viewer.