       _.mapObject { left: {}, right: {}, up: {}, down: {} }, (key) ->
         key.isUp = key.isDown = no; key
 
-    gravity: new Phaser.Point()
+    gravity: new Point()

  'phaser'
  'underscore'
], (Phaser, _) ->

  # Phaser is written with interwoven dependencies, but does not provide test
  # helpers or fake classes. This custom faking isn't ideal, but a last resort.

  createPlayerProps: (player) ->
    sprite:
      body: 
        onFloor: -> no
        drag: new Point(), setSize: jasmine.createSpy 'setSize'
        velocity: new Point(), acceleration: new Point()
      game:
        time: { create: -> new FakeTimer() }
      scale: new Point()

    animations:
      play: jasmine.createSpy('play').and.callFake (name) ->
