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
I found the information about adapting graphics for a screen size
It says
We can use the render script to set a fixed and zoomed projection:
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.