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

drawGrid missing in startAnimationLoop #1

Open
rjpgt opened this issue Mar 30, 2024 · 0 comments
Open

drawGrid missing in startAnimationLoop #1

rjpgt opened this issue Mar 30, 2024 · 0 comments

Comments

@rjpgt
Copy link

rjpgt commented Mar 30, 2024

First of all, thank you for this tutorial.

This is not important. But since you had talked about an updated version of drawGrid I was wondering why a call to it is missing in the init function and in startAnimationLoop. I think it looks good to have the grid drawn for now.

  startAnimationLoop(function (deltaTime) {
    clearCanvas(ctx, scene.camera);
    drawGrid(ctx, scene.camera);
    scene.update(deltaTime);
    drawScene(ctx, scene);
  });
}
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