config.json
{
"init_cfg":{
"isLandscape": true,
"isWindowTop ": false,
"name": "mahjonghn",
"width": 1080,
"height": 540,
"entry": "src/main.lua ",
"consolePort": 6050,
"uploadPort": 6060
},
"simulator_screen_size": [
{
"title": " iPhone 3Gs (480x320)",
"width": 480,
"height": 320
},
{
"title": "iPhone 4 (960x640 )",
"width": 960,
"height": 640
},
{
"title": "iPhone 5 (1136x640)",< br /> "width": 1136,
"height": 640
},
{
"title": "iPad (1024x768)",
"width ": 1024,
"height": 768
},
{
"title": "iPad Re tina (2048x1536)",
"width": 2048,
"height": 1536
},
{
"title": "Android (800x480)" ,
"width": 800,
"height": 480
},
{
"title": "Android (854x480)",
"width": 854,
"height": 480
},
{
"title": "Android (1280x720)",
"width": 1280 ,
"height": 720
},
{
"title": "Android (1920x1080)",
"width": 1920,
"height": 1080
}
]
}
Among them,
The width and height are adjusted to:
1080 * 540 Xiaomi mix2 2160*1080
960 * 640 Ordinary mobile phone Aspect ratio 1.5
1024 * 768 ipad2 2048 * 1536
You can easily see the adaptation effect on different mobile phones, no more Don’t worry if the company does not have a test machine
config.json
{
"init_cfg":{
"isLandscape": true,
"isWindowTop": false,
"name ": "mahjonghn",
"width": 1080,
"height": 540,
"entry": "src/main.lua",
"consolePort": 6050,
"uploadPort": 6060
},
"simulator_screen_size": [
{
"title": "iPhone 3Gs (480x320)",
"width": 480,
"height": 320
},
{
"title": "iPhone 4 (960x640)",
"width" : 960,
"height": 640
},
{
"title": "iPhone 5 (1136x640)",
"width": 1136,< br /> "height": 640
},
{
"title": "iPad (1024x768)",
"width": 1024,
"height ": 768
},
{
"title": "iPad Retina (2048x1536)",
"width": 2048,
"height": 1536
},
{
"title": "Android (800x480)",
"width": 800 ,
"height": 480
},
{
"title": "Android (854x480)",
"width": 854,
"height": 480
},
{
"title": "Android (1280x720)",
"width": 1280,
"height": 720
},
{
"title": "Android (1920x1080)",
"width": 1920,
"height": 1080
}
]
}
Among them,
The width and height are adjusted to:
1080 * 540 Xiaomi mix2 2160*1080
960 * 640 Ordinary mobile phone width and height Compared with 1.5
1024 * 768 ipad2 2048 * 1536
You can easily see the adaptation effect on different mobile phones, and you don’t have to worry about the company not testing the machine again