So apparently if you don't put all of this in it's own directory, pip explodes.
This commit is contained in:
@ -1,16 +1,17 @@
|
||||
import tomllib
|
||||
|
||||
class Game:
|
||||
def __init__(self, surface, playerManager):
|
||||
def __init__(self, surface):
|
||||
"""
|
||||
Initialises some things for the game developers.
|
||||
|
||||
Args:
|
||||
surface (pygame.Surface): The surface the game devs draw on.
|
||||
platerManager (NoPELib.PlayerManager): The player manager.
|
||||
"""
|
||||
|
||||
self.surf = surface
|
||||
self.size = self.surface.size
|
||||
self.pm = playerManager
|
||||
self.size = self.surf.size
|
||||
self.pm = None
|
||||
|
||||
with open('./game.toml', 'r') as f:
|
||||
self.cfg = tomllib.loads(f.read())
|
||||
Reference in New Issue
Block a user