From 77fef8285df7a44c6685d291da91635144841b6e Mon Sep 17 00:00:00 2001 From: Julius Riegel Date: Sat, 13 Jan 2018 15:12:22 +0100 Subject: [PATCH] More print debug stuff ay --- .idea/workspace.xml | 32 ++++++++++++++++---------------- main.py | 5 +++++ 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 7160b92..092ed34 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,7 +2,7 @@ - + @@ -456,16 +456,6 @@ - - - - - - - - - - @@ -474,5 +464,15 @@ + + + + + + + + + + \ No newline at end of file diff --git a/main.py b/main.py index df08aee..24ae181 100644 --- a/main.py +++ b/main.py @@ -40,13 +40,18 @@ def main(): clock.tick(25) for event in pygame.event.get(): if event.type == pygame.QUIT: + print('quit event') running = False dict = jstick.handle() + print('joystick handled') list.set_dict(dict) all_sprites.update() + print('updating sprites') update_rects = all_sprites.draw(screen.screen) + print('drawing sprites') screen.refresh(rectangles= update_rects) + print('refreshing screen') pygame.quit()