 define [
   'phaser'
   'underscore'
-], (Phaser, _) ->
+  'app/helpers'
+], (Phaser, _, Helpers) ->
 
   {Point} = Phaser
+
+  {PointMixin} = Helpers
+
+  _.extend Point::, PointMixin
 
   # 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()

        { isFinished: no, isPlaying: yes, loop: name is 'run', name: name }
      frame: 17 # Initial.

    cameraFocus:
      position: new Point()

    cursors:
      _.mapObject { left: {}, right: {}, up: {}, down: {} }, (key) ->
