marrus-sh / jelli

A game engine! Currently being developed.
MIT License
1 stars 0 forks source link

Allow sprite mirroring #36

Closed marrus-sh closed 8 years ago

marrus-sh commented 8 years ago

I would think this would be pretty easy to implement but I'd have to check how canvas2d drawing works. In any case, it should be specified using a data-mirrored attribute on a sprite

marrus-sh commented 8 years ago

wontfix because there's no easy way of doing this in canvas2d without taking a huge performance hit – just use mirrored sprites instead.

(Possible future project: add data-mirror to a sprite sheet to mirror each sprite in the source image. Because this would only happen once it would not be a huge performance hit, and it would reduce file sizes / download times.)