Skip to content

Commit 9421a65

Browse files
committed
next release
1 parent e52b18c commit 9421a65

1 file changed

Lines changed: 16 additions & 11 deletions

File tree

examples/_Get_Started_/_Get_Started_.java renamed to examples/Basic_Tutorial/Basic_Tutorial.java

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@
1111

1212

1313

14-
package _Get_Started_;
14+
package Basic_Tutorial;
1515

1616
import com.thomasdiewald.liquidfun.java.DwWorld;
1717

1818

1919
import org.jbox2d.collision.shapes.CircleShape;
2020
import org.jbox2d.collision.shapes.PolygonShape;
21-
import org.jbox2d.common.Color3f;
2221
import org.jbox2d.common.Vec2;
2322
import org.jbox2d.dynamics.Body;
2423
import org.jbox2d.dynamics.BodyDef;
@@ -31,10 +30,10 @@
3130
import 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

Comments
 (0)