Add files via upload
This commit is contained in:
parent
f26b047748
commit
bce4a5cf26
@ -11,6 +11,7 @@ except ImportError:
|
||||
import random
|
||||
import sched
|
||||
import time
|
||||
import os
|
||||
|
||||
|
||||
# You can change controls here.
|
||||
@ -28,7 +29,7 @@ CONTROLS = {
|
||||
"QUIT": "q"
|
||||
}
|
||||
|
||||
FILE = ".terminis"
|
||||
FILE = os.path.expanduser(os.path.join('~', ".terminis"))
|
||||
|
||||
|
||||
class Rotation:
|
||||
@ -503,8 +504,11 @@ class Stats(Window):
|
||||
self.refresh()
|
||||
|
||||
def save(self):
|
||||
try:
|
||||
with open(FILE, mode='w') as f:
|
||||
f.write(str(self.high_score))
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
class Controls(Window):
|
||||
@ -683,4 +687,3 @@ def main():
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
Loading…
x
Reference in New Issue
Block a user