So apparently if you don't put all of this in it's own directory, pip explodes.
This commit is contained in:
14
src/gameUtils/utils.py
Normal file
14
src/gameUtils/utils.py
Normal 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
|
||||
Reference in New Issue
Block a user