Compare commits
2 Commits
be66bada11
...
0b3dd847d3
Author | SHA1 | Date | |
---|---|---|---|
|
0b3dd847d3 | ||
|
2a7900586c |
@ -190,6 +190,10 @@ class TetrArcade(tetrislogic.TetrisLogic, arcade.Window):
|
|||||||
"pause": "ESCAPE",
|
"pause": "ESCAPE",
|
||||||
"fullscreen": "F11",
|
"fullscreen": "F11",
|
||||||
}
|
}
|
||||||
|
self.conf["AUTO-REPEAT"] = {
|
||||||
|
"delay": 0.3,
|
||||||
|
"period": 0.01
|
||||||
|
}
|
||||||
self.load_conf()
|
self.load_conf()
|
||||||
if not os.path.exists(USER_PROFILE_DIR):
|
if not os.path.exists(USER_PROFILE_DIR):
|
||||||
os.makedirs(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 = (
|
controls_text = (
|
||||||
"\n\n\nCONTROLS\n\n"
|
"\n\n\nCONTROLS\n\n"
|
||||||
+ "\n".join(
|
+ "\n".join(
|
||||||
|
2
setup.py
2
setup.py
@ -22,7 +22,7 @@ setup(
|
|||||||
options={
|
options={
|
||||||
"build_exe": {
|
"build_exe": {
|
||||||
"packages": ["arcade", "pyglet"],
|
"packages": ["arcade", "pyglet"],
|
||||||
"excludes": ["tkinter"],
|
"excludes": ["tkinter", "PyQt4", "PyQt5", "PySide", "PySide2"],
|
||||||
"include_files": "res",
|
"include_files": "res",
|
||||||
"silent": True
|
"silent": True
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user