r/pygame • u/Electronic_Place8767 • Sep 15 '26
How to increase game resolution without changing window size?
Ive been at this project for 2 months now and its the first project where i spent my money hiring an artist, issue is the dimensions of the game window is 800x600 and i commissioned for very DETAILED art, so when the ships were shown in game they looked very blurry since its smoothed out to not look pixelly when scaled down. Can i still show the artist’s work by increasing the resolution without changing the game’s window size?
8
Upvotes


5
u/IHaveTwoOfYou Sep 15 '26
You can make the sprites bigger? Other than that you have to change the window size since that is directly tied to the resolution (currently being 800x600) you should also rewrite your game to make it support any resolution, my recommendation would be to make everything scale on the y axis, since it means it can work on ultrawide after you spend 30 years bawling your eyes out trying to get the UI to look right
3
u/soareyousaying Sep 15 '26
First time doing 2D games? 2D sprite arts need to be designed for a specific resolution. Your resolution is part of the artistic design. So you need to specify the native resolution: "my game runs on 1024x768", then tell your artists to design arts for that resolution. Any increase/decrease in resolution need to be thought out how the visual presentation of your game changes and how players play your game. This is why
pygame.SCALEDexists, to allow increasing the window size without having to scale up the native resolution or make programmatic scaling of your game UI.So, you got it backward. Set your resolution first, then tell your artists to create pixel arts for that resolution.
3
u/kjunith Sep 15 '26 edited Sep 15 '26
You can have a window
window_res = (1024, 768)window = pygame.display.set_mode(window_res)then have a display
display_res = (800, 600)display = pygame.Surface(display_res)and when you draw everything you blit the display on the window using pygame.transform
window.blit(pygame.transform.scale(display, window_res))this would need you to recreate the display when you change display_res
Edit: You draw everything onto the display before you blit that on the window.
Edit 2: Alternatively you can scale all your sprites when you draw them on the window using the same method:
scale = 2.0draw_sprite = pygame.transform.scaleby(sprite, scale)draw_rect = draw_sprite.get_rect(topleft=(x * scale, y * scale))window.blit(draw_sprite, draw_rect)