game_pos should be a tuple.
authorSimon Cross <hodgestar@gmail.com>
Sat, 5 Mar 2016 19:04:59 +0000 (21:04 +0200)
committerSimon Cross <hodgestar@gmail.com>
Sat, 5 Mar 2016 19:04:59 +0000 (21:04 +0200)
koperkapel/gamelib/items.py

index b125d444b1362f547ad8797fc7944cc7c18c2400..9ef2ff61fbb51369f7aeb040a3018021be61f95f 100644 (file)
@@ -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)