Пример #1
0
    def run(self):
        while not osl.mustQuit():
            osl.startDrawing()

            self.keys()

            self.fond.draw()

            self.text()

            self.mickey.draw()

            osl.endDrawing()
            osl.syncFrame()

        osl.endGfx()
        osl.quit()
Пример #2
0
    def run(self):
        while not osl.mustQuit():
            osl.startDrawing()

            osl.drawGradientRect(
                0, 0, 480, 272, osl.RGB(0, 0, 128), osl.RGB(0, 0, 128), osl.RGB(0, 255, 255), osl.RGB(0, 255, 255)
            )

            self.keys()

            for i in xrange(8):
                if self.layers > i:
                    self.maps[i].drawSimple()

            self.text()

            osl.endDrawing()
            osl.syncFrame()
            osl.audioVSync()

        osl.endGfx()
        osl.doQuit()
Пример #3
0
    def run(self):
        while not osl.mustQuit():
            osl.startDrawing()

            osl.drawGradientRect(0, 0, 480, 272,
                                 osl.RGB(0, 0, 128),
                                 osl.RGB(0, 0, 128),
                                 osl.RGB(0, 255, 255),
                                 osl.RGB(0, 255, 255))

            self.keys()

            for i in xrange(8):
                if self.layers > i:
                    self.maps[i].drawSimple()

            self.text()

            osl.endDrawing()
            osl.syncFrame()
            osl.audioVSync()

        osl.endGfx()
        osl.doQuit()