def initialize(self): PyGameApplication.initialize(self) self.resize(DEMO_WINDOW_LENGTH, DEMO_WINDOW_HEIGHT) self.caption("Bouncer Demo") self.setCursor(BouncingCursor(self.camera.overlay, mouseVisible=False)) self.setEnvironment( BouncingScene(self.timer, DEMO_WINDOW_LENGTH, DEMO_WINDOW_HEIGHT))
def initialize(self): PyGameApplication.initialize(self) self.resize(DEMO_WINDOW_LENGTH, DEMO_WINDOW_HEIGHT) self.caption("Base Demo") self.setCursor(PyGameCursor(self.camera.overlay, mouseVisible=False) ) # TODO: Fix the "invisible" mouse cursor... :( self.setEnvironment( BasingScene(self.timer, DEMO_WINDOW_LENGTH, DEMO_WINDOW_HEIGHT))
def initialize(self): PyGameApplication.initialize(self) self.resize(DEMO_WINDOW_LENGTH, DEMO_WINDOW_HEIGHT) self.setCursor(PyGameCursor(self.camera.overlay, mouseVisible=False)) self.algorithm = BubbleSort() self.data = list(range(DATA_SIZE)) self.setEnvironment( SortingScene(self.timer, DEMO_WINDOW_LENGTH, DEMO_WINDOW_HEIGHT, self.algorithm, self.data)) self.reset()
def initialize(self): PyGameApplication.initialize(self) self.resize(DEMO_WINDOW_LENGTH, DEMO_WINDOW_HEIGHT) # Resize the camera sensor to match window dimensions. self.camera.configureSensor(DEMO_WINDOW_LENGTH, DEMO_WINDOW_HEIGHT, DEMO_WINDOW_LENGTH, DEMO_WINDOW_HEIGHT) self.caption("Enlightenment Testing") self.setCursor(PyGameCursor(self.camera.overlay, mouseVisible=False)) # Configure a camera mount and lens. self.camera.attach(ETMount(self.dimensions)) self.camera.attach(ETLens()) # Let the environment know about the lens, for now. self.setEnvironment( EnlighteningScene(self.timer, DEMO_WINDOW_LENGTH, DEMO_WINDOW_HEIGHT, self.camera.lens))