I am trying to draw a little image onto the window. problem is, when I run the code, this pops up.
AttributeError: 'pygame.Surface' object has no attribute 'image'
anyway here the code.
import pygame, sys, os, math
pygame.init()
runing_left = False
runing_right = False
screen_Width_heigth = (1920, 1020)
screen = pygame.display.set_mode((screen_Width_heigth))
player_sur = screen.image.load('asset/Josh.png').convert()
player = player_sur.get_rect(center = (17, 22))
pygame.display.set_caption('platformer: torch guy')
game_state = [True]
and a bunch of code that isn't gotta help you to help me