On 3/9/2021 3:03 PM, Quentin Bock wrote:
Error 1:
Space Invaders.py:90: SyntaxWarning: "is" with a literal. Did you mean "=="?
if bullet_state is "fire":
Multiple string objects can have the same string value. Just because
bullet_state == 'fire' does not mean that it *is* the particular ob
On 2021-03-09 20:03, Quentin Bock wrote:
Error 1:
Space Invaders.py:90: SyntaxWarning: "is" with a literal. Did you mean "=="?
if bullet_state is "fire":
Error 2:
line 66, in
if event.key == pygame.K_SPACE:
AttributeError: 'Event' object has no attribute 'key'
Code:
import pygame
impor
On Tue, 9 Mar 2021 15:03:54 -0500, Quentin Bock wrote:
> Error 1:
> Space Invaders.py:90: SyntaxWarning: "is" with a literal. Did you mean "=="?
> if bullet_state is "fire":
>
> Error 2:
> line 66, in
> if event.key == pygame.K_SPACE:
> AttributeError: 'Event' object has no attribute 'key'