Changeset 480:c302e304b0ce


Ignore:
Timestamp:
09/07/13 14:53:09 (8 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Amend:
39396161383430363434313638326263323830656366623162623236633264656265363239336132
Rebase:
66636637613837653432666432623262393231653162643733633630393562343664373231643762
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.