-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
33 lines (25 loc) · 693 Bytes
/
main.py
File metadata and controls
33 lines (25 loc) · 693 Bytes
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
import pygame, sys
from world import *
import game_menu
from score import Scoreboard
import animation
import clouds
print(animation.import_animations("assets/lumberjack/run"))
pygame.init()
screen = pygame.display.set_mode((width, height))
clock = pygame.time.Clock()
pygame.display.set_caption("Lumberjack's Revenge")
world = World(level, screen)
world.create_world()
cloud_group = clouds.create_clouds(8)
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()
screen.fill((135, 206, 235))
cloud_group.draw(screen)
world.draw()
pygame.display.flip()
clock.tick(60)