   return
 
 #Globals
+catCenterXpos = window.innerWidth / 2
+catCenterYpos = 280
 mouseXpos = false
+mouseYpos = false
 ANIMATION_SPEED = 4
 isAnimating = no
 startAngle = 0

# Update cat on mouse move
updateCat = ->
  if theBody and mouseXpos isnt false
    targetAngle = (180 * mouseXpos / window.innerWidth) - 45

    if Modernizr.touchevents
      return if targetAngle is currentAngle


document.addEventListener 'mousemove', (e) ->
  mouseXpos = e.clientX
  mouseYpos = e.clientY

window.addEventListener 'resize', ->
  catCenterXpos = window.innerWidth / 2

# Camera
camera.position.set cameraX + 1, cameraY + 1, cameraZ + 1
