X-Git-Url: https://git.yukkurigames.com/?p=pwl6.git;a=blobdiff_plain;f=src%2Fpwl6.js;h=4e87c1856ae62c47f0c4e446a7bbbb99edec0dc3;hp=dc50206aed09a4d5d154e63162af57f0d41fd4b1;hb=7ed7efce440917bb7a30890373a6f955f4a45554;hpb=d2962105772fbdc548118bd65cd5bb4934e66085 diff --git a/src/pwl6.js b/src/pwl6.js index dc50206..4e87c18 100644 --- a/src/pwl6.js +++ b/src/pwl6.js @@ -243,10 +243,9 @@ var AnimationQueue = yT(yuu.C, { params: params, resolve: resolve }); - // FIXME: Simply chaining the promise doesn't work here - // because the tick between the two handlers is often long - // enough to render a frame, and that frame will have some - // undesirable intermediate state. + // Chaining the promise doesn't work here because the tick + // between the two handlers is often long enough to render + // a frame with some undesirable intermediate state. if (this._queue.length === 1) this._runNext(); }.bind(this)); @@ -580,9 +579,10 @@ HandScene = yT(yuu.Scene, { this.right.addChild(r); var SIZE_X = yuu.random.gauss(1.2, 0.15) * 0.35; var SIZE_Y = yuu.random.gauss(1.1, 0.05) * 0.51; - var hand = yuu.random.randrange(3); - this.leftQuad.texBounds = this.rightQuad.texBounds = [ - hand / 2.99, 0, (hand + 1) / 3.01, 1]; + var handLeft = yuu.random.randrange(4); + var handRight = yuu.random.randrange(4); + this.leftQuad.texBounds = [handLeft / 4, 0, (handLeft + 1) / 4, 1]; + this.rightQuad.texBounds = [handRight / 4, 0, (handRight + 1) / 4, 1]; this.layer0.resize(-0.75, 0, 1.5, 1.5); var leftWrist = new yuu.E( new yuu.Transform([-0.20, 0, 0], null, @@ -1715,7 +1715,7 @@ BookScene = new yT(yuu.Scene, { p = this.layer0.worldFromDevice(p); if (this.current === BOOK_FORWARD.length - 1 && this.LOGOTYPE.contains(p)) { - yuu.openURL("http://www.yukkurigames.com/"); + yuu.openURL("https://www.yukkurigames.com/"); } else if (this.current === 0 && this.COLOPHON.contains(p)) { yuu.director.showOverlay("colophon"); } else if (this.current === 0 || p.x >= -0.2) {