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?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 19:47:40 |
Calls: | 6,646 |
Calls today: | 1 |
Files: | 12,190 |
Messages: | 5,327,322 |