Advertisement
IHATEMICROWAVEOVEN

image resizing tower defense game

Oct 9th, 2024
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. # Resize some images
  2. def resizeImage(sprite, newSize):
  3. towerSprites[sprite]['Image'] = pygame.transform.scale(towerSprites[sprite]['Image'], newSize)
  4. towerSprites[sprite]['Dimensions'] = Vector2(newSize)
  5.  
  6. resizeImage('Pawn0', (70, 70))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement