Tuesday, October 14, 2014

Textures resizing to screen resolution!

Steven has been rewriting a lot of code to make the textures and game objects to calculate depending on screen resolution and not the standard resolution of 1024, 576 that is our viewport. We are trying to keep the height to 576 at all times, but scale the game width. This makes it look proportionate on 16:9 ratio for example, it looks good between 1024x576 and 1920x1280, but with a 4:3 ratio, the iPad 2 for example, the fish is a lot wider that it perhaps should be, and that is because they have a resolution of 1024x756 or something.

A bug that occured after the implementation of the new resizing code is that the fly yPosition is good at 1024x576 but is higher than it should be at 1920x1280. Debugging has not been made yet.