diff --git a/config.py b/config.py new file mode 100644 index 0000000..0e72df6 --- /dev/null +++ b/config.py @@ -0,0 +1,12 @@ +import os + + +'''定义一些超参''' +WIDTH = 600 +HEIGHT = 600 +NUMGRID = 8 +GRIDSIZE = 64 +XMARGIN = (WIDTH - GRIDSIZE * NUMGRID) // 2 +YMARGIN = (HEIGHT - GRIDSIZE * NUMGRID) // 2 +ROOTDIR = os.getcwd() +FPS = 30 \ No newline at end of file