79313706

Date: 2024-12-28 11:50:22
Score: 1
Natty:
Report link

In your main file you used:

if event.type == pygame.K_SPACE:
    game.player.launch_projectile()

However, the "event.type" is just "pygame.KEYDOWN" and not "pygame.K_SPACE". You should use "game.pressed.get(pygame.K_SPACE)" instead:

if game.pressed.get(pygame.K_SPACE):
    game.player.launch_projectile()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lukinator