> For the complete documentation index, see [llms.txt](https://electoriaengine.gitbook.io/api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://electoriaengine.gitbook.io/api/resolution.md).

# Resolution

enlarging a screen to different resolutions

{% hint style="info" %}
When you want the game engine to adjust itself: it can be slow because it's physics, what you put in the corner of the screen can come to the middle or shrink
{% endhint %}

<figure><img src="https://644134079-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAoN3PvLitJVdWdsmwATH%2Fuploads%2FLrQmVAZRPWsQELm1IKQJ%2FAds%C4%B1z2.png?alt=media&amp;token=176c1ad4-e4bc-47a4-918f-842056ba6eaf" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
In order not to experience such problems, you should fix the resolution to give the same image to everyone and the screens will automatically enlarge or shrink accordingly.
{% endhint %}

{% code overflow="wrap" lineNumbers="true" %}

```javascript
//For example
//editdisplay(x, y);
editdisplay(1024, 720);
```

{% endcode %}

The resolution you entered would be like this

<figure><img src="https://644134079-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAoN3PvLitJVdWdsmwATH%2Fuploads%2Fvcx7Jm0ZpDMyJDd3FTwr%2FAds%C4%B1z.png?alt=media&amp;token=5d19c516-eb97-49b2-b588-9b228a6ef2ce" alt=""><figcaption></figcaption></figure>

You may have liked this part, if you want, we can continue.
