Replaced background color for consistency
commited
commit
385c0d0ff2a513f05c6f5df3463241ba8838b5fb
... | ... | @@ -1,9 +1,9 @@ |
1 | 1 | Assuming you're making a top-down view game, zoom = 5 * block width. E.g. to fit 10 blocks wide, set zoom to 50: |
2 | 2 | |
3 | [[/uploads/IMG_20190818_234332.png]] |
|
3 | [[/uploads/zoom_example1.png]] |
|
4 | 4 | |
5 | 5 | What about height? Well, different users will have different screen sizes, so even with a fixed width the height is variable. But like the image shows, you can compute it by multiplying width by the screen's aspect ratio. |
6 | 6 | |
7 | [[/uploads/IMG_20190818_234312.png]] |
|
7 | [[/uploads/zoom_example2.png]] |
|
8 | 8 | |
9 | 9 | Zoom automatically adapts to the smallest dimension, so in landscape mode the role of height and width are reversed. |
... | ... | \ No newline at end of file |