So I'm just trying to make a guide for my game. This is my code so far. This code is incomplete
import pygame
import sys
pygame.init()
myfont = pygame.font.SysFont("Phosphate, 14")
keys=pygame.key.get_pressed()
while True:
for even in pygame.event.get():
if keys[pygame.K_K]:
if keys[pygame.K_K] and keypressed:
keypressed = label = myfont.render("Guide.md", 1, (255,255,0))
screen.blit(label, (100,100))
if event.type == pygame.QUIT:
pygame.quit()
sys.exit
What am I doing wrong? When I try to run the code it says: File"(My user, I didn't put it for saftey reasons)", line 4, in myfont = pygame.font.SysFont.size("Phosphate,14") AttributeError: 'function' object has no attribute 'size'