Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MousePressed in "NOC_5_1_box2d_exercise_solved.pde" #105

Open
CaseyJScalf opened this issue Oct 23, 2018 · 0 comments
Open

MousePressed in "NOC_5_1_box2d_exercise_solved.pde" #105

CaseyJScalf opened this issue Oct 23, 2018 · 0 comments

Comments

@CaseyJScalf
Copy link

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);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant