Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
transform not applied properly to base me.Sprite objects #854
- panel position, and bounding box drawing (now that "preDraw" functions are already translating to the correct coordinates, we don't need to do it again in the debugPanel) - entity position, but this is still wrong in some cases, probably because anchorPoint are not set or set somewhere else (Tiled vs the world). Also entity in Tild use (0, 0), but Tile Object use (0, tileheight).
quick question before I merge my branch :
now transform are automatically applied to any renderables (which fixes the issue here), but that also means that anchor point are now truly (0.5, 0.5) by default for any renderable as well, which kind of changes a few things here and there. For example anchor point was never applied for container before (it's still not the case though systematically, as when loading a "Tiled" game, level, container and entity objects anchor points are set to the tiled default one).
so question, shall I :