jsb-netgame/xlog.py

10 lines
208 B
Python
Raw Normal View History

2024-02-10 17:06:30 +00:00
import pygame
pygame.font.init()
font = pygame.font.SysFont('FreeMono', 16)
def display(surface, lines):
for i in range(len(lines)):
surface.blit(font.render(lines[i], False, (255,255,255)), (0, i*20))