Files
2022-08-25 00:27:03 +02:00

17 lines
460 B
Python

import pygame
import colors as Colors
pygame.init()
pygame.font.init()
_font = pygame.font.SysFont('Calibre', 24)
def draw_fps(surface: pygame.surface, clock: pygame.time.Clock):
_text_fps = _font.render(f"FPS: {round(clock.get_fps(), 0)}", True, Colors.White)
surface.blit(_text_fps, (5, 5))
def draw_player_pos(surface: pygame.surface, pos_y):
_text_fps = _font.render(f"Y: {pos_y}", True, Colors.White)
surface.blit(_text_fps, (5, 25))