Hello,
I started a hobby project to learn Phaser (https://github.com/alessandronunes/soccerpunch). It's lika a Clash Royale Soccer, with punchs (not implemented yet).
The code is growing and I need to split the game logic in more than one file. I have knowledge of some Javascript frameworks, like Sencha and JQuery Mobile, and I'm familiar to the MVC concept.
I'll probably try to create files for every game object (Player.js, Goal.js, Ball.js, etc.).
So I would like to ask: how do you organize your code files? Please send examples!