You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 5, 2019. It is now read-only.
Add calculated fov for the clients. Current suggestion for map_update_response:
{
"npcs": [/* list of visible npcs here */]
"x": /* x position of player */
"y": /* y position of player */
"fov": [] /* a 9x9 array of 0 or 1 values. Center of array indicates player position (see above), can extend beyond map boundaries as center is always player position. */
}
Example fov of a player standing on position (0, 0) of a map without obstacles:
0 - visible, no darkness
1 - semi-visible, darkness (this is if you can see in the dark, and the darkness spell is cast here)
2 - reserved
3 - actual fov blocking
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add calculated fov for the clients. Current suggestion for map_update_response:
Example fov of a player standing on position (0, 0) of a map without obstacles:
Array access can be determined by x + y * 9.
The text was updated successfully, but these errors were encountered: