lzrtag / LZRTag

AVR-Based easily modifyable DIY Lasertag!
GNU General Public License v3.0
94 stars 11 forks source link

Implement a map-system for players #44

Open Xasin opened 6 years ago

Xasin commented 6 years ago

The map system should be an easy way of defining various zones with different actions that influence the gameplay. Such zones could be safe-zones, respawn zones, damage zones, capture regions etc. Each zone would have a unique identifier and a type, as well as an arbitrary shape (circular, convex polygon, potentially concave polygon).

Each map would contain a list of zones, as well as a definition of types, which then dictate what team is influenced how by the zone, how it should be displayed, etc. It would also contain information about how to convert GPS data into map x and y coordinates.

Each player's app would handle identifying which zone the player is currently in, and simply send the zone-id and zone type back to the server, thereby offloading those calculations.

To determine: