Coder Social home page Coder Social logo

pixplay's Introduction

#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!)

  1. Get the entire source code by either cloning or downloading.
  2. Get Eclipse for Java (Regular), if you haven't already.
  3. Get Proclipsing for Eclipse.
  4. Make a new project. (Image)
  5. In the Wizards menu, select Processing Project. (Image)
  6. 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/
  7. 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)

  1. Get the entire source by either cloning or downloading.
  2. Open your IDE
  3. Make a new project, select "From existing source" and then point towards your copy of the source code.
  4. You'll get a lot of errors. That's because you haven't "linked" the Processing libraries yet.
  5. Find your Processing directory. It should look like this: (Image) and inside, the folder "lib/".
  6. Inside lib/, find "core.jar".
  7. 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.
  8. Try debugging.

How to add JAR-s in NetBeans: Select Project Properties - Libraries - Add JAR/Folder

pixplay's People

Contributors

boxmein avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.