I’m looking for some suggestion / advice supporting multiple screens and dpis considering mobile browsers . Android suggests create folders for ldpi , mdpi, hdpi, xhdpi , iOS suggests just scale assets or create folders per device and then html5 browser is tough choise to make . Should I create couple of folders per resolution , but then how choose right one , based on what ? Is there any built in functionality in cocos2d html5 ?
I rolled my own functionality to do something similar to this. I sniff to see if the browser is mobile, and then set the asset path to something like ‘res/sd’
Then in the game i just use percentages to do the layout.