text: // import { config } from "../../index";
  
  function preloadNeo(s){
    // console.log(config.scene[s]);
    // config.scene[s].load.crossOrigin = 'anonymous';
    // config.scene[s].load.image("Neo", NeoImg);
  }
  
  function createNeo(){
    gameState.Neo = this.physics.add.sprite(10,10, "Neo").setScale(0.2);
    gameState.cursors = this.input.keyboard.createCursorKeys();
    gameState.graphics = this.add.graphics({
      x: (gameState.Neo.x - gameState.Neo.width / 2) - 242,
      y: (gameState.Neo.y - gameState.Neo.height / 2) -16
    })
    .fillStyle(0xffff00, 0.2)
    // .setTexture(Neo, undefined, 1)
    .fillCircle(gameState.Neo.x, gameState.Neo.y, gameState.Neo.width / 15, gameState.Neo.height / 15)
  
    this.tweens.add({
      targets: gameState.graphics,
      alpha: 0,
      ease: 'Cubic.easeOut',  
      duration: 1000,
      repeat: -1,
      yoyo: true
    })
  }
  
  function updateNeo() {Neo
    if (gameState.cursors.left.isDown) {
      gameState.Neo.x -= 5;
      gameState.graphics.x -= 5;
      //moving backwards change start x,y to be end of screen
      if (gameState.Neo.x < 0) {
        this.scene.stop('scene2');
        this.scene.start('playGame');
      }
    }
    if (gameState.cursors.right.isDown) {
      gameState.Neo.x += 5;
      gameState.graphics.x += 5;
    }
    if (gameState.cursors.up.isDown) {
      gameState.Neo.y -= 5;
      gameState.graphics.y -= 5;
    }
    if (gameState.cursors.down.isDown) {
      gameState.Neo.y += 5;
      gameState.graphics.y += 5;
    }
  }
  
  export default { preloadNeo,createNeo,updateNeo };