xaya / taurion_gsp

Taurion - A Fully Decentralised MMO built for the Xaya Platform.

Home Page:https://taurion.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Entering and leaving buildings

domob1812 opened this issue · comments

We should add a hardcoded test building on the map (or maybe allow god mode to place buildings), and then implement entering and leaving buildings for characters. It should work like this:

  • Each building has a centre coordinate (and some shape around it, but that is not relevant yet).
  • A character can have the "intent" to enter a given building, which can be set with a move and will be stored in the character state.
  • When a character with intent to enter a building is within L1 range X of the building's centre, then it will automatically leave the map and enter the building.
  • When inside a building, no combat is happening. The character is "off the map".
  • Through another move, a character can leave the building again. This will put them onto a random free spot within radius X, like spawn (overflowing to further away if needed).
  • X is a number that is fixed per building type.