import pygame, sys from pygame. locals import * pygame.init() object = pygame.rect((20,50)),((50,100)) class player(pygame.sprite.sprite): def _init_(self): super()._init_() self.image = pygame.imgae.load("player_sprite_R.png") self.rect = self.image.get_rect()