Esempio n. 1
0
    def __init__(self, renderer):
        Game.__init__(self)
        self._renderer = renderer
        self._player = self.new_player()
        self._zone = self.new_zone()

        from cgh.client import clientapp

        clientapp.singleton().renderer.camera.track(self._player.get_avatar())
Esempio n. 2
0
 def tick(self, dt):
     Game.tick(self, dt)
     self._player.tick(dt)