v3 bug with tiled sprites
azjgard opened this issue · 2 comments
Hello!
First of all, love Kaboom; I've had a lot of fun playing with it :) thanks so much for all of your work!
After upgrading to the v3 beta, I'm struggling to get a sprite to render with tiled: true
. Here is some code for a minimum reproduction:
kaboom();
loadSprite("grass", "grass.png");
add([
sprite("grass", {
width: width(),
height: height(),
tiled: true,
}),
pos(0, 0),
]);
When executing the code above with kaboom v2.8, the image tiles across the screen, as expected:
When switching to execute the same code with kaboom v3, tiling appears to completely break:
For each version of kaboom, I'm loading the library from the unpkg CDN links:
I know there are a good number of breaking changes, but from looking through the v3 docs and source code, I think this code should work, but let me know if there's something that I've missed.
Thanks in advance!
Fixed in 3000.0.0-beta.5
Thanks so much! I just upgraded and confirmed the fix 🙏