Initially I am creating a game surface with dimension WIDTH and HEIGHT
pygame.init()
SCREEN1 = pygame.display.set_mode((WIDTH,HEIGHT))
sprites = pygame.sprite.Group()
sprites.add( ..... #add sprite
...
...
sprites.draw(SCREEN)
SCREEN.blit("test", (WIDTH-4, HEIGHT-2))
pygame.display.flip()
clock.tick(FPS)
How can I transform SCREEN1 to SCREEN2 with a scale of x2? I know there is pygame.transform.scale, I tried the following but it does not work. It only shows an empty window with new dimension.
pygame.init()
SCREEN1 = pygame.display.set_mode((WIDTH,HEIGHT))
sprites = pygame.sprite.Group()
sprites.add( ..... #add sprite
...
...
sprites.draw(SCREEN)
SCREEN.blit("test", (WIDTH-4, HEIGHT-2))
SCREEN2=pygame.display.set_mode((WIDTH*2,HEIGHT*2))
pygame.transform.scale(SCREEN, (WIDTH*2,HEIGHT*2), SCREEN2)
pygame.display.flip()
clock.tick(FPS)
May I know what is the proper way to do it? Thanks.