OgarProject / Ogar

An open source Agar.io server implementation, written with Node.js.
Other
717 stars 825 forks source link

Spawn solid object that cells can't pass through #330

Open AgarioCheats opened 8 years ago

AgarioCheats commented 8 years ago

How can i spawn a solid object (long square, for example) which cells can't pass through? Either invisible or visible (with color).

mrmarktyy commented 8 years ago

Try code a new entity with ignoreCollsion to false

Andrews54757 commented 8 years ago

ill try to do this in my fork if I have time

Luka967 commented 8 years ago

Agar.io client (going to site agar.io) only knows about the current ingame objects, such as player cells, viruses, etc. Making a new object requires a modded client. Or does it?

Andrews54757 commented 8 years ago

What I am thinking is that there is a normal cell with the name "barrier" that you "shoot" by pressing w or space in op mode (yes my fork has op) but you cannot pass through it. It is not really a new entity but it is good enough