Containers

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
egorcod
Prole
Posts: 17
Joined: Sun Jul 02, 2017 9:41 am

Containers

Post by egorcod »

Hello!

Can I create a container with bunnies and rotate it, like in PIXI.js?

Thanks.
egorcod
Prole
Posts: 17
Joined: Sun Jul 02, 2017 9:41 am

Re: Containers

Post by egorcod »

User avatar
Sir_Silver
Party member
Posts: 286
Joined: Mon Aug 22, 2016 2:25 pm
Contact:

Re: Containers

Post by Sir_Silver »

Create a grid of images and rotate them along a point? Definitely.
User avatar
zorg
Party member
Posts: 3465
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Containers

Post by zorg »

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.
Me and my stuff :3True 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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 9 guests