Where to call defos functions?

Doing a tutorial I set the game size 320x180 to get 16:9 resolution, sprites and tiles are 16x16 i thing this window size is good to practice, now when i run the program i use

defos.set_window_size(nil, nil, 1024, 576)

to keep 16:9

write this function call on the default.render_script, init method
I was wondering if this is the right place to use this function?

Does it work? :slight_smile:

If it works, you’re good.

It doesn’t need to be in the render script. Any init() function seems like a good candidate. I do expect it to work in render script though.

yes it works, thanks

1 Like