From 94af883aa6fa75da3ed09a464874a644994b0828 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Sun, 9 Aug 2015 23:39:48 +0200 Subject: fix warnings --- test.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test.py b/test.py index 9212052..9603571 100644 --- a/test.py +++ b/test.py @@ -7,16 +7,18 @@ import sys import math import time +global font_fallback font_fallback = False try: from pygame import freetype except: - global font_fallback font_fallback = True screensize = (0,0) zoom = 0.74 logging = False + +global movement movement = True clock = pygame.time.Clock() @@ -245,7 +247,6 @@ while True: if event.key == K_r: c.send_respawn() if event.key == K_s: - global movement movement = not movement if event.key == K_w: c.send_shoot() @@ -261,4 +262,4 @@ while True: if event.type == MOUSEMOTION: if movement: c.send_target(*win_to_world_pt(event.pos, c.player.center)) - pygame.display.update() \ No newline at end of file + pygame.display.update() -- cgit v1.2.3