我应该将 config.lua 文件的宽度和高度更改为 contentWidth 和 contentHeight
should I change the config.lua file's width and height to contentWidth and contentHeight
我正在制作一个应用程序,我最近偶然发现了 config.lua 文件,其中宽度为 320 像素,高度为 480 像素(或类似的东西)。我希望我的应用程序具有通用性,以便您可以在所有设备上播放它。我应该将这些更改为
width = display.contentWidth,
height = display.contentHeight,
没有。我建议您阅读有关 Content Scaling.
的内容
我正在制作一个应用程序,我最近偶然发现了 config.lua 文件,其中宽度为 320 像素,高度为 480 像素(或类似的东西)。我希望我的应用程序具有通用性,以便您可以在所有设备上播放它。我应该将这些更改为
width = display.contentWidth,
height = display.contentHeight,
没有。我建议您阅读有关 Content Scaling.
的内容