I've been following the libtcod C++ tutorials on Roguebasin, and one thing that I haven't managed to get a handle on is preventing items on a given floor from randomizing every time the player moves between floors.
I'd like to allow the player to return to items that he's had to leave behind, but I'm struggling with exactly how to do that.
I've been trying to use an already-programmed function that saves all of the actors on the map, but no matter what I do, the game crashes or (thanks to the way the levels are generated) the items from the previous floor don't get deleted and end up inthe walls on the lower levels.
Any helpful suggestions for a clueless amateur?
|Location:||Huddersfield, West Yorkshire, UK|
|Nodes:||8 (1 / 7)|