Set World Size? (SOLVED)

Hi all,

Is there a way to set the world size in pixels?

What dictates the world size?

Sorry if this has been asked before, but a search of the manual and forum didn’t give me an answer.

Thanks!

You can specify width/height in game.project under the Display category. This is referred to as the virtual size and is used by default when rendering the game, as defined in /builtins/render/default.render_script. The actual game window might differ depending on the platform you run on, so you can query both using render.get_width/render.get_window_width. Was this what you were looking for?

3 Likes

Hi Ragnar,

Thanks for your reply.

Is there a hard limit on the actual in-game world size?

Thanks!

The game world can be any size, but is ultimately limited to floating point precision. In fact it does not have a size, it’s just a virtual space in which things have coordinates, which are floating point and comes with those limitations. Is this your question or did I get it wrong?

3 Likes

Hi Rangar,

Thanks, yes you’ve answered my question :slight_smile:

1 Like