1111
1212
1313
14- package _Get_Started_ ;
14+ package Basic_Tutorial ;
1515
1616import com .thomasdiewald .liquidfun .java .DwWorld ;
1717
1818
1919import org .jbox2d .collision .shapes .CircleShape ;
2020import org .jbox2d .collision .shapes .PolygonShape ;
21- import org .jbox2d .common .Color3f ;
2221import org .jbox2d .common .Vec2 ;
2322import org .jbox2d .dynamics .Body ;
2423import org .jbox2d .dynamics .BodyDef ;
3130import processing .opengl .PGraphics2D ;
3231
3332
34- public class _Get_Started_ extends PApplet {
33+ public class Basic_Tutorial extends PApplet {
3534
3635 //
37- // A more detailed documented example to get started.
36+ // A more detailed example to get started.
3837 // All other examples of this library follow the exact same structure as shown here.
3938 //
4039 // setup:
@@ -48,18 +47,23 @@ public class _Get_Started_ extends PApplet {
4847 // 2) render
4948 //
5049 //
51- // references, tutorials:
50+ // References:
51+ //
52+ // - jBox2d Reference:
53+ // http://thomasdiewald.com/processing/libraries/jbox2d-2.3.0/doc/index.html
5254
55+ // - LiquidFunProcessing Reference:
56+ // http://thomasdiewald.com/processing/libraries/liquidfun/reference/index.html
57+ //
58+ //
59+ // Tutorials:
60+ //
5361 // - Box2D tutorial:
5462 // http://www.iforce2d.net/b2dtut/
5563 //
5664 // - LiquidFun guide:
5765 // http://google.github.io/liquidfun/Programmers-Guide/html/index.html
5866 //
59- // - jBox2d Reference:
60- // TODO
61- // - LiquidFunProcessing Reference:
62- // http://thomasdiewald.com/processing/libraries/liquidfun/reference/index.html
6367 //
6468 //
6569 // Controls:
@@ -322,10 +326,11 @@ public void initScene() {
322326 world .particles .param .radius_scale = 1f ;
323327 world .particles .param .color_mult = 1f ;
324328
325-
329+ // set a custom color for mouse-spawned particles
326330 world .mouse_spawn_particles .group_def .setColor (color (64 ,255 ,0 ));
327331
328332
333+
329334 // 3) create particles (or particle-groups)
330335
331336 // shape, in which the particles are spawned
@@ -454,7 +459,7 @@ public void addBody(){
454459
455460
456461 public static void main (String args []) {
457- PApplet .main (new String [] { _Get_Started_ .class .getName () });
462+ PApplet .main (new String [] { Basic_Tutorial .class .getName () });
458463 }
459464
460465}
0 commit comments