PIX.lua has 3 modes to display the screen and includes some convenient helper functions.
you set the minimum width and height the screen pixels should be and PIX.lua will create the most optimal screen size
library is available on GitHub: https://github.com/jeanahelver/PIX.lua
modes:
- "floor", tries most optimal amount of pixels for the aspect ratio, pixels will all be equal size
- "stretch", stretches the pixels to fill the screen, pixels could be different size
- number, fixed amount the pixels will scale
- PIX.newImage( fileName )
- PIX.mouse.getPosition()
- PIX.mouse.getX()
- PIX.mouse.getX()
see sample main.lua for implementation details