replaced ){ with ) {

This commit is contained in:
logsol 2012-07-28 15:00:59 +02:00
parent 76daceb2e7
commit 551fc943c9
20 changed files with 56 additions and 56 deletions

View file

@ -1,4 +1,4 @@
define(function (){
define(function () {
function Key () {
this._active = false;

View file

@ -1,4 +1,4 @@
define(["Game/Core/Control/InputController", "Game/Client/Control/KeyboardInput"], function (InputController, KeyboardInput){
define(["Game/Core/Control/InputController", "Game/Client/Control/KeyboardInput"], function (InputController, KeyboardInput) {
function KeyboardController (me, gameController) {

View file

@ -1,4 +1,4 @@
define(["Game/Client/Control/Key"], function (Key){
define(["Game/Client/Control/Key"], function (Key) {
function KeyboardInput (keyboardController) {

View file

@ -41,7 +41,7 @@ function (ProtocolHelper, GameController) {
console.log('disconnected. game destroyed. no auto-reconnect');
}
Networker.prototype.join = function (channelName){
Networker.prototype.join = function (channelName) {
this.sendCommand('join', channelName);
}

View file

@ -31,17 +31,17 @@ define(['Lib/Vendor/Three', 'Game/Config/Settings'], function (Three, Settings)
this.camera.position.z = 481;
}
CameraController.prototype.getCamera = function (){
CameraController.prototype.getCamera = function () {
return this.camera;
}
CameraController.prototype.setPosition = function (x, y){
CameraController.prototype.setPosition = function (x, y) {
this.camera.position.x = x;
this.camera.position.y = y;
}
CameraController.prototype.setZoom = function (z){
CameraController.prototype.setZoom = function (z) {
this.camera.position.z = z;
}

View file

@ -5,7 +5,7 @@ define(['Game/Config/Settings'], function (Settings) {
debugCanvas: null
};
DomController.getCanvasContainer = function (){
DomController.getCanvasContainer = function () {
var container = document.getElementById(Settings.CANVAS_DOM_ID);
if(container) {
@ -15,14 +15,14 @@ define(['Game/Config/Settings'], function (Settings) {
}
}
DomController.getCanvas = function (){
DomController.getCanvas = function () {
return DomController.canvas;
}
DomController.setCanvas = function (canvas){
DomController.setCanvas = function (canvas) {
var container = DomController.getCanvasContainer();
if(DomController.canvas){
if(DomController.canvas) {
container.removeChild(DomController.canvas);
}
@ -30,14 +30,14 @@ define(['Game/Config/Settings'], function (Settings) {
container.appendChild(canvas);
}
DomController.getDebugCanvas = function (){
DomController.getDebugCanvas = function () {
return DomController.debugCanvas;
}
DomController.createDebugCanvas = function (){
DomController.createDebugCanvas = function () {
var container = DomController.getCanvasContainer();
if(DomController.debugCanvas){
if(DomController.debugCanvas) {
container.removeChild(DomController.debugCanvas);
}

View file

@ -5,9 +5,9 @@ var requires = [
"Game/Client/View/CameraController"
];
define(requires, function (DomController, Three, Settings, CameraController){
define(requires, function (DomController, Three, Settings, CameraController) {
function ViewController (){
function ViewController () {
this.mesh = null;
this.scene = null;
@ -25,7 +25,7 @@ define(requires, function (DomController, Three, Settings, CameraController){
}
}
ViewController.prototype.init = function (){
ViewController.prototype.init = function () {
var self = this;
@ -45,7 +45,7 @@ define(requires, function (DomController, Three, Settings, CameraController){
DomController.setCanvas(this.renderer.domElement);
if(Settings.DEBUG_MODE){
if(Settings.DEBUG_MODE) {
DomController.createDebugCanvas();
}
@ -61,12 +61,12 @@ define(requires, function (DomController, Three, Settings, CameraController){
this.scene.add(directionalLight);
this.createMesh(100, 100, 100, 100, 'static/img/100.png', function (mesh){
this.createMesh(100, 100, 100, 100, 'static/img/100.png', function (mesh) {
self.mesh = mesh;
self.scene.add(mesh);
});
/*
this.createMesh(50, 50, 200, 100, 'static/img/100.png', function (mesh){
this.createMesh(50, 50, 200, 100, 'static/img/100.png', function (mesh) {
self.scene.add(mesh);
});
*/
@ -93,7 +93,7 @@ define(requires, function (DomController, Three, Settings, CameraController){
ViewController.prototype.createMesh = function (width, height, x, y, imgPath, callback) {
var textureImg = new Image();
textureImg.onload = function (){
textureImg.onload = function () {
var material = new Three.MeshLambertMaterial({
map: Three.ImageUtils.loadTexture(imgPath)
});