Changeset 454:803d53c86f7f


Ignore:
Timestamp:
Sep 7, 2013, 1:23:39 PM (7 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Message:

Don't show debugging shapes by default in DEBUG mode

Location:
nagslang
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • nagslang/constants.py

    r448 r454  
    66DEFAULTS = dict(
    77    debug=False,
     8    shapes=False,
     9
    810    sound=True,
    911    music=True,
  • nagslang/options.py

    r448 r454  
    3636    if options.debug:
    3737        parser.add_option('--area', help='Initial area')
    38 
    39     if options.debug:
    4038        parser.add_option('--point', help='Initial position x,y')
     39        parser.add_option('--shapes', help='Show collision shapes',
     40                          action='store_true', default=options.shapes)
    4141
    4242    opts, _ = parser.parse_args(args)
  • nagslang/render.py

    r400 r454  
    3434
    3535    def render(self, surface):
    36         if options.debug:
     36        if options.shapes:
    3737            self._render_shape(surface)
    3838
Note: See TracChangeset for help on using the changeset viewer.