Hi All,
i’ve been playing with imagesheet because it will worth to use it for next project.
I’m trying to make aouto scale working but it seem not to work at all.
First of all i produced 3 image sheet:
512x512, 1024x1024 and 2048x2048.
each sheet has images inside resize as well by 1, 2 and 4.
Used this config lua:
application =
{
content =
{
antialias = false,
width = 360,
height = 480,
scale = "zoomEven",
fps = 60,
imageSuffix =
{
["@2"] = 2,
["@4"] = 4
},
},
}
here the options array:
local options =
{
-- array of tables representing each frame (required)
frames = {
{x = 207, y = 440, width = 31, height = 38},
{ x = 91, y = 355, width = 23, height = 48 }
},
sheetContentWidth = 512,
sheetContentHeight = 512
}
used a complex one.
Finally the object:
imageSheet = graphics.newImageSheet( "img/ingame/tds/imageSheet.png", options )
background = display.newImageRect( group, "img/ingame/tds/fondo.png", 481, 361 )
background.x, background.y = midX, midY
zero = display.newImageRect( group, imageSheet, 1, 31, 38 )
zero.x, zero.y = midX, midY
i’m inside create scene.
It seem scaling correctly the background but not the zero object.
The Ipad 2 and new Ipad version as the iphone retina are not upscaled.
do i miss something? [import]uid: 104317 topic_id: 25421 reply_id: 325421[/import]