summaryrefslogtreecommitdiffstats
path: root/Save/SaveGame.py
blob: aa08c583ee9183f3109e859ccc633f5421476bff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
def SaveGame(level):
    try:
        f = open("./Save/SaveData.txt", "x")
    except:
        f = open("./Save/SaveData.txt", "w")
    f.write(str(level)+"\n")
    f.close()

def LoadGame():
    f = open("./Save/SaveData.txt", "r")
    lines = f.readlines()
    f.close()
    return int(lines[0])