text: class Bee extends Phaser.GameObjects.Sprite {
  	constructor(config) {
  		super(config.scene, config.x, config.y, 'bee');
  		config.scene.add.existing(this);
  		config.scene.physics.add.existing(this);
  
  		this.x = config.x;
  		this.y = config.y;
  		this.side = 0;
  
  		config.scene.tweens.add({
  			targets : this.body.velocity,
  			y : {from: -150, to: 150},
  			ease: Phaser.Math.Easing.Quadratic.InOut,
  			yoyo: true,
  			repeat: -1,
  			duration: 1000,
  			delay: Phaser.Math.Between(0,6) * 200
  		})
  	}
  
  	preUpdate() {
  		if (player.x < this.x) {
  			this.resetFlip();
  		}
  		if (player.x > this.x) {
  			this.flipX = true;
  		}
  	}
  }
  
  class Slime extends Phaser.GameObjects.Sprite {
  	constructor(config) {
  		super(config.scene, config.x, config.y, 'slime');
  		config.scene.add.existing(this);
  		config.scene.physics.add.existing(this);
  
  		this.x = config.x;
  		this.y = config.y;
  		this.dist = config.distance;
  		this.flipX = true;
  		this.speed = 1;
  		this.initial = [config.x, config.y];
  		this.body.allowGravity = false;
  	}
  
  	preUpdate() {
  		if (this.x > this.initial[0] + this.dist) {
  			this.speed *= -1;
  			this.toggleFlipX();
  		}
  		if (this.x < this.initial[0] - this.dist) {
  			this.speed *= -1;
  			this.toggleFlipX();
  		}
  		this.x += this.speed;
  	}
  }