Draws an image in Gartic Phone
You may find it useful to create a virtual environment to make it easier to organise the installed modules.
To install dependencies, run pip install -r ./requirements.txt
in the root project directory.
To initialise Playwright, run playwright install firefox
.
Set up the Firefox instance with python ./setup.py
. This will take you to the uBlock Origin installation page. Accept and install the extension so Gartic Phone loads significantly faster. You can skip this if you object to the use of adblockers, but it will break python ./draw.py --demo
. You can still run it in manual mode though.
To generate images to draw, run python ./gen-evo.py <input file path>
. This will output a shape file to <image name>.gar
by default. Run python ./gen-evo.py --help
for more information on command-line flags.
To cancel generation midway through, press CTRL-C. This will export what it's generated so far and exit.
In most cases, drawing will only occur when the browser is focused.
Run python ./draw.py --demo <input file path>
to start a single-player instance of Gartic Phone and draw the image. Run python ./draw.py
to run it in interactive mode (if you wanted to use this in an actual round, for example)
In interactive mode, enter the path to the .gar file to start drawing. Only do this once a drawing round has started. Currently there is no way to stop the drawing after it's started.
You must have gifski installed and added to your PATH.
Run python ./make-gif.py <path to .gar>
to create a GIF.
Run python ./make-gif.py -h
for information on the available flags.
Examples were generated with a batch-count
of 750 and a batch-size
of 450,000. All other settings were default.