Advertisement

Remomended Resolution for HTML 5 Games

Started by June 27, 2018 02:50 AM
1 comment, last by Wyrframe 6 years, 5 months ago

I made some games for android with (1280 x 800) Resolution with unity game engine. now for convert them t HTML 5, I have problem with game resolution. mean when i exported my game to HTML 5 and run it on server, some objects position are incorrect. also i tried to change game resolution to (1024 x 768) in unity and then export it for HTML 5 but also some objects position are incorrect.

so i need know two something:

1- is there any way to fix resolution form andorid to HTML 5, or i should be change all object size and position manually and export again for HTML 5?

2- what is recommended resolution for HTML 5 game?

 

Objects are mispositioned? Or are elements in your GUI mispositioned? The former sounds like a view/model conflation; decouple the two to fix it. The latter is a matter of making your UI work at any resolution you choose to support.

But as for what resolutions to support? Well. To start at the easy end, let's just say you should pick either landscape or portrait to support, based on what works best for your UI, and then don't assume anything about exact resolution or even aspect ratio ever again. Maybe pick a minimum resolution, like 1024(long) by 512(short) (whether that's 1024x512 or 512x1024), but don't assume anything after that. Usable area might be bigger, might be smaller.

RIP GameDev.net: launched 2 unusably-broken forum engines in as many years, and now has ceased operating as a forum at all, happy to remain naught but an advertising platform with an attached social media presense, headed by a staff who by their own admission have no idea what their userbase wants or expects.Here's to the good times; shame they exist in the past.

This topic is closed to new replies.

Advertisement