mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
added images and texture for gl renderer
This commit is contained in:
parent
b77d209843
commit
071ad6bec5
332 changed files with 754 additions and 790 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue