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

Added beginRender lifecycle event. #1064

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

joegaffey
Copy link

I needed to render a background image directly onto the canvas so that I could capture gameplay video including backgrounds using HTMLCanvasElement.captureStream() in my physics based game: https://joegaffey.itch.io/bugvsboxes

I would like to add background animations later that would also benefit from this event.
As a fairly simple game I chose not to include another canvas renderer - matter.js is the only dependency.

Tests indicate no performance impact.

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

Successfully merging this pull request may close these issues.

1 participant