Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Different cropping on Mac and PC

A topic by KalleManuel created Aug 18, 2020 Views: 715 Replies: 5
Viewing posts 1 to 2

Hi! I just uploaded my first game on Itch, a Unity made WebGL  memorycard game for children (in Swedish). Everything works like a charm besides this little problem.

 I made the game on a mac and played on my Mac Book Pro (on witch i made the game) it looks exactly like it should, On other Macs that I have access too it looks the same... as it should. But when I try the game on a PC it's cropped differently, or have the wrong size or something. it's like if if it scaled up 25%. 

I guess its some setting i missed either in Unity or on itch.io. I been googling around for an hour now but can't find any answer. Does anyone know?

link to the game: https://kallemanuel.itch.io/pips-memory

This is how the first scene should look:


Moderator(+1)

Could it be something related to screen size? If you take the browser on your mac and resize the window around, how does the game look like? If after you’ve resized the window, and refresh the game, how does the game look like now?

I’m not aware of any “sizing” differences between platforms when exporting with Unity, I can only assume this has something to do with screen size.

well. on Mac it looks good but not on the PC. I guess you ment that I should try resizing the browser window on the PC. The PC unit is not around right now. I need to wait wait until tomorrow but i'm pretty sure that i did resized the browser window when I tryied it.  I guess the srceen sizes are quite simular. and if its not - shouldnt the game adjust to whichever screen it shown on. If not - maybe you are right. Maybe its not a mac/PC problem. Just a screensize problem. What computer do you have? Did the startscreen looked like my screenshoot or was it much closer? if you choose hard ("Svår" ) is the cards cropped or not?

Moderator(+1)

What if you resize the browser on the Mac? Does all the content remain visible?

Unity does not understand what should be visible on different screen sizes, so it does what the programmer has configured it to do.

I’m using Linux, and the game was zoomed in. After resizing the browser around, content would get cropped out, which suggest that the game has no mechanism to handle different screen sizes.

(+1)

Yes, you're right. When I resize the browser in chrome (mac) It doesnt resizes, it ge crop out. So what do I do. Responsive plug in? Code? I google it - thanks!  

Moderator(+1)

Search online for something like “Unity supporting multiple screen sizes”. There’s a lot to understand about the subject. There are Unity tools that can make this easier, but with their own cons.

Unfortunately I can’t just solve this in a small reply like this. The general idea is you’d have to tell Unity what should be visible, what should resize itself to be part of the screen, and what should be cropped out. The “Lazy” solution is to define a screen ratio, like 16:9, and resize the whole screen to fit that ratio. This results in empty borders either vertically or horizontally, but is the quickest solution.

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.