       @animations = @sprite.animations
       @_initAnimations()
 
+      @cursors = game.input.keyboard.createCursorKeys()
+      @direction = Direction.Right
+
       game.physics.arcade.enable @sprite
-      @physics = @sprite.body
-      @velocity = @physics.velocity
-      @acceleration = @physics.acceleration
-      @direction = Direction.Right
       @gravity = game.physics.arcade.gravity
       @_initPhysics()
-
-      @cursors = game.input.keyboard.createCursorKeys()
 
       @debugging = on
       @debugTextItems = {}

      @jumpMaxDuration = 500
      @jumpVelocityFactor = 1 / 4

      @runAcceleration = 300

      @maxVelocity =

      @animations.add 'end', [34...53], 12

    _initPhysics: ->
      @physics = @sprite.body
      @velocity = @physics.velocity
      @acceleration = @physics.acceleration

      @physics.collideWorldBounds = on

      @physics.drag.x = 1500
