Skip to content

CS126SP20/final-project-meghasg2

Repository files navigation

Etch-a-Sketch

license docs

Read this document to understand the project layout.

Author: Megha Ganesh - [email protected]

Dependencies

Integrated Development Environment

  • The development environment for this project was CLion.

Prerequisites to build and run from either the command line or through 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

Build and run via command line

  • 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

Build and run using CLion

  • 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!

Game

  • Instructions: Click and drag your mouse to draw particles to the screen

Keyboard

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

About

final-project-meghasg2 created by GitHub Classroom

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published