Skip to content

Support for multiple tileImage's #26

Closed Answered by KilledByAPixel
AxeLanderMoreira asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, thanks for taking a look, you bring up some good points, I have solutions!

It is built all around 1 tile image. The reason for this is not just simplicity but also rendering speed. This way everything can be drawn in giant batches for very fast performance.

You can mix and match the tileSize in the tile sheet. So you can and probably will have some 8x8, 16x16, or even rectangular shapes like 32x64 shape sprites. (see platformer example)

For advanced users like yourself my suggestion is easy. Just load whatever different tile sheets you want yourself first, then combine them together into 1 tile sheet and pass that to engineInit. For pixel art style games this should not be a problem b…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by KilledByAPixel
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants