Schwungus-Software / Bombswab

A game about defusing bombs and/or causing chaos
The Unlicense
0 stars 0 forks source link

Add tinted sprites #5

Closed nonk123 closed 10 months ago

nonk123 commented 10 months ago

The current Sprite type is only used for sprite indices and doesn't store information about how it should be rendered. draw does support tinting, but the tint should be moved into a separate type called TintedSprite. Sprite can then be implicitly converted into TintedSprite with a full-white tint; otherwise, the tint could be specified in the constructor.