fog of war has been mentioned before in several threads. i was wondering if the following idea for it could be implemented in byond, one copied from rogue-like games, but could also be used for strategy games.
when run, the game would have two maps in its memory. a "master map" with all of the normal information, and each player would have their own "player map". everything shown on the screen (if graphical) would come from the player map, which is absolutely empty in the beginning. the game would continously scan what is in "view range" and copy the information into the player map.
this would mean that in the beginning, the player would see nothing of the "main map" except for what is within sight. when he leaves an area, items and so may still appear to be there in his player map, but if moved or altered, this will automatically be updated with he comes within sight... a simulation of (inaccurate ;-) "memory". only changes within the range of sight will be noticed (and updated)
the problem would be saving objs and mobs into this player map as well, but it is not impossible, and a seperate function allowing a player to save his map on a local directory when logging off.
do you think it is possible to code this without getting TOO resource-intensive? and the problems with line of sight, capturing all of items within view... well, i would love to know what you think of it.
Dec 26 2000, 7:32 am