owenashurst / agar.io-clone

Agar.io clone written with Socket.IO and HTML5 canvas
MIT License
2.88k stars 1.12k forks source link

When Split Not Able to Eat #516

Open PatrickKarkafi opened 6 years ago

PatrickKarkafi commented 6 years ago

When a player splits, no matter how large, he is not able to eat another player.

If you center your split blobs just right over the other player (like close all of your circles in on the other player), then you are able to eat the other player.

I also want to know how to make the eating more sensitive, so less of the player has to be in the other so that he gets digested.

Is there a known fix, or does anyone know how to fix this bug?

Thanks!

risalgue commented 6 years ago

any solution for that question for it's happenind to me too

IamBlockMan commented 6 years ago

You can update the code below at line 600 server.js to fix the killing bug:

var otherUsers = tree.get({x:currentCell.x, y: currentCell.y, w: currentCell.radius * 2, h: currentCell.radius * 2}, check);