Open abinash25 opened 3 years ago
I guess you need to replace "is" with "=="
i get the same error
@danielius200629 it seems pygame is not installed and my reply was towards the syntax warning. Please try installing pygame to fix this.
Please install pygame.
On Mon, Jan 4, 2021, 7:00 PM Karthikeyan Singaravelan < notifications@github.com> wrote:
@danielius200629 https://github.com/danielius200629 it seems pygame is not installed and my reply was towards the syntax warning. Please try installing pygame to fix this.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/attreyabhatt/Space-Invaders-Pygame/issues/33#issuecomment-753975523, or unsubscribe https://github.com/notifications/unsubscribe-auth/AREWSCVSCKAUQHSDFIAEAC3SYG7HBANCNFSM4TNVCYLQ .
C:\Users\LENOVO\anaconda3\python.exe C:/Users/LENOVO/Downloads/Space-Invaders-Pygame-master/Space-Invaders-Pygame-master/main.py C:/Users/LENOVO/Downloads/Space-Invaders-Pygame-master/Space-Invaders-Pygame-master/main.py:121: SyntaxWarning: "is" with a literal. Did you mean "=="? if bullet_state is "ready": C:/Users/LENOVO/Downloads/Space-Invaders-Pygame-master/Space-Invaders-Pygame-master/main.py:177: SyntaxWarning: "is" with a literal. Did you mean "=="? if bullet_state is "fire": Traceback (most recent call last): File "C:/Users/LENOVO/Downloads/Space-Invaders-Pygame-master/Space-Invaders-Pygame-master/main.py", line 4, in
import pygame
ModuleNotFoundError: No module named 'pygame'
Process finished with exit code 1