From 94c78c362523b21c0756d5840abc1162f0a24687 Mon Sep 17 00:00:00 2001 From: David Li Date: Sun, 8 Apr 2018 10:23:38 -0400 Subject: [PATCH] Switch to repulsor-based packing (#123) --- src/game/level.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/level.js b/src/game/level.js index 1938bc74..b841c59d 100644 --- a/src/game/level.js +++ b/src/game/level.js @@ -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, @@ -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);