def __init__(self): super().__init__(600, 760, 'move') self.curtains = Curtains(self) self.curtains.add_scenes({ 'scene': AppScene(), }) self.curtains.set_scene('scene')
def __init__(self): super().__init__(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_TITLE) self.curtains = Curtains(self) self.curtains.add_scenes({ 'scene1': CharacterDevelopment(), 'scene2': PlotTwist(), 'scene3': DeusExMachina() })
def __init__(self, debug: Optional[bool] = False): super().__init__() self.debug = debug if self.debug: POINTS_HINT.clear() self.curtains = Curtains(self) self.curtains.add_scene('swimming_scene', DuckScene(self.debug)) self.curtains.set_scene('swimming_scene') arcade.set_background_color(arcade.color.WARM_BLACK)
def __init__(self): super().__init__(500, 500, 'move') self.curtains = Curtains(self) self.dispatcher = get_state() self.curtains.add_scene('scene1', SmallScene()) self.curtains.add_scene( 'victory', ResultScene(message='You Win :)', color=arcade.color.GREEN)) self.curtains.add_scene( 'defeat', ResultScene(message='You Lose :(', color=arcade.color.RED))
def curtains(): window = Mock() curtains = Curtains(window) scene1 = Scene() scene2 = Scene() curtains.add_scenes({ 'scene1': scene1, 'scene2': scene2, }) curtains.set_scene('scene1') return curtains
def _curtains(**kwargs): window = Mock() curtains = Curtains(window, **kwargs) scene1 = Scene() scene2 = Scene() curtains.add_scenes({ 'scene1': scene1, 'scene2': scene2, }) curtains.set_scene('scene1') return curtains
def __init__(self): super().__init__(140, 140, name) self.curtains = Curtains(self) self.curtains.add_scene('scene1', Scene())
def __init__(self): super().__init__(500, 500, 'Anchor') self.curtains = Curtains(self) self.curtains.add_scene('scene1', SmallScene())
def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.curtains = Curtains(self) self.curtains.add_scene('single', SingleScene(self)) self.curtains.set_scene('single')