the floodit one is (500, 400)
and the pong one is defaulted to (800,600) with option to change
and the pong one is defaulted to (800,600) with option to change
Output:$ python game.py -h
usage: game.py [-h] [-c] [-f] [-d DIFFICULTY] [-s WIDTH HEIGHT]
Pong Arguments
optional arguments:
-h, --help show this help message and exit
-c, --clean Remove all .pyc files and __pycache__ directories
-f, --fullscreen start program with fullscreen
-d DIFFICULTY, --difficulty DIFFICULTY
where DIFFICULTY is one of the strings [hard, medium,
easy], set AI difficulty, default is medium,
-s WIDTH HEIGHT, --size WIDTH HEIGHT
set window size to WIDTH HEIGHT, defualt is 800 600
So if you wanted it to be (500,500) you would do python game.py --size 500 500
Recommended Tutorials: