diff --git a/web/shuffle/deck.js b/web/shuffle/deck.js index 224b668..6c5b1ef 100644 --- a/web/shuffle/deck.js +++ b/web/shuffle/deck.js @@ -810,9 +810,10 @@ var Deck = (function () { delay: delay, duration: 400, - x: -Math.round((6.75 - rank) * 8 * ___fontSize / 16), - y: -Math.round((2.5 - suit) * 220 * ___fontSize / 16), // distance between piles? - rot: 0, + x: -Math.round((1.15 - suit) * 140 * ___fontSize / 16), + // y: -Math.round((1.1 - suit) * 220 * ___fontSize / 16), + y: 100, + rot: Math.floor((Math.random() - 0.5) * 6), onComplete: function onComplete() { cb(i); diff --git a/web/shuffle/example.js b/web/shuffle/example.js index 85c972d..c9682b5 100644 --- a/web/shuffle/example.js +++ b/web/shuffle/example.js @@ -160,7 +160,7 @@ $fan.addEventListener('click', function () { deck.mount($container) deck.intro() -deck.sort() +deck.bysuit() // secret message..