From 89d16e6dc063730b6bf7a02c3623d15707c94d5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Mart=C3=ADn?= Date: Fri, 31 May 2013 18:30:33 +0200 Subject: [PATCH] Camera .move() method --- minecraftcodex/studio/static/coffee/cameras.coffee | 4 ++++ minecraftcodex/studio/templates/studio/main.html | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/minecraftcodex/studio/static/coffee/cameras.coffee b/minecraftcodex/studio/static/coffee/cameras.coffee index 5de101c..9ad40f4 100644 --- a/minecraftcodex/studio/static/coffee/cameras.coffee +++ b/minecraftcodex/studio/static/coffee/cameras.coffee @@ -15,6 +15,10 @@ class Camera @_position.y += y @_position.z += z @_self.position = @_position + $('input.camera-x').val @_position.x + $('input.camera-y').val @_position.y + $('input.camera-z').val @_position.z + class orthograpicCamera extends Camera _self: null diff --git a/minecraftcodex/studio/templates/studio/main.html b/minecraftcodex/studio/templates/studio/main.html index 69aa792..53a155c 100644 --- a/minecraftcodex/studio/templates/studio/main.html +++ b/minecraftcodex/studio/templates/studio/main.html @@ -139,16 +139,16 @@
-
- + X - +
-
@@ -157,7 +157,7 @@
-