AncientBeast icon indicating copy to clipboard operation
AncientBeast copied to clipboard

avoid duplication of summoner sprites for each player color

Open DreadKnight opened this issue 12 years ago • 2 comments

We should only have one sprite of Dark Priest and just change the player color on it using Phaser game engine.

This will avoid a lot of duplicated work on the 2D version of the game, like having to render the Dark Priest and alternatives for each player color, along with all animations and having to maintain that. It should also save bandwidth and memory, making the game load way faster.

If this is not easily doable with current Phaser 2.x CE, then we should postpone this and upgrade to Phaser v3 first #1584

DreadKnight avatar Jan 10 '13 08:01 DreadKnight

Rezoner updated canvasquery do be able to handle this kind of stuff and even make a quick example http://canvasquery.com/examples/replaceHue/

The release with this feature can be found here http://canvasquery.com/prerelease/0.6.6.js

DreadKnight avatar Jan 23 '13 20:01 DreadKnight

Phaser 2.0.1 now supports blend modes and tints, which might help with optimizing this.

DreadKnight avatar Mar 25 '14 15:03 DreadKnight