title: Phaser 3 es6: How to create a Player class?
body: <p>I'm messing around with Phaser 3 in an es6 syntax. In Phaser 3 everything is now composed of Scenes, where you load/update/etc everything. So, for the primary <code>Game</code> scene, I extend <code>Phaser.Scene</code>.</p>
  
  <pre><code>export default class Game extends Phaser.Scene {
    preload()
    create()
    ...
  </code></pre>
  
  <p>But let's say I have a player, which will involve 100's of lines of code that I would like to keep in a separate file for code cleanliness. How do I organize that? </p>
  
  <p>Every tutorial/info I find about it just includes all of the code for the scene in the same file, but this is obviously not realistic for fully fleshed-out games. I want to separate many elements of the game into their respective classes/files.</p>
  
  <p>So, I just create a player class, that doesn't extend anything? Or should I extend it by something like <code>Phaser.Sprite</code>? </p>