agar.io-clone
agar.io-clone copied to clipboard
Player on the virus [Bug, question]
Hi, when I go in a virus it appear to be on the virus:
Virus: Red, Orange
Me: Green
Someone know how to fix this?
Another question: someone know how to make cells "cubic" ??
Thanks all
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.
Yes, but I was too small to explode, anyway old builds don't help...
..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?
@HAlexTM The difference between branch es6 and master is that master is written in es5. Also es6 has a little more refactoring.
Thank you!
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 exactly
@rafaelsofizadeh @HAlexTM please be nice on the internet.
I deleted the comments with baaddddddddd worrddddssss
@huytd alright thanks