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:
|
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())
|
||||||
Reference in New Issue
Block a user