This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
Replies: 1 comment
-
Maybe. For now you can add a little extra size inside the For example, every tile in this example are 64x64, and in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
(Building off of an earlier conversation in #4)
Is there any plan for Kaboom to support extruded tilesets?
By that, I mean tilesets that have a little bit of margin between each tile. This prevents "tile bleed". For an example, see a screenshot from my project below:
See also this project from the Phaser community that takes an ordinary tile set and extrudes it: https://www.npmjs.com/package/tile-extruder
I think implementing it in Kaboom would be really easy. I'm currently drawing my tilemap by loading the entire map in as a sprite, and rendering a particular tile as a
frame
withdrawSprite
. The likely change would be adding optionalmargin
andspacing
parameters todrawSprite
.If there's interest for this, I might be able to take a swing at implementing this myself. :)
Beta Was this translation helpful? Give feedback.
All reactions