projects
/
tabakrolletjie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ca5720
)
Deal with unserialized list positions
author
Neil
<neil@dip.sun.ac.za>
Sat, 10 Sep 2016 21:19:35 +0000
(23:19 +0200)
committer
Neil
<neil@dip.sun.ac.za>
Sat, 10 Sep 2016 21:20:40 +0000
(23:20 +0200)
tabakrolletjie/turnip.py
patch
|
blob
|
history
diff --git
a/tabakrolletjie/turnip.py
b/tabakrolletjie/turnip.py
index b67196a525da4d00d19c024aee3880399194a49c..b1bb5a4571f330027fe0b2ea74491636b60e1560 100644
(file)
--- a/
tabakrolletjie/turnip.py
+++ b/
tabakrolletjie/turnip.py
@@
-24,7
+24,7
@@
class Turnip(object):
self._age = kwargs.get('age', 0)
self._pos = kwargs.get('pos', (0, 0))
space = kwargs.get('space', None)
- self._rotation = 90 * (hash(
self._pos
) % 4)
+ self._rotation = 90 * (hash(
tuple(self._pos)
) % 4)
self._update_image()
self.eaten = False # Flag for boyd
self._body = pymunk.Body(0, 0, pymunk.Body.STATIC)