bevy_ecs_tilemap icon indicating copy to clipboard operation
bevy_ecs_tilemap copied to clipboard

Support for tilemap textures without padding (but with spacing)

Open rparrett opened this issue 2 years ago • 1 comments
trafficstars

Is there a way to use tilemap textures like this one:

https://github.com/StarArawn/bevy_ecs_tilemap/blob/main/assets/tiles_with_spacing.png

where there is some amount of padding between tiles, but none "outside" of the tiles?

That file comes from this repo, so presumably this was possible at one time. But it doesn't seem to be used in any of the current examples.

The current spacing example uses this other tilemap: https://github.com/StarArawn/bevy_ecs_tilemap/blob/main/assets/tiles-spaced.png that has padding all around.

It would be nice if bevy_ecs_tilemap like bevy supported a separate value for this "offset" and "padding."

rparrett avatar Nov 23 '22 01:11 rparrett

Ah, this behavior may be atlas / array texture specific at the moment, see https://github.com/StarArawn/bevy_ecs_tilemap/issues/352#issuecomment-1324419665

rparrett avatar Nov 23 '22 01:11 rparrett