def Update(self, t): if self.dead: globals.current_view.mode = modes.GameOver(globals.current_view) globals.current_view.game_over = True if self.interacting: done = self.interacting.Update(t) if done: self.deactivate() self.UpdateMouse(self.mouse_pos, None) super(Player, self).Update(t) self.light.Update(t) self.torch.Update(t) if self.flare: self.flare.Update(t) if self.comms: self.comms.Update(t)
def Death(self): globals.sounds.stop_talking() globals.sounds.player_death.play() globals.current_view.mode = modes.GameOver(globals.current_view)
def GameOver(self): self.game_over = True self.mode = modes.GameOver(self)