Skip to content
Browse files

arms fall inward

  • Loading branch information...
1 parent 2003d5a commit c248d815ba2aa42fdda6aa09dff489538334fa5e @tj committed
Showing with 4 additions and 3 deletions.
  1. +4 −3 rain/public/game.js
View
7 rain/public/game.js
@@ -27,13 +27,14 @@ o(function(){
, min = Math.min;
function lookat(x, y) {
+ console.log(x * .1);
move('#guy-arm-right')
- .rotate(max(-(x * .10), -13))
+ .rotate(min(x * .1, 2))
.duration(500)
.end();
move('#guy-arm-left')
- .rotate(min(x * .05, 8))
+ .rotate(max(-(x * .1), -5))
.duration(500)
.end();
@@ -48,7 +49,7 @@ o(function(){
var off = balloons.offset();
lookat(off.left|0, off.top|0);
}, 200);
- }, 1000);
+ }, 700);
})
/**

0 comments on commit c248d81

Please sign in to comment.
Something went wrong with that request. Please try again.