So i wanted to try out Pygame, and my code isnt even that complicated.
import pygame
pygame.init()
keylook = pygame.KEYDOWN(pygame.K_SPACE)
if keylook==True:
print("Thats a Space key lol")
My Error code is
pygame 2.1.2 (SDL 2.0.18, Python 3.10.7)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "C:\Users\Forth\Documents\development\python\gameshit.py", line 4, in <module>
keylook = pygame.KEYDOWN(pygame.K_SPACE)
TypeError: 'int' object is not callable