Hi,
I have asked this question before, I wanted to ask it again, but I have just found out about something weird, so I hope someone can help me in here.
Whenever I develop something and build it to HTML5, the graphics (specially text) is blurry and not really acceptable (compared to phone builds) this can be seen when displayed on a browser like chrome … It seems to lose resolution.
But what just happened here and by chance is good but strange, I ran the sample project in the browser(which is really dummy displaying text, images, and changing background color)
Then I changed the Zoom level from the browser and made it minimal value possible (25% on chrome) … and here is the big surprise!!
everything became Chrystal clear, and size remained the same.
So what is going on, and is there a way to do this on the code size? or should I increase the resolution of images, and size of text
Please test attached code and help me out in here
In the simulator it is Chrystal clear, try to build to HTML5 and run it in the browser, it will look bad … then from the browser just minimize zoom level to 25% on chrome and see how better it will look without changing the size of objects
I tried using document.body.style.zoom=“25%” it minimizes the body to 25% … but this minimizes my app to 25% … which I don’t want … I want the action as if it is done from the browser by hand
just made 2 different tests by changing config.lua it seems to affect behavior of zoom button as well
local normalW, normalH = 720, 1280
if not display then return end -- This is needed for dekstop app
application = {
content = {
-- width = normalW,
-- height = normalH,
scale = "zoomStretch",
-- scale = "adaptive",
fps = 60,
}
}
And
local normalW, normalH = 720, 1280
if not display then return end -- This is needed for dekstop app
application = {
content = {
width = normalW,
height = normalH,
fps = 60,
}
}
JAC Exam.zip (99.1 KB)