Currently working on a new game and rather that use loads of tiles, I am trying to use fills on rectangles to save memory etc.
However, the texture fill always uses the x1 image size, thus on a device that would use @2x or @4x images the fill looks terrible.
Using texture fills just isn’t viable if using content scaling.
I’m using a 32x32 base image size with @2x (64x64) and @4x (128x128)
Content scaling: letterbox, width =320, height = 480
[lua]
display.setDefault( “textureWrapX”, “repeat” )
display.setDefault( “textureWrapY”, “repeat” )
local block = display.newRect(display.contentCenterX,display.contentCenterY,320,32)
block.fill = {type = “image”, filename = “images/platform32x32.png”}
local scaleFactorX = block.height / block.width
local scaleFactorY = 1
block.fill.scaleX = scaleFactorX
block.fill.scaleY = scaleFactorY
[/lua]
Bug Submission: 28513