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

26
src/gameUtils/base.py Normal file
View 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