2021-09-02 22:25:45 +02:00
|
|
|
import pygame.mouse
|
|
|
|
|
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-13 20:32:50 +02:00
|
|
|
from TuGUI.Sample_Scenes.BasicScene import BasicScene
|
2021-09-13 20:21:11 +02:00
|
|
|
|
2021-09-01 18:23:35 +02:00
|
|
|
screen_size = a([200, 500])
|
2021-09-13 20:21:11 +02:00
|
|
|
scene = BasicScene(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-01 18:23:35 +02:00
|
|
|
|
|
|
|
if i < 150:
|
|
|
|
screen_size[0] += 3
|
|
|
|
elif i < 250:
|
|
|
|
screen_size[1] += 2
|
|
|
|
else:
|
2021-09-08 18:58:59 +02:00
|
|
|
pass
|
2021-09-01 18:23:35 +02:00
|
|
|
screen_size -= 4
|
|
|
|
|
2021-09-10 19:36:15 +02:00
|
|
|
time.sleep(0.1)
|