window.addEventListener('load',function() {
  var Q = Quintus({
    development: true,
    //audioPath: "assets/audio/",
    imagePath: "assets/images/",
    dataPath: "assets/data/"
  })
  .include("Sprites, Scenes, Input, TMX, Anim, 2D, Touch, UI, Audio")
  .setup("quintusContainer")
  .controls()
  .touch()
  .enableSound();

  Q.gravityX = 0;
  Q.gravityY = 0;
  
  initComponents(Q);
  initSprites(Q);

  Q.scene("start",function(stage) {
    Q.stageTMX('stage1.tmx', stage);

    // A basic sprite shape a asset as the image
    var player = stage.insert(new Q.Player({ x: 10*Q.DEFAULT_CELL_WIDTH, y: 498*Q.DEFAULT_CELL_HEIGHT}));
    
    var spawner = stage.insert(new Q.EnemySpawner({
      x: 15 * Q.DEFAULT_CELL_WIDTH,
      y: 490 * Q.DEFAULT_CELL_HEIGHT,
    }));  

    stage.add('viewport').follow(player);
    console.log("added player");
  });

  Q.loadTMX(
    'stage1.tmx, tiles.png, ' +
    'sprites/coder.png, ' +
	  'sprites/bug.png',
    function() {
      // Start the show
      Q.stageScene("start");

      // Turn on default keyboard controls
      Q.input.keyboardControls();
  });
});


@@ -481,168 +481,8 @@
 );%0A%0A
-    // A basic sprite shape a asset as the image%0A    var player = stage.insert(new Q.Player(%7B x: 10*Q.DEFAULT_CELL_WIDTH, y: 498*Q.DEFAULT_CELL_HEIGHT%7D));%0A    %0A
     
@@ -529,16 +529,16 @@
 awner(%7B%0A
+
       x:
@@ -615,16 +615,96 @@
 %7D));  %0A%0A
+    var player = stage.detect(function() %7B return this.p.team === 'players' %7D);%0A
     stag
@@ -741,41 +741,8 @@
 r);%0A
-    console.log(%22added player%22);%0A
   %7D)
@@ -821,9 +821,10 @@
 ' +%0A
-%09
+  
   's

Allow player to be defined from TMX file