Please have a check on the screenshot,
In that here self.image has got the pygame.image.load() method on it. but if i have to access all the available methods to self.image object, Pycharm autosuggestions does not list those.
Actually, self.image has got the get_rect to display the rectangle property of the image.
self.rect = self.image.get_rect()
import pygame
class Ship:
def __init__(self, screen):
self.screen = screen
self.image = pygame.image.load('images/ship.bmp')
self.rect = self.image.