Added PointerLockManagement, Fixed layer positioning, added fps chart. fixes #120, fixes #121, fixes #123

This commit is contained in:
logsol 2015-02-27 18:44:30 +01:00
parent 8d0989844c
commit 60eae208a2
23 changed files with 458 additions and 109 deletions

View file

@ -1,9 +1,8 @@
define([
"Lib/Utilities/Core/Extensions",
"Lib/Vendor/Pixi"
"Lib/Utilities/Core/Extensions"
],
function (Parent, PIXI) {
function (Parent) {
"use strict";
});

View file

@ -31,11 +31,11 @@ function (CryptoJS) {
0x739137,
0x46824f,
0x19b0b4,
0x0c1eb1,
0x1c1eb1,
0xccb206,
0x433e20,
0x201a13,
0x045396,
0x145396,
0x313d08,
0xb7a345,
0xdc168a,

View file

@ -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: {

View 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();
});