Mentions légales du service

Skip to content
Snippets Groups Projects

Added a --speed [value] argument to agdbentures

Merged DETROYAT Alexis requested to merge dev/utils into main
1 file
+ 11
0
Compare changes
  • Side-by-side
  • Inline
+ 11
0
@@ -42,6 +42,7 @@ from code_window import (
from utils import log
from config import Config
from language import Lang
from graphic.constants import Anim
if __name__ == "__main__":
@@ -106,6 +107,14 @@ if __name__ == "__main__":
help="Input in the terminal is forwarded to gdb/inferior (default = True). Disable when using interactive debugging.",
)
parser.add_argument(
"--speed",
"-s",
type=int,
default=5,
help="Adjust player movement speed (from 1 to 100), affecting the SPEED constant in lib/graphic/constants.py"
)
args = parser.parse_args()
Config.CONSOLE = args.console
@@ -153,6 +162,8 @@ if __name__ == "__main__":
if args.dev:
Config.dev_mode()
Anim.SPEED = args.speed/100
window = MainWindow(code_window_cls)
if args.level is None:
Loading