Jump to content

Copying Pixi Sprites


cjmarsh
 Share

Recommended Posts

I'm trying to create a basic roguelike with a random dungeon generator in order to learn Pixi and I have a series of 32x32 px Sprites for the tiles. However, I seem to be running into trouble with how to create copies of these tiles for each room in the dungeon. My first thought was to just add children tiles to a map container object but I'm not sure how to clone the Sprites. Any help, or other useful techniques, would be appreciated. Thanks.

Link to comment
Share on other sites

32x32 on big screen.. https://github.com/pixijs/pixi-tilemap . Also please search this subforum for my answers related to tile techniques, you can use pixi sprites if you write good chunk system, you can use pixi-tilemap with easier system, there are many balanced variants. 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...