Ignore:
Timestamp:
09/05/13 11:09:14 (8 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Phase:
public
Message:

Move protagonist to the world

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/engine.py

    r252 r276  
    2525        }
    2626        self._world.load()
    27         self.change_screen('menu', None)
     27        self.change_screen('menu')
    2828        # Dummy resize event, to force us to realise our real size
    2929        # http://stackoverflow.com/q/16442573/8629
     
    3131                                             size=(0, 0), w=0, h=0))
    3232
    33     def change_screen(self, new_screen, player):
     33    def change_screen(self, new_screen):
    3434        if self._current_screen is not None:
    3535            self._current_screen.teardown()
    3636        screen_cls = self._screens[new_screen]
    37         self._current_screen = screen_cls(new_screen, player, self._world)
     37        self._current_screen = screen_cls(new_screen, self._world)
    3838        self._current_screen.setup()
    3939
     
    5151                    self._world.save()
    5252                    self._surface.fill(pygame.color.Color(0, 0, 0))
    53                     self.change_screen(ev.screen, ev.player)
     53                    self.change_screen(ev.screen)
    5454                else:
    5555                    self._current_screen.handle_event(ev)
Note: See TracChangeset for help on using the changeset viewer.