Skip to content

CirclePackingJS outdated #5

@becorey

Description

@becorey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions