- Home /
Problem with Scale in game
i got test task from job interwewer.
i need to create a tetris.
But i got stuck at the beginning.
What will be on different resolution ? for example i have block size 36 pixels. It's 30 blocks on ScreenWidth ( 1080 width, 1920 Height)
if i change resolution to something else, how these blocks will be fit in ScreenWidth ?
I wouldn't worry about the resolution so much, unity will handle this kind of stuff for you. Blocks can be fractions of their parent, unity will handle numbers of pixels. I wouldn't have thought that you'll be able to tell whether a block is 30 pixels or 29 pixels if the screen size isn't an exact multiple of your block size.
Answer by MUG806 · Feb 17, 2021 at 10:12 AM
Your camera should have a "size" setting. Here you can set how big an area of your game world fits into the screen. If you set it to 10, your screen will show 10 units of the game world from top to bottom.