Пример #1
0
def main():
    from fake_screen import FakeScreen
    textplayer = PlasmaPlayer(10, 15)
    screen = FakeScreen(10, 15)
    for i in range(0, 1000):
        textplayer.update(screen, i / 10)
        screen.show()
        sleep(0.1)
Пример #2
0
def main():
  from fake_screen import FakeScreen
  gameplayer = GameOfLifePlayer(10,10)
  screen = FakeScreen(10,10)
  for i in range(0,100):
    gameplayer.update(screen,i)
    screen.show()
    sleep(0.1)
Пример #3
0
def main():
    from fake_screen import FakeScreen
    gifplayer = GifPlayer("../assets/mario.gif", 0.1)
    screen = FakeScreen(10, 15)
    for i in range(0, 1000):
        gifplayer.update(screen, i / 10)
        screen.show()
        sleep(0.1)
Пример #4
0
def main():
    from fake_screen import FakeScreen
    waterplayer = WaterPlayer(10, 15)
    screen = FakeScreen(10, 15)
    for i in range(0, 1000):
        waterplayer.update(screen, i / 10)
        screen.show()
        sleep(0.1)
Пример #5
0
def main():
    from fake_screen import FakeScreen
    camera_player = CameraPlayer(0.1)
    screen = FakeScreen(10, 15)
    camera_player.start()
    for i in range(0, 28):
        camera_player.update(screen, i / 10)
        screen.show()
        sleep(0.1)
    camera_player.stop()
Пример #6
0
def main():
    print("Camera player")
    from fake_screen import FakeScreen
    camera_player = CameraPlayer(0.1)
    screen = FakeScreen(10, 15)
    print("Starting camera")
    camera_player.start()
    i = 0
    while True:
        i += 1
        camera_player.update(screen, i / 10)
        screen.show()
        sleep(0.1)
    camera_player.stop()