So I'm trying to implement a system with accounts where a user can log in. I want to assign each user a sprite that has attributes like level and EXP so that they can return to the game and still have this information saved. This is what I have so far for the post:
post = {
'username': username,
'password': password,
'exp': 0,
'level': 1,
'character': Hero()
}
However, the 'character' line crashes because I can't assign a sprite. Is there any other way to do this? It's a pretty simple game so I would just like it to work at the most basic level (like security doesn't matter at all basically)