Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

1920x1080 and scrollbars

A topic by Underthecards created Sep 15, 2023 Views: 353 Replies: 3
Viewing posts 1 to 3

I set my game's resolution to 1920x1080 but everytime I start it there are scrollbars and the game window is "too zoomed" so I have

to use the scrollbars to see all the elements in the game.

(+1)

It's difficult to help you without knowing more details, but what you describe sounds like the game is in windowed mode and your computer's resolution is equal to or lower than 1920*1080.

If the game has the same resolution as your screen, then you should play in full screen mode.

If you want to play in windowed mode, the resolution of the game must be lower than the resolution of your screen and not the same, because the edge of the window, as well as the windows bar, will take up space.

Thanks for the answer. The proble is: even if I go fullscren there still are scrollbars because the game window is too large.

What kind of underlying framework/ engine gives you scrollbars for the actual game area? 

Is this html?

The reported resolution of the Desktop is not the actual resolution. Windows is zoomed for "higher" resolutions. The recommendation is 150% for 1920x1080 displays. So your browser/game might get    reported a relative resolution. Also a browser might have a base zoom that is higher than 100%. I see problems on fullscreen web games all the time, so there might be some common pitfalls.

On user end I usually have this custom css active, so I actually do not know, if some of those games would display scrollbars. There is this kinda bug, that sometimes scrollbars are displayed for the space they would take. Meaning, scrollsbars would not be needed, if there were not there. But since they are there, they take up space from the area, making scrolling necessary.

element::-webkit-scrollbar {
    display: none;
}
::-webkit-scrollbar {
    display: none;
}
This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.