Mercurial > nagslang
comparison nagslang/screens/area.py @ 342:11febdb72296
Resume from the previous level
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Fri, 06 Sep 2013 12:59:51 +0200 |
parents | eb24e74df4c3 |
children | 4708e86a9a3c |
comparison
equal
deleted
inserted
replaced
341:63d0c70a4e15 | 342:11febdb72296 |
---|---|
169 self.protagonist.set_position(ev.dest_pos) | 169 self.protagonist.set_position(ev.dest_pos) |
170 if ev.destination != self.name: | 170 if ev.destination != self.name: |
171 # Go to anther screen | 171 # Go to anther screen |
172 self._disable_render = True | 172 self._disable_render = True |
173 self.world.rooms += 1 | 173 self.world.rooms += 1 |
174 self.world.level = ev.destination | |
174 ScreenChange.post(ev.destination) | 175 ScreenChange.post(ev.destination) |
175 return | 176 return |
176 # else we're teleporting within the screen, and just the | 177 # else we're teleporting within the screen, and just the |
177 # position change is enough | 178 # position change is enough |
178 elif FireEvent.matches(ev): | 179 elif FireEvent.matches(ev): |