I have a big class, called game, and it has many nested classes and functions.
class Game {
constructor(opts) {
this.Thing = class {
constructor() {
//do stuff
}
//a ton of functions
}
//a ton of functions
}
}
I would like a way to organize it and make it easier to develop.
I was thinking of splitting the class up into multiple files, but I don't know how that would work.
Is there any way for me split this class up into multiple files? If not how else can I organize it, is there a better way?