diff options
author | Florian Jung <flo@windfisch.org> | 2015-08-08 04:31:59 +0200 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2015-08-08 04:31:59 +0200 |
commit | 61a5f8effb9b07fd4cdb7c38a6b9d0fd78c40c70 (patch) | |
tree | b7219ac1fc32bc364c3ab969dd53a9ae23278ae3 | |
parent | a54e3f0731cc72934e8dc28576d2d40b69a45af9 (diff) | |
parent | 18922c6138f2deb956e16cafbfe55c05add17fa1 (diff) |
Merge branch 'master' of muhkuh:~/agario-frickel
-rw-r--r-- | test.py | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -128,6 +128,12 @@ def drawCell(cell): if not (cell.is_ejected_mass or cell.is_food): gfxdraw.aacircle(screen, cx, cy, int(radius/2.5), (255,255,255)) gfxdraw.circle(screen, cx, cy, int(radius/2.5), (255,255,255)) + + font_size = 20 + pygame.font.init() + font = pygame.font.SysFont(pygame.font.get_default_font(), font_size) + surface = font.render(cell.name, 1, (0, 0, 0)) + screen.blit(surface, (cx - (surface.get_width()/2), cy + radius)) sub = MeinSubskribierer() c = client.Client(sub) @@ -144,7 +150,7 @@ c.send_facebook( print(c.is_connected) print(c.send_spectate()) -c.player.nick="Wyndfysch" +c.player.nick="test cell pls ignore" c.send_spectate() screensize=(800,600) |