Nov-14-2018, 02:52 AM
(This post was last modified: Nov-14-2018, 02:52 AM by ghost0fkarma.)
import pygame
pygame.init()
gameDisplay = pygame.display.set_mode((800,600))
pygame.display.set_caption("Simple dodging game")
clock = pygame.time.Clock()
crashed = False
while not crashed:
for event in pygame.event.get():
if event.type == pygame.QUIT():
crashed = True
print(event)
pygame.display.update()
clock.tick(60)
pygame.quit()
quit()Error:if event.type == pygame.QUIT(): #If player wants to quit the game
TypeError: 'int' object is not callableI'm not for sure what this means. Anything advice helps :)
