Difference between revisions of "WkIndiMask"
From Worms Knowledge Base
CyberShadow (Talk | contribs) (fix spelling) |
|||
Line 11: | Line 11: | ||
}} | }} | ||
− | '''wkIndiMask''' is a module for [[WormKit]] that allows maps to be set up that have both | + | '''wkIndiMask''' is a module for [[WormKit]] that allows maps to be set up that have both destructible and indestructible parts to them. |
− | There are 3 'types' of terrain, Destructible, Indestructible and Tough (only removed when an explosion | + | There are 3 'types' of terrain, Destructible, Indestructible and Tough (only removed when an explosion occurs that will remove the background soil texture) |
IndiMask settings for a map can be edited using [[MapGEN]] version 0.4.0 or later, or if you need more control, any paint package using the info below: | IndiMask settings for a map can be edited using [[MapGEN]] version 0.4.0 or later, or if you need more control, any paint package using the info below: | ||
Line 21: | Line 21: | ||
'''This colour is R:240, G:024, B:204. (<span style="background-color:#f018cc"> </span> #F018CC)''' | '''This colour is R:240, G:024, B:204. (<span style="background-color:#f018cc"> </span> #F018CC)''' | ||
− | After that, you can pick which colours are | + | After that, you can pick which colours are destructible or not using the least significant bit in the Red component of the colour. So essentially: |
'''If the Red component is even, you can destroy it; if it is odd, you can't.''' | '''If the Red component is even, you can destroy it; if it is odd, you can't.''' |
Revision as of 19:39, 6 December 2010
wkIndiMask | |
---|---|
Developer: | Plutonic |
Latest version: | 1 December 2010 |
Supported games: | W:A |
Language: | C++ |
License: | Restricted-source |
Download: | [1] |
wkIndiMask is a module for WormKit that allows maps to be set up that have both destructible and indestructible parts to them.
There are 3 'types' of terrain, Destructible, Indestructible and Tough (only removed when an explosion occurs that will remove the background soil texture)
IndiMask settings for a map can be edited using MapGEN version 0.4.0 or later, or if you need more control, any paint package using the info below:
All info is stored in the PNG palette for the map. In order to set up a map for wkIndiMask, you must first ensure the palette has a particular entry. The module will search for this entry when a game starts and activate or deactivate based on its presence. Because WA throws away unused map palette entries, it will have to exist somewhere on the map. 1 pixel under the water is fine.
This colour is R:240, G:024, B:204. ( #F018CC)
After that, you can pick which colours are destructible or not using the least significant bit in the Red component of the colour. So essentially:
If the Red component is even, you can destroy it; if it is odd, you can't.
Further to that, the Green component is similarly used to decide if the colour is Tough.
A colour that has odd for both Red and Green will be set as Tough.