projects
/
koperkapel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f24d1db
)
game_pos should be a tuple.
author
Simon Cross
<hodgestar@gmail.com>
Sat, 5 Mar 2016 19:04:59 +0000
(21:04 +0200)
committer
Simon Cross
<hodgestar@gmail.com>
Sat, 5 Mar 2016 19:04:59 +0000
(21:04 +0200)
koperkapel/gamelib/items.py
patch
|
blob
|
history
diff --git
a/koperkapel/gamelib/items.py
b/koperkapel/gamelib/items.py
index b125d444b1362f547ad8797fc7944cc7c18c2400..9ef2ff61fbb51369f7aeb040a3018021be61f95f 100644
(file)
--- a/
koperkapel/gamelib/items.py
+++ b/
koperkapel/gamelib/items.py
@@
-22,7
+22,7
@@
ITEM_TYPES = {
def get_item(item):
item_type = item.pop("type")
- game_pos =
item.pop("pos"
)
+ game_pos =
tuple(item.pop("pos")
)
actor = ITEM_TYPES[item_type](item)
actor.game_pos = game_pos
actor.anchor = (0, 0)