spinnerbox Posted April 2, 2015 Share Posted April 2, 2015 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 More sharing options...
spinnerbox Posted April 2, 2015 Author Share Posted April 2, 2015 Found this thread: http://www.html5gamedevs.com/topic/4055-game-architecture-heavily-branched-game-loop-vs-mvc-or-going-mad-with-mvc-mvp-robotlegs-puremvc-mediators-di-fsm-models/ I will assume that doing this i.e separating visuals from game logic gonna make things worse. Link to comment Share on other sites More sharing options...
Recommended Posts