0
Why there are some error
I am using python 3 with pygame Code: https://code.sololearn.com/csSDTmoNPw5E/?ref=app Error code: Unused import color from wildcard import Unused import rect from wildcard import Undefined variable âFULLSCREENâ Undefined variable âKEYDOWNâ Undefined variable âK_ESCAPEâ Undefined variable âQUITâ Thank you for your help !
4 Answers
+ 3
Where did you run this code? I suppose that it was not in playground, as pygame is not supported here. So if you are working on an IDE on your local device, it is hard to guess where these problems are coming from.
But independent from this, there are some typos in your code:
running = Ture # should be True
if event = K_ESCAPE: #<<<< should be ==
running = False
elif event.type == QUIT:
running = false # You should use the same spelling like 2 lines above
+ 2
Pygame isnt a module
+ 1
0
i use VS , and i have use==in my computer