FreezingMoon / AncientBeast

The Turn Based Strategy Game/eSport. Master your beasts! 🐺
https://AncientBeast.com
GNU Affero General Public License v3.0
1.65k stars 567 forks source link

avoid duplication of summoner sprites for each player color #198

Open DreadKnight opened 11 years ago

DreadKnight commented 11 years ago

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 commented 11 years ago

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 commented 10 years ago

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