mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
Added PointerLockManagement, Fixed layer positioning, added fps chart. fixes #120, fixes #121, fixes #123
This commit is contained in:
parent
8d0989844c
commit
60eae208a2
23 changed files with 458 additions and 109 deletions
|
|
@ -1,9 +1,8 @@
|
|||
define([
|
||||
"Lib/Utilities/Core/Extensions",
|
||||
"Lib/Vendor/Pixi"
|
||||
"Lib/Utilities/Core/Extensions"
|
||||
],
|
||||
|
||||
function (Parent, PIXI) {
|
||||
function (Parent) {
|
||||
|
||||
"use strict";
|
||||
});
|
||||
|
|
@ -31,11 +31,11 @@ function (CryptoJS) {
|
|||
0x739137,
|
||||
0x46824f,
|
||||
0x19b0b4,
|
||||
0x0c1eb1,
|
||||
0x1c1eb1,
|
||||
0xccb206,
|
||||
0x433e20,
|
||||
0x201a13,
|
||||
0x045396,
|
||||
0x145396,
|
||||
0x313d08,
|
||||
0xb7a345,
|
||||
0xdc168a,
|
||||
|
|
|
|||
|
|
@ -26,6 +26,10 @@ function (Exception) {
|
|||
var i = 0;
|
||||
this.ns = {
|
||||
client: {
|
||||
pointerLock: {
|
||||
request: null,
|
||||
change: null
|
||||
},
|
||||
view: {
|
||||
layer: {
|
||||
createAndInsert: null
|
||||
|
|
@ -53,7 +57,7 @@ function (Exception) {
|
|||
preloadBar: {
|
||||
update: null
|
||||
},
|
||||
fullscreen: {
|
||||
display: {
|
||||
change: null
|
||||
},
|
||||
debugMode: {
|
||||
|
|
|
|||
23
app/Lib/Utilities/QuerySelector.js
Normal file
23
app/Lib/Utilities/QuerySelector.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
define([
|
||||
],
|
||||
|
||||
function () {
|
||||
|
||||
"use strict";
|
||||
|
||||
function QuerySelector() {
|
||||
if (!document) {
|
||||
throw new Error("Using QuerySelector, but window.document is not defined.");
|
||||
}
|
||||
}
|
||||
|
||||
QuerySelector.prototype.$ = function(selector) {
|
||||
return document.querySelector(selector);
|
||||
}
|
||||
|
||||
QuerySelector.prototype.$$ = function(selector) {
|
||||
return document.querySelectorAll(selector);
|
||||
}
|
||||
|
||||
return new QuerySelector();
|
||||
});
|
||||
3
app/Lib/Vendor/Chart.js
vendored
Normal file
3
app/Lib/Vendor/Chart.js
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
define(["chart"], function (Chart) {
|
||||
return Chart;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue