Skip to content

Commit

Permalink
Switch to repulsor-based packing (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
lidavidm committed Apr 8, 2018
1 parent ecabe09 commit 94c78c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/game/level.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function startLevel(description, parse, store, stage) {
const nodes = state.get("nodes");

// Lay out the board.
const positions = layout.ianPacking(stage, {
const positions = layout.repulsorPacking(stage, {
x: 20,
y: 120,
w: stage.width - 40,
Expand Down Expand Up @@ -165,6 +165,7 @@ export function startLevel(description, parse, store, stage) {
});
}

// Bump things away from edges
animate.after(500).then(() => {
for (const topViewId of stage.getState().get("board")) {
stage.bumpAwayFromEdges(topViewId);
Expand Down

0 comments on commit 94c78c3

Please sign in to comment.