Mercurial > nagslang
comparison nagslang/screens/area.py @ 283:1dd05d03ad21
Fire on Ctrl too (z isn't convenient on Dvorak)
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Thu, 05 Sep 2013 16:15:37 +0200 |
parents | 9b56e954c674 |
children | 47226c661ae2 |
comparison
equal
deleted
inserted
replaced
282:9d186b897d82 | 283:1dd05d03ad21 |
---|---|
127 if ev.key == pygame.locals.K_ESCAPE: | 127 if ev.key == pygame.locals.K_ESCAPE: |
128 ScreenChange.post('menu') | 128 ScreenChange.post('menu') |
129 if ev.key == pygame.locals.K_c: | 129 if ev.key == pygame.locals.K_c: |
130 self.protagonist.toggle_form() | 130 self.protagonist.toggle_form() |
131 self.world.transformations += 1 | 131 self.world.transformations += 1 |
132 if ev.key == pygame.locals.K_z: | 132 if ev.key in (pygame.locals.K_z, pygame.locals.K_LCTRL): |
133 self.world.attacks += 1 | 133 self.world.attacks += 1 |
134 self.protagonist.attack() | 134 self.protagonist.attack() |
135 if ev.key == pygame.locals.K_SPACE: | 135 if ev.key == pygame.locals.K_SPACE: |
136 self.protagonist.perform_action() | 136 self.protagonist.perform_action() |
137 elif DoorEvent.matches(ev): | 137 elif DoorEvent.matches(ev): |