diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2014-06-12 20:09:49 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2014-06-12 20:09:49 (GMT) |
commit | 5f1aa0a66cabf28738c1eab9d83a315c108b3f60 (patch) | |
tree | c0f0eac656a9aa12893683255cc028f3a51f2085 | |
parent | e30f59e74d48fad17a4fb6429512a6bf4510da8d (diff) |
Be sure the main payer is drawn on top
-rw-r--r-- | game.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -234,10 +234,13 @@ class MazeGame(Gtk.DrawingArea): for y in range(0, self.maze.height): drawPoint(x, y) + main_player = self.localplayers[0] # draw all players for player in self.allplayers: - if not player.hidden: + if not player.hidden and player != main_player: player.draw(ctx, self.bounds, self.tileSize) + # draw last the main player + main_player.draw(ctx, self.bounds, self.tileSize) def set_show_trail(self, show_trail): if self._show_trail != show_trail: |