I am attempting to make something like a simple 2D game engine. It's not really, but kinda. The point of it is to allow for not just square tiling but triangular and hexagonal tiling as well. I'm using pygame for it, so it's also an easier way to access pygame. Anyways, I'm currently working on the button input. I have this rn:
def keyboardInput(key: str):
keys=pygame.key.get_pressed()
if keys[pygame.key.key_code(key)]:
return True
else:
return False
I think this is currently working tho but it seems like there’s still a problem. Maybe it’s with the code in main.py.