Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 28b29bad authored by DETROYAT Alexis's avatar DETROYAT Alexis
Browse files

Added a --speed [value] argument to agdbentures so the player can modify the...

Added a --speed [value] argument to agdbentures so the player can modify the player speed at will (default is 5/100)
parent 14b3003d
No related branches found
No related tags found
2 merge requests!21Merging the multi-character sprite handling system into avoid_monster,!17Added a --speed [value] argument to agdbentures
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment