git.s-ol.nu mmm / bde1fae
some fixes in aspect-ratios s-ol 2 years ago
2 changed file(s) with 9 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
77 resize: 'horizontal'
88 overflow: 'hidden'
99
10 width: '576px'
11 height: '324px'
12 'min-width': '324px'
13 'max-width': '742px'
10 width: '480px'
11 height: '270px'
12 'min-width': '270px'
13 'max-width': '100%'
1414
1515 margin: 'auto'
1616 padding: '10px'
4141 resize: 'horizontal'
4242 overflow: 'hidden'
4343
44 width: '576px'
45 height: '324px'
46 minWidth: '324px'
47 maxWidth: '742px'
44 width: '480px'
45 height: '270px'
46 minWidth: '270px'
47 maxWidth: '100%'
4848
4949 margin: 'auto'
5050 padding: '10px'
4141 but otherwise the empty space makes the screen look empty (especially if there are system UI elements next to it).
4242
4343 ## step two: `perforate`
44 So how can this be imroved? We would like to use the unused space on the x or y axis, but we can't just scale everything up,
44 So how can this be improved? We would like to use the unused space on the x or y axis, but we can't just scale everything up,
4545 or we would start cropping important pieces of UI. Stretching the game to fill the screen also doesn't work for obvious reasons.
4646
4747 To proceed, the UI has to be 'perforated' into different sections that are independent from each other.