Comments (8)
Code is changed. Please edit your question or should we close this topic?
from ogar.
It's now on PlayerCell.js line 89. The 5 is the amount that a cell is pushed when your own cells are colliding. I suppose a config/const value could be put in somewhere for it, I'll leave that up to vram, but you start seeing some weird behaviour if it's much higher than 5 (for a lot of fun, try 100)!
from ogar.
A lot people on our forums hate the "pushing" feature of the game. People use it as an advantage on the teams mode allowing them to cheat for the other team.
from ogar.
After playing around a little, I think part of the '5' being there was because without it, your cells squish together a little bit.
I checked out the Teams.js and I don't think the pushing in teams mode is really intended to work the way it does. The stuff starting at line 114 is there to prevent the cells from overlapping. I tried pushing a smaller cell with a single much larger one and it moved a tiny bit, only a few pixels after pushing for a while. However, when I split into many cells and moved around the other one a bunch, it moved unpredictably. So I think there's something weird going on there that needs to get looked into further.
from ogar.
@Ephemerality Were you using the client i gave you? That one doesnt have the movement smoothing that the default client has, hence the jiggly movement.
from ogar.
Nope, vanilla.
from ogar.
@Jackster35 : my colleagues hate that also (that was the reason I make TeamX mode). They also hate moving virus, they like splitting virus (so, I'll tweak TeamX mode so that moving virus can be configurable (by code, not ini file) in that mode). Thanks God! they love 'eating teammates' of that mode. 😹
Comeback about team cell collision, I think vanilla has changed lately. Weeks ago, I played on vanilla and also crazy about 'pushing thing'. Yesterday, it changed. The new cell will move to its target position. If that position is inside a team cell, it will be pushed to outside of that cell. Direction of second moving is vector AB where A is the center of bigger cell, B is the center of smaller cell. (If A is same to B, any direction makes sense). After the second moving, if it collides with other cell, then it starts pushing. Same situation if the new cell overlaps a smaller cell, but now, the small cell will be moved. In other word, smaller cell of a overlap case will be moved outside the bigger one.
from ogar.
it is nowhere now.
from ogar.
Related Issues (20)
- How to deploy on Heroku? HOT 2
- Cannot play on Private Server HOT 4
- Agario Gold system game modes HOT 1
- Ogar, Agar plus, etc. not working!?!? HOT 3
- Selfhosted Client? HOT 3
- Unable to connect to local server ( http://agar.io/?ip=127.0.0.1:443 ) HOT 5
- > TypeError: Cannot read property 'headers' of undefined HOT 3
- Team mode leaderboard not working HOT 6
- Protocol 14 HOT 9
- problem HOT 5
- error HOT 2
- Change Player Speed HOT 1
- I NEED SOME HELP HOT 7
- Total Newb HOT 1
- My cell is blocked HOT 2
- call back must be a function HOT 2
- how do i download ogar HOT 2
- ogarproject.com is linked despite no longer being owned by this project HOT 6
- does anyone use this anymore and does it still work HOT 4
- Deprecation Issue: Buffer();
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ogar.