RealtimeMultiplayerNodeJs icon indicating copy to clipboard operation
RealtimeMultiplayerNodeJs copied to clipboard

CirclePackingJS outdated

Open becorey opened this issue 13 years ago • 0 comments

I believe the js/lib/circlecollision is outdated from your CirclePackingJS repo. There it is fixed, but in this repo CircleManager.js should be

// Wrap X if(boundsRule & wrapXMask && xpos-diameter > this.bounds.width) { aCircle.position.x = this.bounds.x - radius; } else if(boundsRule & wrapXMask && xpos+diameter < this.bounds.x) { aCircle.position.x = this.bounds.width + radius; }

Currently they are both " - radius" so the circle will appear to jump on the right side when you navigate your player through the left boundary. I want to say thanks for releasing this its really great for getting started making a multiplayer game.

becorey avatar Mar 23 '12 05:03 becorey