alesan99 / mari0_ae

Mari0: Alesan99's Entities
Do What The F*ck You Want To Public License
69 stars 26 forks source link

21:9 resolution #650

Closed emanuelect closed 3 months ago

emanuelect commented 3 months ago

I tried the game with my 3440x1440 ultrawide monitor, but I noticed that the aspect ratio gets stretched if I remove the black bands. Could you make the game compatible with ultrawide resolution? It would be great to be able to play Super Mario like this.

qixils commented 3 months ago

There is an experimental width variable in the main.lua you can play around with. One of the nitpicks allows you to set 4:3 aspect ratio but not an arbitrary number so you would have to edit the code to try it. Specifically line 153 (currently), setting it to about 35 produces a good 21:9 result for me.

Not certain this would ever be officially supported as it would probably break/unbalance a lot of levels but adding a nitpick for easier editing might be nice. Would need a lot of other changes made first though as the camera really doesn't know what to do with itself with a width this high.

emanuelect commented 3 months ago

Thank you very much, it worked. Playing it I understood what you meant about the camera: image image)

image

But even so it is great fun to play.

emanuelect commented 3 months ago

I solved it. I am not a programmer, but thanks to chatgpt after a whole day of trying I managed to fix the camera by editing the game.lua file.

alesan99 commented 3 months ago

This is already supported in nitpicks.json.

"windowWidth": 25,
"windowHeight": 15,

The camera issue can be fixed by adding the center camera nitpick "centerCamera": true,

This won't be supported in any more capacity than this due to the gameplay changes it causes.