examples/whack-a-mole/js/entities/entities.js
function() {
        var finalpos = this.initialPos;
        this.displayTween = me.pool.pull("me.Tween", this.pos).to({y: finalpos }, 200);
        this.displayTween.easing(me.Tween.Easing.Quadratic.In);
        this.displayTween.onComplete(this.onHidden.bind(this));
        this.displayTween.start();
    }
function() {
        var finalpos = this.initialPos;
        this.displayTween = me.pool.pull("me.Tween", this.pos).to({y: finalpos }, 200);
        this.displayTween.easing(me.Tween.Easing.Quadratic.In);
        this.displayTween.onComplete(this.onHidden.bind(this));
        this.displayTween.start();
    }
function ( ) { var finalpos = this . initialPos ; this . displayTween = me . pool . pull ( "me.Tween" , this . pos ) . to ( { y : finalpos } , 200 ) ; this . displayTween . easing ( me . Tween . Easing . Quadratic . In ) ; this . displayTween . onComplete ( this . onHidden . bind ( this ) ) ; this . displayTween . start ( ) ; }
hide the mole
goes into the hole
hide the mole goes into the hole