diff options
| author | troido <troido@hotmail.com> | 2018-01-01 21:46:05 +0100 |
|---|---|---|
| committer | troido <troido@hotmail.com> | 2018-01-01 21:46:05 +0100 |
| commit | 4108e9d6de64b4b8e9980a02158df34651986475 (patch) | |
| tree | 3c699b2985d1a6eae92b833354c60a8aac32d23f /asciifarm/client/display | |
| parent | e87567fe44c9fca97d251b94d5d24ce4b590e8a3 (diff) | |
server now sends list of sprites per cell to client. ground uses eventtarget too in interaction with room
Diffstat (limited to 'asciifarm/client/display')
| -rw-r--r-- | asciifarm/client/display/display.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/asciifarm/client/display/display.py b/asciifarm/client/display/display.py index 1a2dca0..9a8595e 100644 --- a/asciifarm/client/display/display.py +++ b/asciifarm/client/display/display.py @@ -73,7 +73,8 @@ class Display: def drawFieldCells(self, cells): for cell in cells: - (x, y), spriteName = cell + (x, y), spriteNames = cell + spriteName = spriteNames[0] if len(spriteNames) else " " sprite = self.getChar(spriteName) self.fieldPad.changeCell(x, y, *sprite) #self.change() |
