import pygame
frorn pygame.Iocals import • frorn random import randint import sys
class Player(pygame.spnte.Spnte):
det _inlt_(self, start_x, start y. wldth, heigtit):
pygame.spritc.Sprite._init_(self)
self.image ■ pygame.transform.scalę(pygame.image.loadlplaye i
self.rect = self.image.get rect()
sc\f.rcct.x = start x self.rect.y ■ start y
self.speed v = O