Igor-Lira / bee-empire

A strategy multiplayer game to expand your bee empire over enemies corners.
MIT License
5 stars 2 forks source link

Check in which hexagon bee is #8

Closed Igor-Lira closed 5 months ago

Igor-Lira commented 7 months ago

Use the center of the square (xc, yc) as reference and check if(xc, yc)is inside a hexagon. Use this feature to update the bee.currentHexagon property. Later on, we will check collisions, looking for each hexagon and for the bees inside each hexagon (this will be more efficient)