examples/whack-a-mole/js/entities/entities.js
function() {
        var finalpos = this.initialPos - 140;
        this.displayTween = me.pool.pull("me.Tween", this.pos).to({y: finalpos }, 200);
        this.displayTween.easing(me.Tween.Easing.Quadratic.Out);
        this.displayTween.onComplete(this.onDisplayed.bind(this));
        this.displayTween.start();
        // the mole is visible
        this.isVisible = true;
    }
function() {
        var finalpos = this.initialPos - 140;
        this.displayTween = me.pool.pull("me.Tween", this.pos).to({y: finalpos }, 200);
        this.displayTween.easing(me.Tween.Easing.Quadratic.Out);
        this.displayTween.onComplete(this.onDisplayed.bind(this));
        this.displayTween.start();
        // the mole is visible
        this.isVisible = true;
    }
function ( ) { var finalpos = this . initialPos - 140 ; this . displayTween = me . pool . pull ( "me.Tween" , this . pos ) . to ( { y : finalpos } , 200 ) ; this . displayTween . easing ( me . Tween . Easing . Quadratic . Out ) ; this . displayTween . onComplete ( this . onDisplayed . bind ( this ) ) ; this . displayTween . start ( ) ; // the mole is visible this . isVisible = true ; }
display the mole
goes out of the hole
display the mole goes out of the hole