Hardness Maps
BlitzPlus Forums/BlitzPlus Programming/Hardness Maps
| ||
Anyone uses hardness maps? It's a (hidden)graphic with different colour areas you can use to detect collisions etc. |
| ||
Yes, I used them in Hole in One. Why? |
| ||
What is a hardness map? Your description isn't very clear. |
| ||
Are these like you might see in Street Fighter: where in the shoryuken frame, Ryu's fist is one color, meaning that its offensive, and his exposed ribs are another color, meaning that they're succeptable to be hit? I'd always wondered if that was how it was done. |
| ||
nah its more like a gradiented image hidden from view, checking the pixel colour at an X,Y position would reveal its brightness, white = solid collision, stop and a light grey might = going up hill, slow down the players momentum, that kinda thing. |
| ||
I call them "Collision Color Maps" Usualy drawn in an Image buffer then using read pixel on that buffer. Used to use them in my Alphabreed game, but I decided to create better tile based collision instead. |