B
B
BonBon Slick2020-01-24 15:28:26
PHP
BonBon Slick, 2020-01-24 15:28:26

How to adapt the width for tablets and wide screens?

There is a game, conditionally racing like in Tetris, or tetromino.
Stretching such a game horizontally would be ugly.
What I saw others solve it:
1 - disable screen flip in the game, then the user will be forced to hold the device in a certain orientation
2 - crop the screen and replace the free space with a dark screen or other background.
An example of a stretched game horizontally
maxresdefault.jpg
An example of a fixed width, but the user can change the orientation, in theory, it's better for UX
5e2ae3bb820e1372298221.jpeg
I don't understand how exactly to implement this from a technical point of view in cocos2d, libgdx or any other framework?
Are there any other ways to solve this situation?
How would you solve it and why?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikolai Kokoulin, 2019-04-23
@Elbakidze

In the error, it is clearly written, there is no file or directory, check if you have access rights and in general the path is correct

G
GavriKos, 2020-01-24
@BonBonSlick

So what exactly is to be implemented?
The prohibition of screen rotation for each platform is done in its own way, usually in the manifest or project settings somewhere (xCode).
Black stripes - ugliness. 90% of games won't let you change orientation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question