Sigmag Posted April 30, 2014 Share Posted April 30, 2014 Hi all, I'm new to these forums, but really want to share what I've made with everyone. Not for my own sake but to help all those other game developers out there that have trouble deciding what resolutions/aspect ratios to target. I built this utility to help me visualize how common aspect ratios display on any screen size when stretched to fill the screen as much as possible. All you have to do is deploy the URL on any device to see how a game of size 4:3, 3:2, or 16:9 will display. You can even just use your browser and stretch the window to the target size so you can do all your planning from the PC. however I recommend loading it up on the device as there are software bars and URL bars to consider! In any case, please take a look - I feel we all have something to gain from having a visual aid when planning our target resolutions. Just click the banner below! You can also see an augmented version of this scaling logic in action in our upcoming title, Dragonfly Zero. Click the banner below and stretch the window to whatever size you want. The game will scale and implement extra filler as is appropriate for the aspect ratio - regardless of how tall or wide you make it! --------------------------------- UPDATE (5/7/14): Made changes requested by turnA, designated v2.0 This version includes both portrait and landscape in the same utility for ease of testing New screenshots as well Notes: There may be minor discrepancies of 1-2px either visually, or represented in the information panel. Each box includes it’s border as a representation of it’s aspect ratio. This means the game screen box will overlap the borders when matching aspect ratios. The utility will automatically switch between portrait and landscape orientations (if height exceeds width in landscape, or width exceeds height in portrait). The orientation label also works as a button. Portrait mode is somewhat restricted on landscape displays (text size reduction), works best on flipped monitors and portrait displays. SCREENSHOTS Landscape - iPhone 5S, safari (iOS) Portrait - iPhone 5S, Safari (iOS) Landscape - PC, Google Chrome (windows) Quote Link to comment Share on other sites More sharing options...
presidenten Posted May 3, 2014 Share Posted May 3, 2014 Very nice! Thanks for sharing! I think 960x640 seems like the sweet spot for my game. Quote Link to comment Share on other sites More sharing options...
Sigmag Posted May 3, 2014 Author Share Posted May 3, 2014 Glad you found it useful! There is also a trick in Chrome that I learned about recently that may help as well. To emulate different device screens through chrome, you can hit ( CTRL + SHIFT + i ), then hit ESC, then click the "emulation" tab, and it'll give you a list of devices as well as viewport resolutions and some other info. Quote Link to comment Share on other sites More sharing options...
turnA Posted May 4, 2014 Share Posted May 4, 2014 Great job! I think it will be even more useful if I can input my game screen resolution + ratio, and then it will show the maximun bleed and safe area size (in pixel) that my game needed for various screen ratio. Quote Link to comment Share on other sites More sharing options...
Sigmag Posted May 5, 2014 Author Share Posted May 5, 2014 Great job! I think it will be even more useful if I can input my game screen resolution + ratio, and then it will show the maximun bleed and safe area size (in pixel) that my game needed for various screen ratio. Thanks! I have read this a few times, but I'm not sure I understand completely. Are you saying you would like for a 4th box to appear based on input of resolution (aspect ratio would be a byproduct of that input) that will show visual relation to those aspect ratio boxes, as well as include some additional text info (bleed px/safe area px for 4:3, 16:9, 3:2)? If you could do a simple mock up of the idea in paint or something it could clarify a good deal - I don't think it will be too hard to modify the utility to suit your liking. Quote Link to comment Share on other sites More sharing options...
turnA Posted May 5, 2014 Share Posted May 5, 2014 Yes, that's what I mean.For example, I'm using 640x960 (2:3) resolution for my games using SHOW_ALL method (all my screen will be shown but it keep the aspect ratio) and I know there will be left over/bleed area on various device.It will be helpful if this utility can show the maximum size for other aspect ratio based on my resolution (3:4 -> 720x960 pixel, 10:16 -> 640x1024 pixel, etc...)I can then use this number to prepare additional background that cover the unused space for these various aspect ratio. Hope this is clear enough Quote Link to comment Share on other sites More sharing options...
Sigmag Posted May 6, 2014 Author Share Posted May 6, 2014 Ok, I will start revising the code! Quote Link to comment Share on other sites More sharing options...
Sigmag Posted May 7, 2014 Author Share Posted May 7, 2014 Alright turnA, check out the new version (landscape and portrait) and tell me if this is what you had in mind. HTML5 ResUtil 2.0 I've also updated the main post to reflect the changes. turnA 1 Quote Link to comment Share on other sites More sharing options...
turnA Posted May 7, 2014 Share Posted May 7, 2014 Cool! That's exactly what I had in mind. I already use it for my next mobile games to prepare the border/bleed asset Although I can use calculator and do calculation for various screen size, this will be A LOT faster to use. Just some ideas for future development:- Support for other aspect ratio target, or even dynamic aspect ratio where player can input it themselves (because I think that the screen size will be even more varied in the future)- Combined Portrait and Landscape mode into one Utility page (dynamically adjusted based on user browser window size) No pressure of course. I already appreciated this tool in it's current form Sigmag 1 Quote Link to comment Share on other sites More sharing options...
Sigmag Posted May 8, 2014 Author Share Posted May 8, 2014 Glad you found it useful, the other features shouldn't be too hard to add in. I already started on the dynamic window resize feature, because I think that's more intuitive than the original which changes orientation mode when the game screen is sized past 1:1 in either direction. Ran into a few hiccups though, so will revisit. I need to get the numbers more precise as well, sometimes 1.77:1 (16:9) displays as 1.78:1 and some counts are off by 1 now and again, but it should be accurate enough for most uses! Quote Link to comment Share on other sites More sharing options...
turnA Posted May 13, 2014 Share Posted May 13, 2014 Great update! I think you can now host it on Github as Github Pages so more people can use it without eating up your bandwidth Quote Link to comment Share on other sites More sharing options...
Sigmag Posted May 28, 2014 Author Share Posted May 28, 2014 Not necessarily an update to the utility itself, but I stripped our upcoming game, Dragonfly Zero, down for a tech demo showing how by augmenting the logic used in the utility, I was able to make the game fit any screen. Figured this might help people see what is possible, I think this is one of the best approaches to the resolution issue. You can stretch the window to any size you want, any width, any height, and the game will display correctly - utilizing the most space it can. Top post is updated to show this as well. Quote Link to comment Share on other sites More sharing options...
Froton X Posted June 21, 2014 Share Posted June 21, 2014 Exuberant program! This is gonna help many. Quote Link to comment Share on other sites More sharing options...
Sigmag Posted June 25, 2014 Author Share Posted June 25, 2014 Glad you found it useful! I have plans to do a write up for the dynamic scaling technique sometime within the next month or so, to give a detailed look at how this works so others can implement it more easily in their programs. Quote Link to comment Share on other sites More sharing options...
nixeldev Posted July 16, 2014 Share Posted July 16, 2014 This utility is pretty sweet Thanks One thing I would point out, when using it on desktop chrome I found that the focus was taken away from the input boxes as soon as I'd entered a character, meaning I'd have to re-click in the box to fill out the rest of the resolution. It's only a minor thing though. Do you have a github repo set up for this yet? Sigmag 1 Quote Link to comment Share on other sites More sharing options...
Sigmag Posted July 17, 2014 Author Share Posted July 17, 2014 Alrighty nixeldev, made that change. Decided while I was at it, I would completely restructure the code, so it should use like 10x less resources while it's at it - I wrote it really inefficient before for some reason so I was able to cut the code and memory commit by like 50%.No more graphic glitches, no more weird jumpy behavior! I didn't get around to making the info look bigger in portrait mode, but I'll get around to that eventually when I get some free time. And I don't have a github, not sure how to use it. I don't code natively in html5 - I work through Construct 2 - so I don't know that my source code would be of any use to anyone. I'm willing to set one up, just not sure how to utilize it? In any case, here's HTML5 ResUtil v2.1 just hit shift+f5 to clear the cache of the old one and you should see the new changes. Quote Link to comment Share on other sites More sharing options...
nixeldev Posted July 18, 2014 Share Posted July 18, 2014 All sounds really cool I'm sure you're already aware but I'm getting the following errors when trying to load it: Quote Link to comment Share on other sites More sharing options...
Sigmag Posted July 18, 2014 Author Share Posted July 18, 2014 From v2.0 to v2.1 I made a bunch of image changes: Removed:hud_3by2_phud_16by9_phud_4by3_p Filename Changed:hud_3by2_ls --> hud_3by2hud_16by9_ls --> hud_16by9hud_4by3_ls --> hud_4by3 So all those sheets it's trying to load are from v2.0, you have a cached version of the code but not the images I think. Give SHIFT + F5 or CTRL + F5 a shot to ignore the cache and it shouldn't error out. Let me know if that does the trick! Quote Link to comment Share on other sites More sharing options...
nixeldev Posted July 18, 2014 Share Posted July 18, 2014 Its working now Was a little odd though as I have caching disabled in the dev tools, I also tried it in Chrome and Opera last time and it failed in both but I'd only opened it in Opera previously. Alas no matter, it's working great now. Thanks Quote Link to comment Share on other sites More sharing options...
netox Posted December 30, 2014 Share Posted December 30, 2014 <p>Thanks for this tool, is amazing, help me a lot to choose my game resolution! Congratulations!</p> Sigmag 1 Quote Link to comment Share on other sites More sharing options...
Sigmag Posted January 3, 2015 Author Share Posted January 3, 2015 Happy to hear it! Anything you found hard to use, or think would work better? It has room for improvement. Quote Link to comment Share on other sites More sharing options...
geros Posted October 1, 2015 Share Posted October 1, 2015 Bumb:)Hi Sigmag i didn't have the chance to view your tool since it gives me connection timeout. Is it somewhere available or you drop it ? Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.