def __init__(self, configuration): """Creates the different elements of the scene using the game configuration.""" FontScene.__init__(self, configuration) self.font_surface = self.font.render( "Push a button to start...", True, constants.WHITE ) self.title = TitleDrawer(self.config.screen)
class TitleScene(FontScene): """First scene of the game : the TITLE!""" def __init__(self, configuration): """Creates the different elements of the scene using the game configuration.""" FontScene.__init__(self, configuration) self.font_surface = self.font.render( "Push a button to start...", True, constants.WHITE ) self.title = TitleDrawer(self.config.screen) @font_player def play(self): """Plays the scene itself""" self.title.draw() self.config.screen.blit(self.font_surface, (210, 300))