MousePressed in "NOC_5_1_box2d_exercise_solved.pde"
CaseyJScalf opened this issue · comments
I think line 31 should read something like this or the boxes just keep appearing regardless if you click your mouse or not.
// When the mouse is clicked, add a new Box object
if (mousePressed) {
Box p = new Box(mouseX, mouseY);
boxes.add(p);
}