../
By Transforming Surfaces In Pygame
Transforming
- Scaling
- Rotate etc.
Scaling
scale
pygame.transform.scale(player_surface(width,height))
pygame.transform.scale(player_surface(100,100))
scale2x
pygame.transform.scale2x(surface) – makes the x twice
pygame.transform.scale2x(player_surface)
rotozoom
pygame.transform.rotozoom(surface, rotation angle, scale) – can be used to scale + rotate
pygame.transform.rotozoom(player_surface, 0, 2)
Tags: /python/ /python3/ /pygame/ /gamedev/ /tutorial/ /animation/