Sign in to follow this  
jilonor

Question around structure to order states

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

Share this post


Link to post
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!

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.