ange-yaghi / scs-2d-demo

Demo for the Simple 2D Constraint Solver.
85 stars 15 forks source link

Simple Constraint Solver Demo

This is a simple demo project for the Simple 2D Constraint Solver System.

Alt text

Steps to Clone and Build

Note: this project currently only builds on Windows!

Step 1 - Clone the repository

git clone --recurse-submodules https://github.com/ange-yaghi/scs-2d-demo

Step 2 - Install CMake

Install the latest version of CMake here if it's not already installed.

Step 3 - Install Dependencies

You will need to install the following dependencies and CMake will need to be able to locate them (ie. they need to be listed on your PATH):

1. SDL2
2. SDL2_image
3. Boost (make sure to build the optional dependencies)

Step 4 - Build and Run

From the root directory of the project, run the following commands:

mkdir build
cd build
cmake ..
cmake --build .

If these steps are successful, a Visual Studio solution will be generated in build. You can open this project with Visual Studio and then run the scs-2d-demo project. If you encounter an error telling you that you're missing DLLs, you will have to copy those DLLs to your EXE's directory.