Autorepeat in conf
This commit is contained in:
parent
be66bada11
commit
2a7900586c
@ -190,6 +190,10 @@ class TetrArcade(tetrislogic.TetrisLogic, arcade.Window):
|
||||
"pause": "ESCAPE",
|
||||
"fullscreen": "F11",
|
||||
}
|
||||
self.conf["AUTO-REPEAT"] = {
|
||||
"delay": 0.3,
|
||||
"period": 0.01
|
||||
}
|
||||
self.load_conf()
|
||||
if not os.path.exists(USER_PROFILE_DIR):
|
||||
os.makedirs(USER_PROFILE_DIR)
|
||||
@ -241,6 +245,9 @@ class TetrArcade(tetrislogic.TetrisLogic, arcade.Window):
|
||||
},
|
||||
}
|
||||
|
||||
self.AUTOREPEAT_DELAY = float(self.conf["AUTO-REPEAT"]["delay"])
|
||||
self.AUTOREPEAT_PERIOD = float(self.conf["AUTO-REPEAT"]["period"])
|
||||
|
||||
controls_text = (
|
||||
"\n\n\nCONTROLS\n\n"
|
||||
+ "\n".join(
|
||||
|
Loading…
x
Reference in New Issue
Block a user