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

View File

@ -1,16 +1,17 @@
import tomllib
class Game: class Game:
def __init__(self, surface, playerManager): def __init__(self, surface):
""" """
Initialises some things for the game developers. Initialises some things for the game developers.
Args: Args:
surface (pygame.Surface): The surface the game devs draw on. surface (pygame.Surface): The surface the game devs draw on.
platerManager (NoPELib.PlayerManager): The player manager.
""" """
self.surf = surface self.surf = surface
self.size = self.surface.size self.size = self.surf.size
self.pm = playerManager self.pm = None
with open('./game.toml', 'r') as f: with open('./game.toml', 'r') as f:
self.cfg = tomllib.loads(f.read()) self.cfg = tomllib.loads(f.read())