import pygame import sys pygame.init() class Player(pygame.sprite.Sprite) : def __init__(self) : super().__init__() self.image = pygame.image.load( "Player_Sprite_R.png" ) self.rect = self.image.get_rect() pygame.draw.rect( surface, color, pygame.Rect(30, 30, 60, 60))