-
Notifications
You must be signed in to change notification settings - Fork 0
game rules
At start set amount of resources are spawned.
Each player when joining receives one unit placed on a random field unoccupied by any other unit.
Player can request their units to move, attack other units or to mine a resource.
Each unit can perform only one action per game tick.
Units can move only on side neighbouring fields (no diagonal movement).
Units can attack other units only on side neighbouring fields.
Units that belong to same player can attack each other. (friendly fire is on)
If unit hp reaches 0 it is deleted. If player gets kicked out of the game whenever they loose all the units.
Units can only mine resources that are on the same field.
With each mining action performed by unit resource hp is lowered by set amount. (unitDamage) Resource mining can be interpreted as attacking the resource. If resource is mined (it's hp reaches 0) player is granted with an extra unit spawned on a closest field to where the mined resource was.
Every game tick there is a set chance that resource will spawn.
Resources spawn on random fields with no resource. (No more than once resource can be on one field) Resource can spawn on fields occupied by units.
Game ends when one player acquires a set amount of units. That player becomes the winner.