summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-08-09 23:39:48 +0200
committerFlorian Jung <flo@windfisch.org>2015-08-09 23:39:48 +0200
commit94af883aa6fa75da3ed09a464874a644994b0828 (patch)
treec75779e008f2c2604cf45bd3fc1c5b90dc1edb67 /test.py
parent2a808b0d15b37cf82684ea634833bcb33dfc95bc (diff)
fix warnings
Diffstat (limited to 'test.py')
-rw-r--r--test.py7
1 files 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()