jilonor Posted February 2, 2016 Share Posted February 2, 2016 Hi, I am creating a game which is using a dynamic map generation including several separated areas. Each area will have its own specific logic and events. So i was planning to deal with that using states but i am not sure how to structure it since there will be like 30 area type. Any suggestions? thx in advance Link to comment Share on other sites More sharing options...
megmut Posted February 2, 2016 Share Posted February 2, 2016 My advice, would be to have a single game state, then a map class, which deals with dynamic generation which extends area classes. This way, each area can have it's own update loop and other over riding methods. Using seperate states is possible, but using ECMA6 (ES6) you won't have to use require.js. Hope this helps! jilonor 1 Link to comment Share on other sites More sharing options...
jilonor Posted February 4, 2016 Author Share Posted February 4, 2016 thx for the advice. will dig into that Link to comment Share on other sites More sharing options...
Recommended Posts