Difference between revisions of "FSOSS 2010/processing.js/"

From CDOT Wiki
Jump to: navigation, search
Line 5: Line 5:
  
  
<b>Processing (aka P5)</b> [www.Processing.org]<br />
+
<b>Processing (aka P5)</b> [http://www.Processing.org Processing.org]<br />
 
<ul>
 
<ul>
 
  <li>Open source data visualization language</li>
 
  <li>Open source data visualization language</li>
Line 15: Line 15:
  
  
<b>Processing.js (aka PJS)</b> [www.ProcessingJS.org]<br />
+
<b>Processing.js (aka PJS)</b> [http://www.ProcessingJS.org ProcessingJS.org]<br />
 
  <ul>
 
  <ul>
 
   <li>Open source JavaScript port of Processing</li>
 
   <li>Open source JavaScript port of Processing</li>

Revision as of 13:21, 26 October 2010

Game Development Using Processing.js

Goals

  • Develop a simple 2D or 3D game using in Processing


Processing (aka P5) Processing.org

  • Open source data visualization language
  • Developed in Java
  • "Sketches" written using Java syntax
  • Requires a JVM plug-in
  • Uses the <object> tag


Processing.js (aka PJS) ProcessingJS.org


Setting up Processing.js


Coordinate system

  • size() sets canvas dimensions
  • top-left corner [0, 0]
  • X increases right
  • Y increases downwards


Basiscs

1 - size, background, rect Example
2 - setup Example
3 - draw, noStroke, ellipse, fill, mousePressed Example
4 - line, stroke, strokeWeight Example
5 - ArrayList Example

Input

6 - mousePressed, mouseReleased, println Example
X  - keyPressed, keyCode, keyReleased Example

Transfomations

7 - transforms, triangle, rect, (point)
8 - more transforms
9 - 2D Vectors (dot, mult, etc.)
10 - class (?)
11 - type demo (text, textWidth)
12 - PImage, timing, random
13 - Particle System

3D

X - box Example
X - sphere, sphereDetail Example
X - Vertex
X - Texture Example

DOM Manipulation/Library Integration

X - DOM Interaction Example
X - jQueryUI
X - CSS
X - Audio
X - Video
X - Physics
X - SVG effects
+ collision detection

Requirements ? Breaks ? GitHub Lighthouse GC

Links: Processing.js Home Page: ProcessingJS.org Bug Tracking: processing-js.lighthouseapp.com/ IDE: PJS, Bespin, SketchPad, EtherPad

Processing Home Page: Processing.org Bug Tracking: code.google.com/p/processing/issues/list