Creating a game for Android / iOS

Hello everybody !

After many years using gdevelop5 for personnal projects or computers games builds only, I am planning to start creating smartphones games.

For a long time ago previous experience, I remember resolution management was really painful !

How is Gdev dealing with this resolution point ?

  • do I need to have many different resolution assets ?
  • does it stretchs or shrinks things ?
  • does it adds a filling on the side of the screen ?

The game is going to be portrait mode.
Does it matters regarding my previous questions or do I just need to get the same reasonning for Portrait/Landscape or is one a this mode more “complicated” to deal with ?

The game is going to be quiet simple (think about flappy bird for example =p) and is just a first step to learn mobile device game creation.
If you have any tips or advice about that, I am more than interested !

Thanks a lot !

1 Like

Hey!

For resolution, I’ve found that “No Changes To the Game Size” works best for me. This means that the game will automatically add black bars where needed so the resolution fits perfectly on that device. It doesn’t work for every scenario, but it works for most. :smile:

Thanks for your answer !
Is there a way to customize those black bars ?
So it looks like more intended and professional.

Also, black bars are used when your UI is too small for the device.
Do you know what happen if your UI is too tall for the device ?

Thanks !

1 Like

Hey!
Sadly, those bars cannot be customized.

If your UI is too tall for the device, it will shrink the UI until it fits in the devices screen. Same with if it’s too wide for the device.

1 Like

Hi falsuss, I would recommend using the other settings to not have black bars. But if you do want them you can change their appearance to something that suits your game by following this guide.

1 Like

Bubble, just wondering where you are coming from, why would the other options be better than black bars?

I don’t know :crazy_face:. You’re probably right and I was basing my recommendation on thinking about my own game where there’s a very big area to pan around. But that’s not true of every game. Probably the classic reference that’s lived in my bookmarks for a long time for all this stuff is this one Set the resolution automatically - #4 by Silver-Streak

1 Like