-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGenerateStatic.py
More file actions
56 lines (40 loc) · 1.28 KB
/
GenerateStatic.py
File metadata and controls
56 lines (40 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import os
import pygame
from config import settings
from src import animations
from src import capture
from src import screen
from src import canvas_setup
from src import user_events
os.environ['SDL_VIDEO_CENTERED'] = '1'
def run():
if settings.screen_fps_limit:
clock = pygame.time.Clock()
done = False
canvas = canvas_setup.Setup()
animate = animations.Animations(canvas, pygame)
while not done:
canvas.screen.fill(settings.colors.BLACK)
# Checking if the user did something
done = user_events.check_events(canvas,pygame)
# Populating screen
# populate.entire_screen(canvas,pygame)
# Animate: Come and go
# animate.come_and_go()
# Animate: Inflate Deflate
# animate.inflate_deflate()
# Animate: Move around
# animate.move_around()
# Animate: VR Static
animate.VR_Static()
# Update Screen
screen.update(canvas,pygame)
if settings.screen_fps_limit:
clock.tick(settings.screen_fps)
# Take screenshots if in screenshot mode
if settings.screenshot_pics:
# TODO: break loop once video conversion starts
capture.screenshot(canvas,pygame)
pygame.quit()
if __name__ == "__main__":
run()