강의

멘토링

커뮤니티

Inflearn Community Q&A

ladd48130438's profile image
ladd48130438

asked

Free Python Lecture (Usage Part 1) - Making a nostalgic arcade game (3 hours)

Background

게임화면을 다시 그리기 오류

Resolved

Written on

·

689

2

screen.blit 적용시 not defined 오류

pythonGUIpygame

Answer 7

1

nadocoding님의 프로필 이미지
nadocoding
Instructor

이쿠!! 죄송해요. 11번 줄이 아니라 8번 줄에

screen = pygame.display.set_mode( ... ) 

이렇게 적으셔야 해요. 스마트폰으로 답변 적다가 라인 넘버 확인에 실수가 있었네요 ^^

0

screen = pygame.display.set_mode((screen_width, screen_height))

이렇게 써야 되는거 아닌가요?

0

0

blit을 인식을 못하는 것같습니다 해결법이 있나요?

0

Yong Choi님의 프로필 이미지
Yong Choi
Questioner

어휴 감사합니다..!! 제가 진짜 이해 못하는줄 알았네요 ㅠㅠㅠ

0

Yong Choi님의 프로필 이미지
Yong Choi
Questioner

말씀하신대로 screen = pygame.display....이렇게 붙였는데

이러니깐 이번에는

23번 줄에 AttributeError: 'NoneType' object has no attribute 'blit'

오류가 나네요...

0

nadocoding님의 프로필 이미지
nadocoding
Instructor

11번 줄 앞에

screen = pygame....

이렇게 screen 변수를 만들어서 값을 저장해주세요 ^^

ladd48130438's profile image
ladd48130438

asked

Ask a question