# \[solved\] How can zoom screen size for my pixel art game?

**URL:** <https://forum.defold.com/t/solved-how-can-zoom-screen-size-for-my-pixel-art-game/74447>\
**Category:** Questions\
**Created:** [October 8, 2023, 10:34am UTC](https://forum.defold.com/t/solved-how-can-zoom-screen-size-for-my-pixel-art-game/74447 "2023-10-08T10:34:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gamedevshrimp](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/gamedevshrimp/32/44402_2.png) [@gamedevshrimp](https://forum.defold.com/u/gamedevshrimp)\
**Post date:** [October 8, 2023, 10:34am UTC](https://forum.defold.com/t/solved-how-can-zoom-screen-size-for-my-pixel-art-game/74447/1 "2023-10-08T10:34:39Z")

</div>

Hello, dear community! I’m totally new in defold and my question may seem very stupid.  
I can’t understand how I can zoom the screen size for my pixel art game.

My art resolution is 320 x 180. I set up render settings x4 - 1280 x 720

But my game looks like this

 ![Screenshot 2023-10-08 at 12.29.40](https://forum-defold-uploads.b-cdn.net/original/3X/2/0/208c9ed9420deadcaf6ced214e7b9150997879e2.png)

I found [the information about adapting graphics for a screen size](https://defold.com/manuals/adapting-graphics-to-screen-size/)  
It says

> We can use the render script to set a fixed and zoomed projection:

```lua
msg.post("@render:", "use_fixed_projection", { zoom = 4 })

```

But where I should type this code?  
I tried typing it in the ‘init’ function in the render.script but it doesn’t work. Please help me

UPD. I found the solution I just added to the main collection an empty gameobject with a script that contains this code. And all works perfectly!  
So, the problem is solved.
