#PixPlay
A small Processing project to use when wanting to try out random algorithms.
Based on Java and Processing.
Required libraries: Processing, Java
##Controls
Space: Pause / Unpause simulation
Left click: Draw element
Right click: Delete element
Middle click: Pick element
Up arrow: Make brush bigger by 2px
Down arrow: Make brush smaller by 2px
1: Select PixExample
2: Select PixPowder
3: Select PixWall
##Elements
ID 1: Laser - this element just moves left. Color: red
ID 2: Powder - this element moves down like a powder. It also has a nice lightning strike effect when moving down. Color: green
ID 3: Wall - this element behaves as a wall. Color: black
##Buttons
L: Selects Laser element
P: Selects Powder element
W: Selects Wall element
C: Clears the screen
H: Shows the starting message
##Notes While playing, the cursor is hidden. While paused, the cursor is shown.
##How to compile? (With Eclipse!)
- Get the entire source code by either cloning or downloading.
- Get Eclipse for Java (Regular), if you haven't already.
- Get Proclipsing for Eclipse.
- Make a new project. (Image)
- In the Wizards menu, select Processing Project. (Image)
- In the Processing Menu, select your Processing path and sketch directory. (Image)
The Processing path (The extracted folder from processing.org) should look like this: (Image)
And the sketchbook path should be in C:/Users/Username/My Documents/Processing/ - To export, click the fancy P icon left of the test / debug icons and select either Applet or Application, with the only build configuration there. The finished files will have their own directory in the project root.
##How to compile? (With other IDE's)
- Get the entire source by either cloning or downloading.
- Open your IDE
- Make a new project, select "From existing source" and then point towards your copy of the source code.
- You'll get a lot of errors. That's because you haven't "linked" the Processing libraries yet.
- Find your Processing directory. It should look like this: (Image) and inside, the folder "lib/".
- Inside lib/, find "core.jar".
- Open up your IDE and right click your project. Select something similar to "Add other archives / libraries..." and add your core.jar to the list.
- Try debugging.
How to add JAR-s in NetBeans: Select Project Properties - Libraries - Add JAR/Folder