blob: 46cf90edcadc48b94088b9f8da740632ca720db7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
from setup import *
from pygametools.label import Label, Button
# Set the dimensions of the screen
screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT))
# Main loop
is_running = True
while is_running:
screen.fill(background_colour)
# Check if the window is closed
if pygame.event.peek(pygame.QUIT):
is_running = False
# Update the window and find delta
pygame.display.update()
delta = clock.tick(fps)
# Exit pygame
pygame.quit()
|