 class SpriteAdapter extends EntityAdapter
   constructor: (@stage, @sprite, @next) ->
 
+  setTexture: (tex) ->
+    @sprite.setTexture tex
+
   doTick: ->
     pos = @getPosition()
     @sprite.position = new PIXI.Point(pos.x * PIXELS_PER_METER,

@DebugLateralMovementAdapter = DebugLateralMovementAdapter
@FixedLocationAdapter = FixedLocationAdapter
@LimitedLifespanAdapter = LimitedLifespanAdapter


  setInterval tickAll, 1000 / 60

class BaseEntity
  setTexture: ->
  setAnimation: ->
  getBody: -> null
  doJump: ->
  doMoveLeft: ->
