'pygameeventget() not working not getting any response form the code [duplicate]
for event in pygame.event.get():
print("debug")
if event.type == pygame.QUIT:
pygame.quit()
quit()
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_LEFT:
self.place_block()
self.update_ui()
print("next")
the "debug" does not print at all when I press a key
I want the custom methods to run when the respective key is pressed I have plans to add direction later in the code
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
