Jump to content

Separate game logic from visual parts


spinnerbox
 Share

Recommended Posts

Probably I could come up with my own solution.

 

Just wanted to know how other Phaser developers solve this problem, i.e separate your game logic from your visual parts in a given Phaser.State?

 

I have this GameScreen which is Phaser.State where the actual game is played. So I add several buttons, background and stuff in create() but at the same time I have to keep track of the game data and logic, what goes where, etc...

 

Are there some code templates for this?

 

Let me know your thoughs.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...