Tilt sensitivity

In this PR:

Added a back button.
Added a tilt sensitivity global variable to track user sensitivity.
added visual indicator of selection on sensitivity menu.

Notes:

There is some code in here that needs refactoring, but in the interest of time will be done in a future commit.
This is a good point. Will try to think of some way to fix it.

John Lok

m: +852 63131448
e: john.lok.djinn@gmail.com
w: http://johnlok.me

On Tue, Dec 16, 2014 at 10:44 PM, Mark Wilson <notifications@github.com>
wrote:
>
> In js/states/options.js
> <https://github.com/wdi-hk-sep-2014/baller/pull/16#discussion-diff-21901476>
> :
>
> > +    ];
> > +
> > +    var sensitivitySprites = {};
> > +
> > +    sensitivityOptions.forEach(
> > +      function(option){
> > +        var sprite = game.add.sprite(optionsTitle.position.x, optionsTitle.position.y + option.yOffset, option.name);
> > +        sprite.anchor.setTo(0.5, 0.5);
> > +        sprite.scale.setTo(0.3);
> > +        sprite.alpha = 0;
> > +        sprite.inputEnabled = true;
> > +        game.add.tween(sprite).to({alpha: 1}, 1000, Phaser.Easing.Quadratic.InOut, true, 1000 );
> > +        sensitivitySprites[option.name] = sprite;
> > +    });
> > +
> > +    sensitivitySprites.sense_medium.scale.setTo(0.5,0.5);
>
> This should check the current value of inputSensitivity (or maybe it
> should be stored as one of high, medium, low?) and make the relevant option
> big accordingly. If I set it to high and then go back into options, medium
> will always appear selected first.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/wdi-hk-sep-2014/baller/pull/16/files#r21901476>.
>