Wpis z mikrobloga

cześć, od niedawna zacząłem uczyć się pythona, czy mógłby ktoś mi pomóc z kodem? Cały czas wyskakuje mi błąd, nie wiem czemu:

Kod:
import sys

import pygame

from settings import Settings

def rungame():
pygame.init()
ai
settings=Settings()
screen=pygame.display.setmode((aisettings.screenwidth,aisettings.screen.height))
pygame.display.setcaption("Inwazja obcych")

while True:
screen.fill(ai
settings.bgcolor)
for event in pygame.event.get():
if event.type==pygame.quit:
sys.exit()

pygame.display.flip()

run
game()

class Settings():
def _init(self):
self.screen
width=1200
self.screenheight=800
self.bg
color=(230,230,230)

Błąd: AttributeError: 'Settings' object has no attribute 'screen'

#python
  • 7