summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/main.py b/main.py
index e91ba28..bd59cfc 100644
--- a/main.py
+++ b/main.py
@@ -1,15 +1,23 @@
import pygame
from constants import *
+from circleshape import *
+from player import *
def main():
pygame.init()
screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT))
+ clock = pygame.time.Clock()
+ dt = 0
+ player = Player(SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2)
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
return
screen.fill("black")
+ player.update(dt)
+ player.draw(screen)
pygame.display.flip()
+ dt = clock.tick(60) / 1000
if __name__ == "__main__":
main()