So apparently if you don't put all of this in it's own directory, pip explodes.

This commit is contained in:
2025-06-20 18:05:57 +01:00
parent f4e0e24774
commit 2c79adaf36
4 changed files with 5 additions and 4 deletions

14
src/gameUtils/utils.py Normal file
View File

@ -0,0 +1,14 @@
import pygame
def centre(surface: pygame.Surface, rect: tuple[int, int, int, int]) -> pygame.Surface:
"""
Centres a surface within a given rectangle.
Args:
surface: The surface to be centred.
rect: The rectangle the surface will be centred in.
Returns:
pygame.Surface
"""
pass