owenashurst / agar.io-clone

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

Player on the virus [Bug, question] #405

Open AlexDicy opened 8 years ago

AlexDicy commented 8 years ago

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

ghost commented 8 years ago

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.

AlexDicy commented 8 years ago

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

AlexDicy commented 8 years ago

..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?

underGhost commented 8 years ago

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

AlexDicy commented 8 years ago

Thank you!

Ayelis commented 7 years ago

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.

AlexDicy commented 7 years ago

@Ayelis exactly

huytd commented 7 years ago

@rafaelsofizadeh @HAlexTM please be nice on the internet.

I deleted the comments with baaddddddddd worrddddssss

AlexDicy commented 7 years ago

@huytd alright thanks