Initial Commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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))
|
||||
Reference in New Issue
Block a user