Rotatable Equipment


Allows players to rotate any non-square equipment

Utilities
a month ago
0.18 - 2.0
3.49K

i Allow specifying rotated sprites?

4 years ago

It would be nifty if there was some mechanism to allow specifying rotated sprites.

Perhaps just look for a rotated_sprite property on the original equipment definition, and use that if present?

4 years ago

I don't believe this is something I can do on my end. I think the sprite rotation is an engine limitation.

Equipment prototypes specify that they need a Sprite specifically. RotatedSprites are only usable by specific prototypes, mainly artillery.

Or do you mean as a mechanism to allow other mod authors to register a rotated sprite with my mod?

4 years ago

Or do you mean as a mechanism to allow other mod authors to register a rotated sprite with my mod?

This is what I mean.

4 years ago

Ok, I wasn't aware that prototypes could have extra properties without failing some validation from Factorio.

I have added something for this in the newest version, see here for more details: https://github.com/DedlySpyder/Rotatable_Equipment#mod-compatibility

4 years ago

Cool. =)

New response