2021-09-02 22:25:45 +02:00
|
|
|
import pygame.mouse
|
|
|
|
|
2021-09-03 16:44:18 +02:00
|
|
|
from UI.Scenes.BasicScene import BasicScene
|
|
|
|
from UI.Scenes.BasicMultiscene import BasicMultiscene
|
|
|
|
from UI.Scenes.MultisceneInMultiscene import MultisceneInMultiscene
|
|
|
|
from UI.Scenes.RopeScene import RopeScene
|
|
|
|
from UI.Scenes.RopeMultiscene import RopeMultiscene
|
|
|
|
|
2021-09-01 11:26:29 +02:00
|
|
|
from numpy import array as a
|
2021-08-31 22:22:56 +02:00
|
|
|
import time
|
|
|
|
|
|
|
|
|
2021-09-01 18:23:35 +02:00
|
|
|
screen_size = a([200, 500])
|
2021-09-03 16:44:18 +02:00
|
|
|
scene = RopeScene(screen_size)
|
2021-09-02 22:25:45 +02:00
|
|
|
|
|
|
|
mouse_pos = [0, 0]
|
|
|
|
clicked = False
|
2021-08-31 22:22:56 +02:00
|
|
|
|
|
|
|
|
2021-09-01 18:23:35 +02:00
|
|
|
for i in range(400):
|
2021-09-02 19:56:28 +02:00
|
|
|
scene.resize_screen(screen_size)
|
2021-09-02 22:25:45 +02:00
|
|
|
scene.update()
|
|
|
|
scene.update_mouse_events(pygame.mouse.get_pos(), pygame.mouse.get_pressed(3)[0])
|
2021-09-02 19:56:28 +02:00
|
|
|
scene.progress()
|
2021-09-03 16:44:18 +02:00
|
|
|
#scene.save(f"Render/{i}.png", [800, 800])
|
2021-09-01 18:23:35 +02:00
|
|
|
|
|
|
|
if i < 150:
|
|
|
|
screen_size[0] += 3
|
|
|
|
elif i < 250:
|
|
|
|
screen_size[1] += 2
|
|
|
|
else:
|
|
|
|
screen_size -= 4
|
|
|
|
|
2021-09-01 11:56:26 +02:00
|
|
|
time.sleep(0.01)
|