added images and texture for gl renderer

This commit is contained in:
Jeena 2013-11-25 17:16:52 +01:00
parent b77d209843
commit 071ad6bec5
332 changed files with 754 additions and 790 deletions

View file

@ -6,7 +6,6 @@ define(['Lib/Vendor/Three', 'Game/Config/Settings'], function (Three, Settings)
? true
: isOrthographic;
if(isOrthographic) {
this.camera = new Three.OrthographicCamera(
@ -29,6 +28,7 @@ define(['Lib/Vendor/Three', 'Game/Config/Settings'], function (Three, Settings)
}
this.camera.position.z = 481;
this.setPosition(0,0);
}
CameraController.prototype.getCamera = function () {
@ -36,8 +36,8 @@ define(['Lib/Vendor/Three', 'Game/Config/Settings'], function (Three, Settings)
}
CameraController.prototype.setPosition = function (x, y) {
this.camera.position.x = x;
this.camera.position.y = y;
this.camera.position.x = x + Settings.STAGE_WIDTH / 2;
this.camera.position.y = y - Settings.STAGE_HEIGHT / 2;
}