What is the preferred solution for resolution-independent coding? Using the size() method I can target only one resolution, or I can put size(screenWidth, screenHeight), but like that my code will not look the same accross multiple resolutions. Is there any way to write code for one resolution (say, 640x480) and scale it up to any resolution? Obviously, it will be pixelated, but I want my game to be playable fullscreen in Present Mode on any resolution. Currently, a 640x480 sketch in Present mode on a 1080p monitor is the size of a postage stamp.
1