tversteeg / chuot

🐭 AGPL licensed Rust game engine for 2D pixel-art games
http://tversteeg.nl/chuot/
GNU Affero General Public License v3.0
22 stars 1 forks source link

Draw multiple translated with rotation #100

Open suprohub opened 4 days ago

suprohub commented 4 days ago

how rotate clones?

tversteeg commented 4 days ago

If you want to rotate all of them with the same rotation:

ctx.sprite(..).rotate(..).draw_multiple_translated(..)

I don't have an API yet to draw each sprite with a different rotation, but that shouldn't be too difficult to add.