Initial Commit

This commit is contained in:
2022-08-25 00:27:03 +02:00
commit 2e13c87a9d
15 changed files with 151 additions and 0 deletions
+16
View File
@@ -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))