comparison entities/__init__.py @ 44:98f26f7636d8

Changes to make PARPG "runable" with grease. (With the correct modified assets)
author KarstenBock@gmx.net
date Tue, 06 Sep 2011 15:22:51 +0200
parents 895be696ae86
children 2727d6b78978
comparison
equal deleted inserted replaced
43:8f9e9f47c363 44:98f26f7636d8
45 # add the extra info 45 # add the extra info
46 for key, val in extra.items(): 46 for key, val in extra.items():
47 info[key] = val 47 info[key] = val
48 48
49 # this is for testing purposes 49 # this is for testing purposes
50 return getAllEntities()[ent_type](world, **info) 50 try:
51 return getAllEntities()[ent_type](world, **info)
52 except KeyError:
53 return None