From 381b9bc444a6500e546bc5f8920d5e914c24d46e Mon Sep 17 00:00:00 2001 From: rezoner Date: Fri, 10 Mar 2017 17:23:01 +0100 Subject: [PATCH] Slack link in README.MD --- README.md | 2 +- build/commonjs/playground-base.js | 8 ++++++++ build/commonjs/playground.js | 9 +++++++++ build/playground-base.js | 8 ++++++++ build/playground.js | 9 +++++++++ src/GameLoop.js | 7 +++++++ 6 files changed, 42 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0a7522a..9755b33 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Out-of-box access to essentials like mouse, keyboard, sound and well designed architecture that you can expand to your needs. -Need instant help? [Join our official slack](https://playgroundjs.slack.com/messages/general/) +Need instant help? [Join our official slack](https://playgroundjs.signup.team/) ## Core feature diff --git a/build/commonjs/playground-base.js b/build/commonjs/playground-base.js index a5ecf0c..60054ff 100644 --- a/build/commonjs/playground-base.js +++ b/build/commonjs/playground-base.js @@ -1954,9 +1954,16 @@ PLAYGROUND.GameLoop = function(app) { app.lifetime += dt; app.elapsed = dt; + // app.emitLocalEvent("framestart", dt); + step(dt); + + // app.emitLocalEvent("framemid", dt); + render(dt); + // app.emitLocalEvent("frameend", dt); + app.opcost = delta / 1000; app.ops = 1000 / app.opcost; @@ -2509,6 +2516,7 @@ PLAYGROUND.Keyboard.prototype = { PLAYGROUND.Utils.extend(PLAYGROUND.Keyboard.prototype, PLAYGROUND.Events.prototype); + /* file: src/Pointer.js */ /** Abstracts away differences between mouse and touches. diff --git a/build/commonjs/playground.js b/build/commonjs/playground.js index 2e2bcc2..8f52c88 100644 --- a/build/commonjs/playground.js +++ b/build/commonjs/playground.js @@ -1954,9 +1954,16 @@ PLAYGROUND.GameLoop = function(app) { app.lifetime += dt; app.elapsed = dt; + // app.emitLocalEvent("framestart", dt); + step(dt); + + // app.emitLocalEvent("framemid", dt); + render(dt); + // app.emitLocalEvent("frameend", dt); + app.opcost = delta / 1000; app.ops = 1000 / app.opcost; @@ -2509,6 +2516,7 @@ PLAYGROUND.Keyboard.prototype = { PLAYGROUND.Utils.extend(PLAYGROUND.Keyboard.prototype, PLAYGROUND.Events.prototype); + /* file: src/Pointer.js */ /** Abstracts away differences between mouse and touches. @@ -8078,6 +8086,7 @@ PLAYGROUND.Canvas.prototype = { }; + /* file: src/layer/Transitions.js */ /** Animation played when changing state with canvas render. diff --git a/build/playground-base.js b/build/playground-base.js index 269078f..4a985db 100644 --- a/build/playground-base.js +++ b/build/playground-base.js @@ -1953,9 +1953,16 @@ PLAYGROUND.GameLoop = function(app) { app.lifetime += dt; app.elapsed = dt; + // app.emitLocalEvent("framestart", dt); + step(dt); + + // app.emitLocalEvent("framemid", dt); + render(dt); + // app.emitLocalEvent("frameend", dt); + app.opcost = delta / 1000; app.ops = 1000 / app.opcost; @@ -2508,6 +2515,7 @@ PLAYGROUND.Keyboard.prototype = { PLAYGROUND.Utils.extend(PLAYGROUND.Keyboard.prototype, PLAYGROUND.Events.prototype); + /* file: src/Pointer.js */ /** Abstracts away differences between mouse and touches. diff --git a/build/playground.js b/build/playground.js index 7b30639..2207273 100644 --- a/build/playground.js +++ b/build/playground.js @@ -1953,9 +1953,16 @@ PLAYGROUND.GameLoop = function(app) { app.lifetime += dt; app.elapsed = dt; + // app.emitLocalEvent("framestart", dt); + step(dt); + + // app.emitLocalEvent("framemid", dt); + render(dt); + // app.emitLocalEvent("frameend", dt); + app.opcost = delta / 1000; app.ops = 1000 / app.opcost; @@ -2508,6 +2515,7 @@ PLAYGROUND.Keyboard.prototype = { PLAYGROUND.Utils.extend(PLAYGROUND.Keyboard.prototype, PLAYGROUND.Events.prototype); + /* file: src/Pointer.js */ /** Abstracts away differences between mouse and touches. @@ -8077,6 +8085,7 @@ PLAYGROUND.Canvas.prototype = { }; + /* file: src/layer/Transitions.js */ /** Animation played when changing state with canvas render. diff --git a/src/GameLoop.js b/src/GameLoop.js index 5ad4c94..483822b 100644 --- a/src/GameLoop.js +++ b/src/GameLoop.js @@ -45,9 +45,16 @@ PLAYGROUND.GameLoop = function(app) { app.lifetime += dt; app.elapsed = dt; + // app.emitLocalEvent("framestart", dt); + step(dt); + + // app.emitLocalEvent("framemid", dt); + render(dt); + // app.emitLocalEvent("frameend", dt); + app.opcost = delta / 1000; app.ops = 1000 / app.opcost;