Jump to content

Textures from spritesheet include edges of other sprites


jpawlak
 Share

Recommended Posts

now i see empty spaces between tiles.

try turn off antialias, you dont need it (new Application({antialias:true <-- remove this thing)


as for pixi-tilemap, here's tutor: https://github.com/Alan01252/pixi-tilemap-tutorial

The usual algorithms with tilemap:

1. WINDOW. maintain a WINDOW around camera where tiles are filled. If something changes inside - > FOR FOR refill it. If camera goes out of WINDOW -> move window, refill.

basically, you have to "draw" a map in tilemap every time something happens. For that plugin its fast, it just dumps stuff into array, no objects are created.

2. Chunks. Yeah, like in minecraft. Maintain many small tilemaps that cover the map.

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