Mercurial > rinkhals
comparison gamelib/gameboard.py @ 395:2d0ff46118e2
Basic support for z coordinate
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Thu, 12 Nov 2009 21:14:21 +0000 |
parents | bb75979b58e6 |
children | 19e583e5cdc0 |
comparison
equal
deleted
inserted
replaced
394:ad77b3b71b08 | 395:2d0ff46118e2 |
---|---|
774 | 774 |
775 def clear_foxes(self): | 775 def clear_foxes(self): |
776 for fox in self.foxes.copy(): | 776 for fox in self.foxes.copy(): |
777 # Any foxes that didn't make it to the woods are automatically | 777 # Any foxes that didn't make it to the woods are automatically |
778 # killed | 778 # killed |
779 if self.in_bounds(fox.pos) and self.tv.get(fox.pos.to_tuple()) \ | 779 if self.in_bounds(fox.pos) and \ |
780 != self.WOODLAND: | 780 self.tv.get(fox.pos.to_tile_tuple()) != self.WOODLAND: |
781 self.kill_fox(fox) | 781 self.kill_fox(fox) |
782 else: | 782 else: |
783 self.tv.sprites.remove(fox) | 783 self.tv.sprites.remove(fox) |
784 self.foxes = set() # Remove all the foxes | 784 self.foxes = set() # Remove all the foxes |
785 | 785 |