Jump to content

Question around structure to order states


jilonor
 Share

Recommended Posts

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

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!

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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