diff --git a/README.md b/README.md old mode 100644 new mode 100755 index 32e7d58..2c10a0f --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ A raycast simulation written in PyGame, Python ## Setup 1. Install the required libraries: `pip3 install -r requirements.txt` -2. Cythonize the class files: `cythonize -i ray.pyx && cythonize -i walls.pyx` +2. Run setup file to cythonize class files: `python3 setup.py build_ext --inplace` 3. Run `main.py`: `python3 main.py` ## Screenshots diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..59eab74 --- /dev/null +++ b/setup.py @@ -0,0 +1,6 @@ +from distutils.core import setup +from Cython.Build import cythonize + +setup( + ext_modules=cythonize(["walls.pyx", "ray.pyx"]) +)