diff options
author | Florian Jung <flo@windfisch.org> | 2015-08-09 23:39:48 +0200 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2015-08-09 23:39:48 +0200 |
commit | 94af883aa6fa75da3ed09a464874a644994b0828 (patch) | |
tree | c75779e008f2c2604cf45bd3fc1c5b90dc1edb67 | |
parent | 2a808b0d15b37cf82684ea634833bcb33dfc95bc (diff) |
fix warnings
-rw-r--r-- | test.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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() |