System.register([], function(exports_1) {
    var Robe;
    return {
        setters:[],
        execute: function() {
            Robe = (function () {
                function Robe(sprite) {
                    var _this = this;
                    this.sprite = sprite;
                    this.turnLeft = function () {
                        _this.animLeft();
                        _this.sprite.animations.stop();
                    };
                    this.turnRight = function () {
                        _this.animRight();
                        _this.sprite.animations.stop();
                    };
                    this.turnUp = function () {
                        _this.animUp();
                        _this.sprite.animations.stop();
                    };
                    this.turnDown = function () {
                        _this.animDown();
                        _this.sprite.animations.stop();
                    };
                    this.animLeft = function () {
                        _this.sprite.play('left');
                    };
                    this.animRight = function () {
                        _this.sprite.play('right');
                    };
                    this.animUp = function () {
                        _this.sprite.play('up');
                    };
                    this.animDown = function () {
                        _this.sprite.play('down');
                    };
                    this.walkLeft = function () {
                        _this.sprite.position.add(-2, 0);
                    };
                    this.walkRight = function () {
                        _this.sprite.position.add(2, 0);
                    };
                    this.walkUp = function () {
                        _this.sprite.position.add(0, -2);
                    };
                    this.walkDown = function () {
                        _this.sprite.position.add(0, 2);
                    };
                    sprite.smoothed = false;
                    sprite.scale.setTo(1.5, 1.5);
                    sprite.animations.add('down', ['01.png', '02.png', '03.png', '04.png'], 6, true, false);
                    sprite.animations.add('up', ['05.png', '06.png', '07.png', '08.png'], 6, true, false);
                    sprite.animations.add('left', ['09.png', '10.png', '11.png', '12.png'], 6, true, false);
                    sprite.animations.add('right', ['13.png', '14.png', '15.png', '16.png'], 6, true, false);
                    sprite.animations.add('hands_up_down', ['17.png', '18.png', '19.png'], 4, true, false);
                    sprite.animations.add('fall', ['24.png', '25.png'], 2, false, false);
                    sprite.animations.add('naked', ['26.png'], 1, false, false);
                }
                return Robe;
            })();
            exports_1("Robe", Robe);
        }
    }
});
//# sourceMappingURL=Robe.js.map