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

love.graphics.rotate supported with new matrices #24

Open
wants to merge 1 commit into
base: weblua
Choose a base branch
from

Conversation

MaddieM4
Copy link
Contributor

I didn't get around to this until about half an hour ago, but it was really easy. I'd already been looking at rotation support with a suspicious eye ever since the font stuff, so most of the research as to what would be necessary? Already done, I just had to pull up a bit of refresher material to copy from.

I added the clouds_rotate demo to show this off and prove that it works. This is a straight copy of the clouds demo, except that I've altered the nekochan:render function to use the transformation stack, rotation and translation to slowly spin Nekochan around its center.

This pull request should be pretty easy to backport to the mainline lua-parser.js. It doesn't include support for rotated fonts yet, I think that belongs in a separate issue (unless you want to hold out for that, but it would be a lot harder to backport cleanly due to the churn between the weblua branch and mainline in love.font.js).

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