Mercurial > nagslang
comparison nagslang/world.py @ 375:83c29d0a0b9c
Count deaths
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Fri, 06 Sep 2013 22:52:24 +0200 |
parents | 150332d6c1fb |
children | 6daf48763bc0 |
comparison
equal
deleted
inserted
replaced
374:150332d6c1fb | 375:83c29d0a0b9c |
---|---|
20 def reset(self): | 20 def reset(self): |
21 first_level = Level.list_levels()[0] | 21 first_level = Level.list_levels()[0] |
22 starting_position = (350, 300) | 22 starting_position = (350, 300) |
23 self.__dict__['_data'] = { | 23 self.__dict__['_data'] = { |
24 'attacks': 0, | 24 'attacks': 0, |
25 'deaths': 0, | |
25 'transformations': 0, | 26 'transformations': 0, |
26 'kills': 0, | 27 'kills': 0, |
27 'rooms': 0, | 28 'rooms': 0, |
28 'level': (first_level, starting_position), | 29 'level': (first_level, starting_position), |
29 'level_state': {}, | 30 'level_state': {}, |