Jump to content

what is the advantage of using pixi-tilemap?


mobicfly
 Share

Recommended Posts

It is used in RpgMaker MV.

1. Its like graphics but for sprites - if you dont clear it, it stays in STATIC buffer, instead of uploading DYNAMIC every frame. 0% of CPU usage when there're no changes.

2. It doesnt create sprite objects - no problem for javascript GC

There are stupid restrictions on textures, right now it can work only with 16 base textures of 1024x1024 size. That came from RpgMaker MV, and so far no one complained about it - and I can change it to be more suited for your game.

Algorithm of usage:

1. When you fill the tilemap, remember the rectangle area.

2. When user moves camera away from it - refill the tilemap.

Tutor:

https://github.com/Alan01252/pixi-tilemap-tutorial

Link to comment
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...
 Share

  • Recently Browsing   0 members

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