How to get the size of the screen width automatically on 2D?

So ive been trying to messed with the code examples provided in the installer. Main goal is to create a pong and have a feel on the engine.

Question is on the code example sprite entity
private const float gameWidthX = 16f; // from -8f to 8f

Where on earth can u get the 16f? Im too confuse? is this like youre gonna guess the number until it fits right? I really hate having a magic number on my code as it is really confusing. Is there a way to dynamically get the screen size for collision checking?

and the comment > -8f to 8f? what does that even mean? isnt that from 0 - maximum number of width? like for example 0-800 x coordinates with 0 being on top left or bottom left?

The example code lacks enough comment about a certain code and the documentation doesnt have a 2D section.

If you select the Camera entity in the scene editor, you will notice it has an Orthographic Size property (set to 10.0f in the case)

In a typical 16:10 or 16:9 scenario, game width would end up being 16.0f (but I agree it should be computed using actual aspect ratio instead of hardcoded to 16.0f).

but I agree it should be computed using actual aspect ratio instead of hardcoded to 16.0f

Do you know how to get the screen rwith and size dynamically without having to rely on the editor?

Like example

`private const float gameWidthX = GameEntity.getSize().width
Something like that?