6
Shouts

How to change image’s color (RGB) at runtime in Windows 8

published 268 days, 11 hours, 16 minutes ago posted by http://jacekciereszko.pl/http://jacekciereszko.pl/ 273 days, 4 hours, 11 minutes ago
Monday, August 27, 2012 3:29:33 PM GMT Wednesday, August 22, 2012 10:34:50 PM GMT

You have an image of unit (sprite) in your game and you would like to dynamically change selected colors. You would like to get units that will look the same for one player and different than others. Let’s say Player one has units with red shield, Player two uses blue color.

You can use two different images prepared by designer but then your application size will be increased. If your unit’s graphic is 10KB and you support ten players with ten colors, you get 100KB size. Now, if your animation is in 8 different directions, you will have 800KB instead of 80KB and it’s just for one sprite!

category: Metro | clicked: 19 | | source: cut-it.net | show counter code
tags: