Elektrine lite

← Feed

@memoriesin8bit@mastodon.gamedev.place

Post #2412107

2026-05-02 16:07 UTC

@YoSoyFreeman@mastodon.gamedev.place But it's not like there aren't other options. a) there's a viewport width/height override. I've not tested that but maybe using that doesn't mess the UI scale b) You can make resolution by viewport width/height and have your design resolution stored as a const. Then from that, you can calculate the required content scale factor (by width, height or a ratio). c) Let players chose a resolution and behind the scenes it sets that as window size as well as a dynamic 3D resolution scale.

Replies (1)

  • @memoriesin8bit@mastodon.gamedev.place I have experimented with 2D content scale and got good results, only issue is that scale ALL 2D elements (Including sprites and such) The game actually has a main node which contains a world3D, a World2D and GUI, so separation of concerns is addressed. I was thinking in adding a canvas layer under each world and UI, so i can specify a resolution for the 3D elements without affecting GUI.

    Open ##2412108