Code Monkey home page Code Monkey logo

Comments (8)

maixuanhan avatar maixuanhan commented on May 18, 2024

Code is changed. Please edit your question or should we close this topic?

from ogar.

Ephemerality avatar Ephemerality commented on May 18, 2024

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.

TheEpTic avatar TheEpTic commented on May 18, 2024

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.

Ephemerality avatar Ephemerality commented on May 18, 2024

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.

vram4 avatar vram4 commented on May 18, 2024

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

Ephemerality avatar Ephemerality commented on May 18, 2024

Nope, vanilla.

from ogar.

maixuanhan avatar maixuanhan commented on May 18, 2024

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

 avatar commented on May 18, 2024

it is nowhere now.

from ogar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.