clintbellanger / heroine-dusk

April OneGameAMonth WIP dungeon crawl game
http://heroinedusk.com
115 stars 22 forks source link

Widescreen (16:10) art and support #13

Open clintbellanger opened 10 years ago

clintbellanger commented 10 years ago

I'm pretty sure I can expand the existing art to widescreen (16:10) without complicating the code (e.g.no new tiles are visible).

That's 16 extra pixels to the right and left of the current view. It looks far better when games fill up most of the available space on the display.

This would change the default aspect ratio from 4:3 to 16:10 and resolution from 160x120 to 192x120. Maybe have the option to toggle between widescreen 16:10 and fullscreen 4:3.

Change the UI locations to adjust for screen size. Move the init or const UI position values to a function that sets them based on the current screen size.

In the grid.blend file, change the render resolution to 192x168 and camera's focal length to about 18.5.

To support both resolutions we don't need duplicate images. Just load the widescreen images and render them cropped. (Except if we're optimizing for a 4:3 platform).