So apparently if you don't put all of this in it's own directory, pip explodes.
This commit is contained in:
26
src/gameUtils/base.py
Normal file
26
src/gameUtils/base.py
Normal file
@ -0,0 +1,26 @@
|
||||
import tomllib
|
||||
|
||||
class Game:
|
||||
def __init__(self, surface):
|
||||
"""
|
||||
Initialises some things for the game developers.
|
||||
|
||||
Args:
|
||||
surface (pygame.Surface): The surface the game devs draw on.
|
||||
"""
|
||||
|
||||
self.surf = surface
|
||||
self.size = self.surf.size
|
||||
self.pm = None
|
||||
|
||||
with open('./game.toml', 'r') as f:
|
||||
self.cfg = tomllib.loads(f.read())
|
||||
|
||||
def update(self):
|
||||
pass
|
||||
|
||||
def onEvent(self, event):
|
||||
pass
|
||||
|
||||
def close(self):
|
||||
pass
|
||||
Reference in New Issue
Block a user