summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorSpitfireX <timm.weber@me.com>2015-08-09 23:37:15 +0200
committerSpitfireX <timm.weber@me.com>2015-08-09 23:37:15 +0200
commit2a808b0d15b37cf82684ea634833bcb33dfc95bc (patch)
treea9d548049ce5c20fd1900000cdf6850330c1db73 /test.py
parent715fd1fb19219cbde554a27b61b570b21b103c2b (diff)
Removed some crap
Diffstat (limited to 'test.py')
-rw-r--r--test.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/test.py b/test.py
index e44cf18..9212052 100644
--- a/test.py
+++ b/test.py
@@ -203,27 +203,19 @@ c.send_spectate()
screensize=(800,600)
screen=pygame.display.set_mode(screensize,HWSURFACE|DOUBLEBUF|RESIZABLE)
zoom = calc_zoom()
-i=0
while True:
pygame.event.pump()
clock.tick()
-
- i=i+1
- # print(i)
- if (i==30):
- c.send_respawn()
-
screen.fill((255,255,255))
- c.on_message()
+ c.on_message()
top = int((c.world.top_left[0] - c.player.center[1])*zoom + screensize[1]/2)
left = int((c.world.top_left[1] - c.player.center[0])*zoom + screensize[0]/2)
bottom = int((c.world.bottom_right[0] - c.player.center[1])*zoom + screensize[1]/2)
right = int((c.world.bottom_right[1] - c.player.center[0])*zoom + screensize[0]/2)
- # print ((top,bottom,left,right))
if (top >= 0): gfxdraw.hline(screen, 0, screensize[0], top, (0,0,0))
if (bottom <= screensize[1]): gfxdraw.hline(screen, 0, screensize[0], bottom, (0,0,0))
if (left >= 0): gfxdraw.vline(screen, left, 0, screensize[1], (0,0,0))
@@ -234,8 +226,6 @@ while True:
draw_leaderboard()
- # print(list(c.player.own_cells))
-
total_mass = 0
for cell in c.player.own_cells:
total_mass += cell.mass