def render(self): Display.drawBelief(self.model) Display.drawBlocks(self.model.getBlocks()) if Const.SHOW_CARS: for car in self.model.getCars(): Display.drawCar(car) else: Display.drawCar(self.model.getJunior()) Display.drawFinish(self.model.getFinish()) view.graphicsUtils.refresh()
def outputGameResult(self): collided = self.userThread.hasCollided() for car in self.model.getCars(): Display.drawCar(car) print '*********************************' print '* GAME OVER *' if collided: print '* CAR CRASH!!!!!' else: print '* You Win!' print '*********************************'