Read this document to understand the project layout.
Author: Megha Ganesh - [email protected]
- The development environment for this project was CLion.
Disclaimer: This project has only been run/tested on MacOS
- Download Cinder for MacOS (assume it gets downloaded to a folder called cinder_0.9.2_mac)
- Create a subdirectory in the cinder_0.9.2_mac folder called "my-projects"
- Clone the repository into my-projects
- cd to the project directory
cd final-project-meghasg2
- Make sure CMake is in the PATH and run CMake on the project. Example:
export PATH="/Applications/CLion.app/Contents/bin/cmake/mac/bin":$PATH
- Run cmake . at the project root to generate build files
cmake .
Build the application
cmake --build . --target cinder-myapp -- -j 4
- cd to the executable location
cd Debug/cinder-myapp/cinder-myapp.app/Contents/MacOS/
- Run the app (in this case, in debug mode)
./cinder-myapp
- Open CLion and go to File -> New CMake Project from Sources
- Select final-project-meghasg2 and open in CLion
- Build the project in CLion
- MacOS users: it's possible that you may come across
Error running 'cinder-snake': Cannot run program … cinder-snake.app/Contents/Resources"): error=13, Permission denied
In this case, try doing Edit configurations -> Executable -> Select Other -> Find my-projects/final-project-meghasg2/cmake-build-debug/Debug/cinder-myapp/Contents/MacOS/cinder-myapp and click run once again
- You should now be able to build and run Etch-a-Sketch!
- Instructions: Click and drag your mouse to draw particles to the screen
Key | Action |
---|---|
spacebar |
Clear the screen and change the color of the particles |
s |
Increase the size of the particles |
d |
Decrease the size of the particles |
a |
Change the gravity of the particles and watch them fall |