[Zscript] Map Exploration %
Posted: Thu Jan 10, 2019 12:29 pm
I'm sure you all know that shroud that gets revealed in RTS games as a unit moves.
I'm thinking of implementing a statistic feature:
-How much has the player explored the map ?
We have "secrets" but that doesn't tell much.
Brainstorming right now:
-Player actor emits linetrace rays often and in many directions, but with limited Range. If one and/or multiple linetraces hit walls, the sector that has those lines is added to an array or something.
In effect, player has a shroud-like-revelation that is used for sector mapping.
I guess the end result would be
total sectors - revealed sectors ... percentage wise. Thoughts ?
I'm thinking of implementing a statistic feature:
-How much has the player explored the map ?
We have "secrets" but that doesn't tell much.
Brainstorming right now:
-Player actor emits linetrace rays often and in many directions, but with limited Range. If one and/or multiple linetraces hit walls, the sector that has those lines is added to an array or something.
In effect, player has a shroud-like-revelation that is used for sector mapping.
I guess the end result would be
total sectors - revealed sectors ... percentage wise. Thoughts ?