diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2014-06-12 20:09:49 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2014-06-16 15:26:38 (GMT) |
commit | 771abfb9ec021e6fd120cb01eab394f5cbfa80f5 (patch) | |
tree | b7966cc72d2b26522692dfe4664e06a880429713 | |
parent | dba0488ae9ab21c87bc840eab6bb3b79223c3cd7 (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: |