feat: added hurt animation

This commit is contained in:
Sara 2023-11-29 13:47:46 +01:00
parent 879d72e10f
commit f76cb2d57b
6 changed files with 71 additions and 6 deletions

View file

@ -7,7 +7,7 @@
viewBox="0 0 600 300"
version="1.1"
id="svg1"
inkscape:version="1.3 (0e150ed6c4, 2023-07-21)"
inkscape:version="1.3.2 (091e20e, 2023-11-25, custom)"
sodipodi:docname="player.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
@ -23,11 +23,16 @@
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
inkscape:zoom="0.17916917"
inkscape:cx="2087.4127"
inkscape:cy="1345.0975"
inkscape:current-layer="svg1"
showgrid="false">
inkscape:zoom="0.64"
inkscape:cx="4756.25"
inkscape:cy="1699.2187"
inkscape:current-layer="g2-6-7-3-07"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1009"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1">
<inkscape:page
x="0"
y="0"
@ -64,6 +69,13 @@
margin="0"
bleed="0"
inkscape:label="Jab_B" />
<inkscape:page
x="1200.0002"
y="300.00021"
width="300"
height="300"
id="page643"
inkscape:label="Hurt" />
</sodipodi:namedview>
<defs
id="defs1">
@ -582,6 +594,59 @@
sodipodi:nodetypes="cssscsccssscsccscc"
transform="translate(297.23,1.8467738)" />
</g>
<g
id="g2-6-7-3-07"
transform="translate(1198.6112,288.19253)"
style="display:inline"
inkscape:label="Jab_B_F1">
<ellipse
style="font-variation-settings:'wght' 700;display:inline;fill:none;fill-opacity:1;stroke:#a8adff;stroke-width:2.7;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
id="path9-0-2-5-3-5"
cx="137.06308"
cy="290.33295"
rx="75.014259"
ry="15.615653" />
<path
style="font-variation-settings:'wght' 700;fill:#333333;stroke-width:1.6;stroke-linejoin:round"
d="m 141.43734,111.07206 c 3.43418,7.62585 16.34986,22.64132 24.68533,28.30776 8.33547,5.66645 43.27471,-18.57487 43.27471,-18.57487 0,0 10.63749,-1.57196 11.13055,-9.55058 0.49305,-7.97864 -7.92444,-14.08278 -13.67072,-9.69425 -5.7463,4.38849 -6.08771,9.18648 -6.08771,9.18648 0,0 -26.71291,18.59927 -26.66033,15.82783 0.12999,-6.85444 -11.93869,-24.57244 -11.93869,-24.57244 0,0 -7.27781,-12.463897 -17.12566,-7.481877 -6.20594,3.139516 -7.04173,8.926147 -3.60753,16.551977 z"
id="path8-2-6-1-3-8-25"
sodipodi:nodetypes="zscsscscszz"
inkscape:transform-center-x="-40.755709"
inkscape:transform-center-y="-68.862691" />
<path
style="font-variation-settings:'wght' 700;fill:#4d4d4d;stroke-width:1.6;stroke-linejoin:round"
d="m 114.06917,205.11298 c -2.70839,-22.70346 -2.58169,-55.39189 -3.62065,-64.18813 -1.03895,-8.79622 -8.24675,-27.86739 -2.17215,-37.69594 6.07461,-9.82856 18.21635,-10.614552 28.59445,-12.543886 10.37807,-1.929332 28.05273,-4.164854 29.75725,10.944826 1.81752,16.11156 -1.74974,26.69153 -2.04359,36.12327 -0.35988,11.55008 2.67593,61.29173 2.67593,61.29173 z"
id="path5-6-8-8-4-6"
sodipodi:nodetypes="cssssscc"
inkscape:transform-center-x="2.6704416"
inkscape:transform-center-y="-38.445823" />
<path
style="font-variation-settings:'wght' 700;fill:#4d4d4d;stroke-width:1.6;stroke-linejoin:round"
d="m 106.39665,58.493706 c 6.45589,30.778219 38.34031,29.830213 48.03885,23.62611 9.69855,-6.204104 10.83993,-24.947199 7.23371,-38.611583 -3.5633,-13.501825 -15.60495,-26.44751 -33.62639,-22.206545 -7.15415,1.683572 -28.102061,6.413793 -21.64617,37.192018 z"
id="path6-1-5-3-8-6"
sodipodi:nodetypes="zsssz"
inkscape:transform-center-x="-0.50435891"
inkscape:transform-center-y="-20.167619" />
<path
style="font-variation-settings:'wght' 700;fill:#4d4d4d;stroke-width:1.6;stroke-linejoin:round"
d="m 123.18059,93.438841 c 10.68747,-4.580143 2.99704,-19.725021 2.99704,-19.725021 l 31.76914,-1.072131 c 0,0 -10.33623,10.924897 -10.24634,14.544637 0.0903,3.619715 4.92168,5.058006 4.92168,5.058006 z"
id="path7-8-7-1-8-8"
inkscape:transform-center-x="-1.3289255"
inkscape:transform-center-y="-102.61378" />
<path
style="font-variation-settings:'wght' 700;display:inline;fill:#666666;fill-opacity:1;stroke-width:1.6;stroke-linejoin:round"
d="m 113.44879,109.89578 c -0.29183,8.19256 7.93509,43.1106 17.72438,46.31542 9.78925,3.20478 29.3768,7.45434 29.3768,7.45434 0,0 6.36634,8.71311 13.20647,5.18533 6.84012,-3.52782 7.88572,-14.07676 1.51652,-17.02333 -6.3692,-2.94658 -10.50388,-0.86524 -10.50388,-0.86524 0,0 -24.84053,-5.36858 -24.86779,-8.03238 -0.10164,-9.9299 -3.99496,-30.70183 -3.99496,-30.70183 0,0 -1.0063,-14.200286 -11.96935,-14.731785 -6.90874,-0.334933 -10.19644,4.206915 -10.48826,12.399475 z"
id="path8-7-4-8-0-5"
sodipodi:nodetypes="zscsscscszz"
inkscape:transform-center-x="-7.2431742"
inkscape:transform-center-y="-52.068657" />
<path
style="font-variation-settings:'wght' 700;display:inline;fill:#4d4d4d;stroke-width:1.6;stroke-linejoin:round"
d="m -184.11015,196.49763 c 1.5072,-8.33983 16.2777,-7.83743 26.8281,-8.23934 10.5504,-0.40193 27.431,-1.30624 27.7325,6.83262 0.3014,8.13887 8.4403,37.27802 8.8422,44.61305 0.4019,7.33503 -5.5438,38.83234 -5.5438,38.83234 0,0 10.9457,1.92276 12.6728,3.46196 2.4516,2.18496 -3.6631,5.75582 -3.6631,5.75582 l -22.8471,-1.27983 c 0,0 4.2793,-38.72585 4.0784,-43.64936 -0.201,-4.92351 -10.3196,-41.40375 -17.2527,-41.50423 -6.9331,-0.10048 -13.2027,37.21392 -14.107,42.94127 -0.9043,5.72735 -20.6665,42.71197 -20.6665,42.71197 0,0 2.6411,1.24271 8.4282,4.56674 8.435,4.84492 -8.2464,5.82208 -8.2464,5.82208 l -15.01819,-4.67381 c 0,0 17.39579,-48.86993 18.57769,-53.73665 1.7081,-7.03359 0.1849,-42.45467 0.1849,-42.45467 z"
id="path4-3-0-4-2-4-9-4"
sodipodi:nodetypes="cssscsccssscsccscc"
transform="translate(297.23,1.8467738)" />
</g>
<g
id="g2-6-7"
transform="translate(1798.6502,-11.928906)"

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 60 KiB

BIN
game/assets/Player_Hurt.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 MiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3 MiB

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3 MiB

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4 MiB

After

Width:  |  Height:  |  Size: 53 KiB