Added textures.

This commit is contained in:
laochailan 2011-07-05 16:37:13 +02:00
parent fc7b99325f
commit 42ea8823d1
4 changed files with 166 additions and 1 deletions

BIN
gfx/masterspark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

165
gfx/masterspark.svg Normal file
View file

@ -0,0 +1,165 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="333.12"
height="837.45923"
id="svg2"
version="1.1"
inkscape:version="0.48.1 r9760"
sodipodi:docname="masterspark.svg"
inkscape:export-filename="/home/laochailan/src/taisei/gfx/masterspark.png"
inkscape:export-xdpi="94.560516"
inkscape:export-ydpi="94.560516">
<defs
id="defs4">
<linearGradient
id="linearGradient4321">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop4323" />
<stop
style="stop-color:#ffffff;stop-opacity:0.32017544;"
offset="1"
id="stop4325" />
</linearGradient>
<filter
id="filter3793"
x="-0.25"
width="1.5"
y="-0.5"
height="2"
inkscape:menu-tooltip="Colorizable filling with flow inside like transparency"
inkscape:menu="Textures"
inkscape:label="Shaken liquid"
color-interpolation-filters="sRGB">
<feGaussianBlur
id="feGaussianBlur3795"
result="result8"
stdDeviation="4" />
<feTurbulence
id="feTurbulence3797"
baseFrequency="0.05"
numOctaves="2"
type="fractalNoise"
result="result7"
seed="0" />
<feColorMatrix
id="feColorMatrix3799"
values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 2 -0.75 "
result="result5" />
<feComposite
id="feComposite3801"
in2="result7"
in="result8"
operator="out"
result="result6" />
<feDisplacementMap
id="feDisplacementMap3803"
in2="result6"
result="result4"
scale="120"
yChannelSelector="A"
xChannelSelector="A"
in="result5" />
<feComposite
id="feComposite3805"
in2="result4"
in="result8"
operator="arithmetic"
result="result2"
k1="1"
k3="0.5"
k2="0"
k4="0" />
<feComposite
id="feComposite3807"
in2="result2"
operator="in"
in="SourceGraphic"
result="fbSourceGraphic" />
</filter>
<filter
inkscape:collect="always"
id="filter3790">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="5.1719233"
id="feGaussianBlur3792" />
</filter>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient4321"
id="radialGradient4327"
cx="150.38161"
cy="652.84686"
fx="150.38161"
fy="652.84686"
r="157.31026"
gradientTransform="matrix(0.66624219,0,4.1373686e-8,3.6148508,50.191009,-1707.0971)"
gradientUnits="userSpaceOnUse" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#2e2e2e"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:zoom="0.98994949"
inkscape:cx="-332.19863"
inkscape:cy="378.21348"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1039"
inkscape:window-x="0"
inkscape:window-y="-2"
inkscape:window-maximized="1"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0">
<inkscape:grid
type="xygrid"
id="grid3755"
empspacing="5"
visible="true"
enabled="true"
snapvisiblegridlinesonly="true" />
</sodipodi:namedview>
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(16.199363,-234.11724)">
<path
sodipodi:nodetypes="czc"
inkscape:connector-curvature="0"
id="path3757"
d="m 11.007539,254.34167 c 0,0 -48.004325,798.02053 139.021991,798.02053 187.02632,0 139.97885,-799.03068 139.97885,-799.03068"
style="opacity:0.56766914000000002;fill:url(#radialGradient4327);stroke:none;filter:url(#filter3790);fill-opacity:1" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.7 KiB

BIN
gfx/masterspark_ring.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

View file

@ -201,7 +201,7 @@ void MasterSpark(Enemy *e, int t) {
glColor4f(0.9,1,1,fade*0.8);
int i;
for(i = 0; i < 8; i++)
draw_masterspark_ring(global.plr.pos, t%30 + 15*i);
draw_masterspark_ring(global.plr.pos - 50I, t%30 + 15*i);
glColor4f(1,1,1,1);
}