Sorry, should have included that my display resolution is maxed at 1440x900 and that is what my game.project is set at. Given those settings, I still don’t see the top set of tiles in levels 3 and 4.
Changing the resolution in the game project settings to 1440x1440 allows me to see all the tiles, but they are squished.
I would think that invoking “use_fixed_fit_projection” would do the trick, as the comment says that it does the following…
-- projection that centers and fits content with maintained aspect ratio
or…am i just not calling it correctly in “default.render_script”? Here’s my block of code there…
function init(self)
self.tile_pred = render.predicate({“tile”})
self.gui_pred = render.predicate({“gui”})
self.text_pred = render.predicate({“text”})
self.particle_pred = render.predicate({“particle”})
self.clear_color = vmath.vector4(0, 0, 0, 0)
self.clear_color.x = sys.get_config(“render.clear_color_red”, 0)
self.clear_color.y = sys.get_config(“render.clear_color_green”, 0)
self.clear_color.z = sys.get_config(“render.clear_color_blue”, 0)
self.clear_color.w = sys.get_config(“render.clear_color_alpha”, 0)
self.view = vmath.matrix4()
– default is stretch projection. copy from builtins and change for different projection
– or send a message to the render script to change projection:
– msg.post(“@render:”, “use_stretch_projection”, { near = -1, far = 1 })
– msg.post(“@render:”, “use_fixed_projection”, { near = -1, far = 1, zoom = 2 })
– msg.post(“@render:”, “use_fixed_fit_projection”, { near = -1, far = 1 })
self.near = -1
self.far = 1
–self.zoom = 1
–self.projection_fn = stretch_projection
self.projection_fn = fixed_fit_projection
end
The results of doing the above is that I still don’t see the top set of tiles (with 1440 x 900). Now, if i set my game project resolution to something LARGER than my display resolution, specifically 1440 x 1440, I can see all the tiles…but now the mouse functionality is broken and i can’t accurately click on anything.
the following screenshot is using the larger resolution and calling “fixed_fit_projection”…
As you can see, the look is…better (although not centered?) and i can see all the tiles, but i’m completely busto with the input (mouse clicks don’t register correctly, and clicking tiles is offset). That is to be expected I would think, given the resolution is inaccurate.
So, ultimately, i can continue to futz with the resolution settings in game project to get a proper render and see everything by using “fixed_projection”, but I would assume that “fixed_fit_projection” should do that for me, regardless of my resolution settings, and ultimately not break controls?
Thanks for the tips and help!