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
; AttributeError: 'Event' object has no attribute 'key'
>
> Code:
> import pygame
> import random
[snip]
>
> Why is it saying unexpected argument?
> Youtube Tutorial I'm Following:
> https://www.youtube.com/watch?v=FfWpgLFMI7w
Who is saying "un
enemy_X_change = -4
enemy_Y += enemy_Y_change
# Bullet Movement
if bullet_state == "fire":
fire_bullet(player_X, bullet_Y)
bullet_Y -= bullet_Y_change
player(player_X, player_Y)
enemy(enemy_X, enemy_Y)
pygame.display.update()
Why is it saying unexpected argument?
Youtube Tutorial I'm Following:
https://www.youtube.com/watch?v=FfWpgLFMI7w
--
https://mail.python.org/mailman/listinfo/python-list