Font Scaling
Posted: Mon Jun 23, 2014 6:46 pm
Hey friends,
So I've put together a simple game because I wanted something that ran on my phone - it spawns tiles, you click/tap the tiles, good times.
The problem I'm having is this: my phone (Galaxy S4) defaults to an unchangeable resolution of 1920x1080 (aka 1080p). As such, the tiles and fonts - which look fine on PC at the default 800x600 - are tiny on the phone.
My current workaround is to simply triple the size of the tiles and font if the game is running on Android (not with scaling - I tried that first, it made most text get drawn off screen).
It's 4:40am and I'm not much for math, so I was wondering if anyone could suggest an algorithm for appropriate font sizing/tile scaling to suit a variety of resolutions.
Love file attached, or find it here: https://dl.dropboxusercontent.com/u/512 ... tapv1.love
Similarly, the Android APK can be found here: https://dl.dropboxusercontent.com/u/512 ... etapv1.apk
So I've put together a simple game because I wanted something that ran on my phone - it spawns tiles, you click/tap the tiles, good times.
The problem I'm having is this: my phone (Galaxy S4) defaults to an unchangeable resolution of 1920x1080 (aka 1080p). As such, the tiles and fonts - which look fine on PC at the default 800x600 - are tiny on the phone.
My current workaround is to simply triple the size of the tiles and font if the game is running on Android (not with scaling - I tried that first, it made most text get drawn off screen).
It's 4:40am and I'm not much for math, so I was wondering if anyone could suggest an algorithm for appropriate font sizing/tile scaling to suit a variety of resolutions.
Love file attached, or find it here: https://dl.dropboxusercontent.com/u/512 ... tapv1.love
Similarly, the Android APK can be found here: https://dl.dropboxusercontent.com/u/512 ... etapv1.apk