Rollingball will be a mobile app. We will develop it in the Unity game engine by using a third-party plugin called OpenCV for Unity. The app will be compatible with both Android and iOS. Our build instructions will focus on Android, but we will also provide a few notes for readers who are experienced with the iOS build process (on Mac).
For instructions on setting up Unity and finding relevant documentation and tutorials, please refer back to the Setting up Unity and OpenCV section in Chapter 1, Preparing for the Mission. At the time of writing this book, Unity's officially supported development environments are Windows and Mac, although there is ongoing beta development toward Linux support.
Using the mobile device's camera, Rollingball will scan two types of primitive shapes—circles and lines. The user will start by drawing any combination...