agar.io-clone icon indicating copy to clipboard operation
agar.io-clone copied to clipboard

Player on the virus [Bug, question]

Open AlexDicy opened this issue 8 years ago • 9 comments

Hi, when I go in a virus it appear to be on the virus: Virus: Red, Orange Me: Green onpaste 20160501-154923 Someone know how to fix this? Another question: someone know how to make cells "cubic" ??

Thanks all

AlexDicy avatar May 01 '16 13:05 AlexDicy

Mine exploded to smaller particles when meet the virus. Do you make any changes to your code? Try using & build the previous revision, and see what is the difference that causing the bug.

ghost avatar May 02 '16 13:05 ghost

Yes, but I was too small to explode, anyway old builds don't help...

AlexDicy avatar May 03 '16 15:05 AlexDicy

..Wait a moment, I saw other branches... like the "es6" I saw some commit like virus to image, and I really like it, what's the difference between the master and the es6 branch? thank you and for make player's cell cubic? how to change drawCircle to draw a square?

AlexDicy avatar May 03 '16 15:05 AlexDicy

@HAlexTM The difference between branch es6 and master is that master is written in es5. Also es6 has a little more refactoring.

underGhost avatar May 05 '16 17:05 underGhost

Thank you!

AlexDicy avatar May 05 '16 18:05 AlexDicy

Does this issue regard the player being shown 'above' the virus instead of hidden 'below' it?

To make cells square, you would have to do collision detection differently. I believe the collision is done here by checking the distance from a cell, and not the shape of the cell. That would probably have to be changed on both the client and the server code. Also, drawing the cell would be different, which would be just in the client code.

Ayelis avatar May 05 '17 03:05 Ayelis

@Ayelis exactly

AlexDicy avatar May 05 '17 04:05 AlexDicy

@rafaelsofizadeh @HAlexTM please be nice on the internet.

I deleted the comments with baaddddddddd worrddddssss

huytd avatar May 11 '17 17:05 huytd

@huytd alright thanks

AlexDicy avatar May 11 '17 18:05 AlexDicy