Jump to content

expandable Chunk-based Tilemap


AlexLi
 Share

Recommended Posts

Hey everyone,

 

I've been using phaser for a few days now and I really love it! :)

 

Now my question:

How do I put severals Tilemaps together so that they act like a single map?

 

I'd like to have the option of an infinite, self generating map.

My first idea was to have like 20x20Tiles large Tilemaps (chunks) which, when the player reaches the edge of each chunk, call the next chunk so that the player can move seamlessly through the map. And if this chunk doesn't exist yet, an algorithm creates it on the fly. This does also allow me to load the chunks dynamically, so that the players in a multiplayer mode don't have to load the entire map at once. So far, so good.

 

But I didn't find any method in the phaser documentation which allows me to realise this idea. The few forum topics which also concern this idea didn't help either. 

(Neither this one nor this one).

 

Instead of going on and writing my own tile-engine I hope that you might have an idea on how to realise this without reinventing the whole wheel ;)

 

 

Hope you can help me! :)

Thank you in advance!

 

(Sorry for my bad english. If something is unclear please tell me.)

 

best regards,

AlexLi

Link to comment
Share on other sites

  • 1 year later...

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...
 Share

  • Recently Browsing   0 members

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