Hacker News new | ask | show | jobs
by flashgordon 1224 days ago
Can you elaborate on an example with games that have some form of "fog of war"? Or rather only some state is seen by X players?
1 comments

In Lockval Engine, a player data pair is on UID. A map block data can also be mapped to a UID. Or an observation point data can also correspond to a UID.

Lockval Engine provides a Watch function. Players can watch the UID of a certain map block or the UID of a certain observation point, so that a function similar to the fog of war can be realized.

This demo can be viewed in "Prepare a globalChat struct" and "send A message to globalChat" on the apidemo page. This demo can evolve a variety of similar functions.