Hello!
Can I create a container with bunnies and rotate it, like in PIXI.js?
Thanks.
Containers
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Containers
Found reference: https://love2d.org/wiki/Canvas.
- Sir_Silver
- Party member
- Posts: 286
- Joined: Mon Aug 22, 2016 2:25 pm
- Contact:
Re: Containers
Create a grid of images and rotate them along a point? Definitely.
- zorg
- Party member
- Posts: 3465
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: Containers
You can also do this a bit more simply with Löve; you don't need a canvas for this.
Use your bunny image with a SpriteBatch, put the 25 or however many you would like into it, then draw the created sprite batch object with love.graphics.draw which has a few parameters, including rotational angle, and the two origin offsets, which should be half the width and height of your total area of bunny sprites.
Use your bunny image with a SpriteBatch, put the 25 or however many you would like into it, then draw the created sprite batch object with love.graphics.draw which has a few parameters, including rotational angle, and the two origin offsets, which should be half the width and height of your total area of bunny sprites.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 9 guests