Issue with seeded map generation

Graham Fielding frednotbob at hotmail.ca
Sat Dec 8 22:32:22 CET 2012





Hey, all! I've managed to get my project to a semi-playable state (everything functions, if not precisely the way I'd like it to).  One small issue is that when the player movs from one level to the next, the items and monsters in the previous level all 'reset' and return to the positions they had when the level was seeded. I've puzzled over (and attempted) quite a few workarounds, and had no success.  I don't want to pickle the entire level (that would be overkill for what I need), but I want to update the item/monster locations so the player can drop an item and come back to it later. Should I add something to the 'drop_item' function, or call soemthing in make_map? 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20121208/40b8a736/attachment.html>


More information about the Python-list mailing list