summaryrefslogtreecommitdiff
path: root/public/assets/javascripts/rectangles/engine/scenery/image/_image.js
diff options
context:
space:
mode:
authorJulie Lala <jules@okfoc.us>2014-06-18 01:09:36 -0400
committerJulie Lala <jules@okfoc.us>2014-06-18 01:09:36 -0400
commit7771ed9a92f3b0da66e633c829316ac904300713 (patch)
tree08e2bd9fbf8d6fd9ba3dae379e17ba9a1fca4adc /public/assets/javascripts/rectangles/engine/scenery/image/_image.js
parent16558222941e1aebdefdd520bd70e06e80632d39 (diff)
parent345253cecbaaeaa1b43fdd2409490172f1108382 (diff)
Merge branch 'master' of github.com:okfocus/vvalls
Diffstat (limited to 'public/assets/javascripts/rectangles/engine/scenery/image/_image.js')
-rw-r--r--public/assets/javascripts/rectangles/engine/scenery/image/_image.js52
1 files changed, 0 insertions, 52 deletions
diff --git a/public/assets/javascripts/rectangles/engine/scenery/image/_image.js b/public/assets/javascripts/rectangles/engine/scenery/image/_image.js
deleted file mode 100644
index dadb2d2..0000000
--- a/public/assets/javascripts/rectangles/engine/scenery/image/_image.js
+++ /dev/null
@@ -1,52 +0,0 @@
-Scenery.image = function (wall, img) {
-
- var base = this
-
- base.wall = wall
- base.img = img
- base.dimensions = new vec2(img.width, img.height)
- base.center = wall.center()
- base.bounds = wall.bounds_for(img)
-
- // should be proportional to distance from wall
- var cursor_amp = 1.5
-
- base.init = function(){
- base.build()
- base.bind()
- }
-
- base.build = function(){
- base.mx_img = new MX.Image({
- src: img.src,
- x: base.center.a,
- y: Rooms.list[wall.room].height/2 - img.height/2 - 20,
- z: base.center.b,
- scale: 300/img.naturalWidth,
- rotationY: wall_rotation[ wall.side ],
- backface: false,
- })
- scene.add( base.mx_img )
- base.move = new Scenery.image.move (base)
- }
-
- base.bind = function(){
- base.move.bind()
-// base.resize.bind()
- $(base.mx_img.el).bind({
- mouseenter: function(e){
-// console.log('entered an image')
- // show the resize points for this image
- Scenery.resize.show(base)
- Scenery.image.hovering = true
- },
- mouseleave: function(e){
-// console.log('left an image')
- Scenery.resize.defer_hide(base)
- Scenery.image.hovering = false
- }
- })
- }
-
- return base
-}