80 * Pixels with _alpha value_ = 0 will not be subject to collision |
80 * Pixels with _alpha value_ = 0 will not be subject to collision |
81 * White (255, 255, 255) pixels will be terrain, no background texture will be shown when it is destroyed. |
81 * White (255, 255, 255) pixels will be terrain, no background texture will be shown when it is destroyed. |
82 * Black (0, 0, 0) pixels will be terrain with background texture applied (Note: Adding any black pixels removes erasure protection from areas where the map.png is solid but the mask.png is transparent) - 0.9.17+ |
82 * Black (0, 0, 0) pixels will be terrain with background texture applied (Note: Adding any black pixels removes erasure protection from areas where the map.png is solid but the mask.png is transparent) - 0.9.17+ |
83 * Red (255, 0, 0) pixels will be indestructible terrain (regardless of game mode settings) |
83 * Red (255, 0, 0) pixels will be indestructible terrain (regardless of game mode settings) |
84 * Blue (0, 0, 255) pixels will be ice - 0.9.17+ |
84 * Blue (0, 0, 255) pixels will be ice - 0.9.17+ |
85 * Green (0, 255, 0) pixels block portals - 0.9.18+ In 0.9.20+ they are implemented as “bouncy”—this is used for the Rubber weapon. This mask can be used normally for maps or theme objects. If bouncing is implemented and the green pixels should only block portals, place a dotted line of single red/black/white pixels a few pixels above the green, spaced a few pixels apart. This will keep most objects from interacting with the green, but prevent portal spawning. |
85 * Green (0, 255, 0) pixels are bouncy (since 0.9.20) and block portals (since 0.9.18). This mask can be used normally for maps or theme objects. If bouncing is implemented and the green pixels should only block portals, place a dotted line of single red or black or white pixels 3 pixels above the green, spaced 3 pixels apart each. This will keep most objects from interacting with the green, but prevent portal spawning. |
86 |
86 |
87 It is recommended that your file _only_ consists of pixels which have one of the values above. This ensures that the masks works properly for your map and avoids unexpected behaviour. Also, it makes your file significantly smaller. [http://www.hedgewars.org/node/3339 Here] is a simple guide describing how you can ensure that. |
87 It is recommended that your file _only_ consists of pixels which have one of the values above. This ensures that the masks works properly for your map and avoids unexpected behaviour. Also, it makes your file significantly smaller. [http://www.hedgewars.org/node/3339 Here] is a simple guide describing how you can ensure that. |
88 |
88 |
89 *Examples:* |
89 *Examples:* |
90 * [http://hedgewars.googlecode.com/hg/share/hedgewars/Data/Maps/portal/mask.png Mask] of [http://hedgewars.googlecode.com/hg/share/hedgewars/Data/Maps/portal/map.png Portal Map] |
90 * [http://hedgewars.googlecode.com/hg/share/hedgewars/Data/Maps/portal/mask.png Mask] of [http://hedgewars.googlecode.com/hg/share/hedgewars/Data/Maps/portal/map.png Portal Map] |
91 (Transparent areas may not be recognizeable as such in your browser/image preview program, so open e.g. in [http://www.gimp.org/ Gimp]) |
91 (Transparent areas may not be recognizeable as such in your browser/image preview program, so open e.g. in [http://www.gimp.org/ Gimp]) |
92 |
92 |
93 |
93 |
94 === `map.lua` === |
94 === `map.lua` === |
95 A Lua script to be used together with the map. |
95 A Lua script to be used together with the map. |