Skip to main content

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

Yo i had an issue with seeing the game screen and i found the problem, you can change line 15

screen = pygame.display.set_mode((screen_width, screen_height))

to this

screen = pygame.display.set_mode((screen_width, screen_height),pygame.SCALED | pygame.FULLSCREEN)

What pygame.SCALED does is to make sure that the game resolution scales with the Monitor resolution and what pygame.FULLSCREEN does is that it fits the game to the monitor screen

monitor_size = [pygame.display.Info().current_w, pygame.display.Info().current_h]

screen = pygame.display.set_mode((monitor_size[0], monitor_size[1]), pygame.FULLSCREEN)

SCREEN_WIDTH, SCREEN_HEIGHT = monitor_size

scale = SCREEN_HEIGHT // 350


I've done this in some of my newer games, which I believe achieves a similar effect, but this way I can use the monitor size to do other things and scale objects respectively.