Browse code
Keyboard handling glitch fixed
Ed L authored on 01/08/2012 03:48:24
Showing 1 changed files
Showing 1 changed files
... | ... |
@@ -45,7 +45,6 @@ if __name__ == 'main': |
45 | 45 |
) |
46 | 46 |
if self.settings == None: |
47 | 47 |
self.settings = {} |
48 |
- print self.settings |
|
49 | 48 |
|
50 | 49 |
SCREEN_WIDTH = SettingsObject('screen_width', 80) |
51 | 50 |
SCREEN_HEIGHT = SettingsObject('screen_height', 50) |
... | ... |
@@ -87,7 +86,7 @@ if __name__ == 'main': |
87 | 86 |
|
88 | 87 |
CONFUSE_NUM_TURNS = 17 |
89 | 88 |
|
90 |
- LIMIT_FPS = 20 #20 frames-per-second maximum |
|
89 |
+ LIMIT_FPS = 20 #frames-per-second maximum |
|
91 | 90 |
|
92 | 91 |
def __init__(self): |
93 | 92 |
self.load_settings() |
... | ... |
@@ -117,7 +116,6 @@ if __name__ == 'main': |
117 | 116 |
player.color = libtcod.dark_red |
118 | 117 |
|
119 | 118 |
def setup_map(self): |
120 |
- print self.monster_types |
|
121 | 119 |
self.player.enter_level(self.level) |
122 | 120 |
|
123 | 121 |
self.level.setup(self.MAX_ROOMS, |
... | ... |
@@ -163,7 +161,6 @@ if __name__ == 'main': |
163 | 161 |
or |
164 | 162 |
(self.current_level >= len(self.levels)) |
165 | 163 |
): |
166 |
- print 'hello' |
|
167 | 164 |
new_level = levels.Level( |
168 | 165 |
self.MAP_WIDTH, self.MAP_HEIGHT, |
169 | 166 |
self.con, self.item_types, self.monster_types |
... | ... |
@@ -347,9 +344,6 @@ if __name__ == 'main': |
347 | 344 |
'%s p %s d' %(self.player.fighter.power, self.player.fighter.defense) |
348 | 345 |
) |
349 | 346 |
fps = libtcod.sys_get_fps() |
350 |
- if fps < 10: |
|
351 |
- import debug |
|
352 |
- print 'FPS drop!' |
|
353 | 347 |
libtcod.console_print_ex(self.panel, self.BAR_WIDTH/2,4, libtcod.BKGND_NONE, libtcod.CENTER, |
354 | 348 |
'%s FPS' %(libtcod.sys_get_fps()) |
355 | 349 |
) |