URL:
<http://gna.org/patch/?1690>
Summary: Patch to make alpha more usable in maps.
Project: Wormux
Submitted by: fuzxxl
Submitted on: Donnerstag 03.06.2010 um 17:37
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
This patch adds the ability to control the alpha-level, at which a pixel is
treaten as background. To handle this, a new property is introduced to the
map's config.xml:
<alpha_threshold>###</alpha_threshold>
If the alpha-value of a pixel is SMALLER then the value set in
alpha-threshold, it will be treaten as background, otherwise it is treaten as
solid (walkable) foreground.
The patch does not break compatibility, as the default value for
alpha-threshold is 255.
Possible usages:
* A map using walkable structures made of semitransparent things (eg.
icecubes, glass, whatever)
Reasons against:
* Walk ability still depends on the alpha of the map. Better solution would
be to give ability to add another file which contains the foreground /
background information.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Donnerstag 03.06.2010 um 17:37 Name: threshold.patch Size: 3kB By:
fuzxxl
<http://gna.org/patch/download.php?file_id=9236>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?1690>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Wormux-gna mailing list
[email protected]
https://mail.gna.org/listinfo/wormux-gna