This commit is contained in:
Fusselkater 2022-07-18 12:58:38 +02:00
parent c9e8502bea
commit c20da225e6
41 changed files with 1789 additions and 38 deletions

10
common/global_state.gd Normal file
View File

@ -0,0 +1,10 @@
extends Node
var keys = {
'yellow': false,
'green': false,
'blue': false,
'red': false
}
var coins = 0

View File

@ -2,9 +2,9 @@
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="320"
height="640"
viewBox="0 0 84.666666 169.33334"
width="640"
height="720"
viewBox="0 0 169.33333 190.50001"
version="1.1"
id="svg3669"
inkscape:version="1.2 (dc2aedaf03, 2022-05-15)"
@ -26,8 +26,8 @@
showgrid="true"
showguides="false"
inkscape:zoom="1.2938725"
inkscape:cx="-53.328285"
inkscape:cy="333.10856"
inkscape:cx="-95.063463"
inkscape:cy="333.88143"
inkscape:window-width="3440"
inkscape:window-height="1367"
inkscape:window-x="0"
@ -38,7 +38,7 @@
type="xygrid"
id="grid7845"
originx="1.4900001e-06"
originy="4.9600011e-06"
originy="4.960002e-06"
spacingx="21.166667"
spacingy="21.166667" />
</sodipodi:namedview>
@ -854,5 +854,332 @@
d="m 892.05,390 15.75,-7.3 5.45,-10 -0.5,-1.05 -5.2,-10.55 10.45,-16.1 1,11.15 10.95,16.5 0.05,0.05 -0.6,11.15 -0.1,1.95 9.65,4.2 H 939 892.05"
id="path871" />
</g>
<g
id="g3572"
transform="matrix(0.26458333,0,0,0.26458333,-92.604164,119.06251)">
<path
stroke="none"
fill="#93db24"
d="m 352,260 h -2 v -70 h 2 v 70"
id="path3232" />
<path
stroke="none"
fill="#bb8044"
d="m 373.5,190 v 4.9 l -8,8 0.1,-0.05 -1.25,1.2 -2.35,-2.4 9.5,-9.6 V 192 l 0.95,-0.95 0.5,-0.5 0.55,-0.55 m -1,52.65 -7,6.95 0.1,-0.05 -0.65,0.65 -0.6,0.55 -2.35,-2.4 6.4,-6.5 0.25,-0.2 1.05,-1.05 0.35,-0.4 1.45,-1.5 0.95,-0.95 0.95,-0.95 0.1,-0.1 v 4.9 l -1,1.05 m -8.15,-15.3 -2.35,-2.4 9.5,-9.65 0.95,-0.95 0.95,-0.95 0.1,-0.05 v 4.85 l -5.25,5.3 -3.9,3.85"
id="path3234" />
<path
stroke="none"
fill="#80be1f"
d="m 364.35,227.35 9.15,9.3 -3.5,3.55 -0.7,0.75 -0.65,0.7 -0.25,0.2 -6.4,6.5 2.35,2.4 9.15,9.25 H 352 v -70 h 21.5 l -0.55,0.55 -0.5,0.5 -0.95,0.95 v 0.05 l -9.5,9.6 2.35,2.4 9.05,9.2 0.1,0.1 -0.1,0.05 -0.95,0.95 -0.95,0.95 -9.5,9.65 2.35,2.4"
id="path3236" />
<path
stroke="none"
fill="#c99869"
d="m 364.35,227.35 3.9,-3.85 5.1,5 11.7,-11.5 11.6,11.5 11.7,-11.5 11.65,11.5 v 15 l -11.65,-11.5 -11.7,11.5 -11.6,-11.5 -11.7,11.5 -0.85,-0.85 1,-1.05 v -4.9 l -0.1,0.1 -0.95,0.95 -0.95,0.95 -1.45,1.5 H 370 l 3.5,-3.55 -9.15,-9.3 M 373.5,190 H 420 v 23.3 l -11.65,-11.5 -11.7,11.5 -11.6,-11.5 -11.65,11.45 -9.05,-9.2 1.25,-1.2 -0.1,0.05 8,-8 V 190 m 46.5,68.6 v 1.4 h -46.5 l -9.15,-9.25 0.6,-0.55 8.45,8.3 11.7,-11.5 11.6,11.5 11.7,-11.5 9.9,9.8 -0.05,0.05 1.75,1.75"
id="path3238" />
<path
stroke="none"
fill="#c58f5c"
d="m 420,258.6 -1.75,-1.75 0.05,-0.05 -9.9,-9.8 -11.7,11.5 -11.6,-11.5 -11.7,11.5 -8.45,-8.3 0.65,-0.65 -0.1,0.05 7,-6.95 0.85,0.85 11.7,-11.5 11.6,11.5 11.7,-11.5 11.65,11.5 v 15.1 m 0,-45.3 v 15.2 l -11.65,-11.5 -11.7,11.5 -11.6,-11.5 -11.7,11.5 -5.1,-5 5.25,-5.3 v -4.85 l -0.1,-0.1 11.65,-11.45 11.6,11.5 11.7,-11.5 11.65,11.5 m -50,26.9 h 0.05 l -0.35,0.4 -0.4,0.35 0.7,-0.75"
id="path3240" />
</g>
<g
id="g3944"
transform="matrix(0.26458333,0,0,0.26458333,-92.604163,119.06251)">
<path
stroke="none"
fill="#93db24"
d="m 498,190 h 2 v 70 h -2 v -70"
id="path3264" />
<path
stroke="none"
fill="#c99869"
d="M 476.5,260 H 430 v -1.4 l 1.75,-1.75 -0.05,-0.05 9.9,-9.8 11.7,11.5 11.6,-11.5 11.7,11.5 8.45,-8.3 0.6,0.55 -9.15,9.25 M 430,243.5 v -15 l 11.65,-11.5 11.7,11.5 11.6,-11.5 11.7,11.5 5.1,-5 3.9,3.85 -9.15,9.3 3.5,3.55 h -0.05 l -1.45,-1.5 -0.95,-0.95 -0.95,-0.95 -0.1,-0.1 v 4.9 l 1,1.05 -0.85,0.85 -11.7,-11.5 -11.6,11.5 L 441.65,232 430,243.5 m 0,-30.2 V 190 h 46.5 v 4.9 l 8,8 -0.1,-0.05 1.25,1.2 -9.05,9.2 -11.65,-11.45 -11.6,11.5 -11.7,-11.5 -11.65,11.5"
id="path3266" />
<path
stroke="none"
fill="#bb8044"
d="m 476.5,190 0.55,0.55 0.5,0.5 0.95,0.95 v 0.05 l 9.5,9.6 -2.35,2.4 -1.25,-1.2 0.1,0.05 -8,-8 V 190 m 0,23.35 0.1,0.05 0.95,0.95 0.95,0.95 9.5,9.65 -2.35,2.4 -3.9,-3.85 -5.25,-5.3 v -4.85 m 4.85,28.3 0.25,0.2 6.4,6.5 -2.35,2.4 -0.6,-0.55 -0.65,-0.65 0.1,0.05 -7,-6.95 -1,-1.05 v -4.9 l 0.1,0.1 0.95,0.95 0.95,0.95 1.45,1.5 0.35,0.4 1.05,1.05"
id="path3268" />
<path
stroke="none"
fill="#80be1f"
d="m 481.35,241.65 -0.65,-0.7 -0.7,-0.75 -3.5,-3.55 9.15,-9.3 2.35,-2.4 -9.5,-9.65 -0.95,-0.95 -0.95,-0.95 -0.1,-0.05 0.1,-0.1 9.05,-9.2 2.35,-2.4 -9.5,-9.6 V 192 l -0.95,-0.95 -0.5,-0.5 L 476.5,190 H 498 v 70 h -21.5 l 9.15,-9.25 2.35,-2.4 -6.4,-6.5 -0.25,-0.2"
id="path3270" />
<path
stroke="none"
fill="#c58f5c"
d="m 430,258.6 v -15.1 l 11.65,-11.5 11.7,11.5 11.6,-11.5 11.7,11.5 0.85,-0.85 7,6.95 -0.1,-0.05 0.65,0.65 -8.45,8.3 -11.7,-11.5 -11.6,11.5 -11.7,-11.5 -9.9,9.8 0.05,0.05 -1.75,1.75 m 0,-30.1 v -15.2 l 11.65,-11.5 11.7,11.5 11.6,-11.5 11.65,11.45 -0.1,0.1 v 4.85 l 5.25,5.3 -5.1,5 -11.7,-11.5 -11.6,11.5 L 441.65,217 430,228.5 m 50,11.7 0.7,0.75 -0.4,-0.35 -0.35,-0.4 H 480"
id="path3272" />
</g>
<g
id="g4395"
transform="matrix(0.26458333,0,0,0.26458333,76.72917,-50.270828)">
<path
stroke="none"
fill="#93db24"
d="m 30,192 v -2 h 70 v 2 H 30"
id="path3242" />
<path
stroke="none"
fill="#80be1f"
d="m 30,192 h 70 v 21.5 L 88.35,202 l -2.95,2.85 -2.95,2.9 -5.8,5.75 L 64.95,202 42,225.05 l 2.4,2.45 9.1,9.15 -1.05,1.1 -0.95,0.95 -9.5,9.65 2.35,2.4 9.15,9.25 H 30 v -68"
id="path3244" />
<path
stroke="none"
fill="#bb8044"
d="m 100,213.5 v 5 L 88.35,207 76.65,218.5 64.95,207 54.6,217.25 54,217.9 l -5.7,5.7 -3.9,3.9 -2.4,-2.45 22.95,-23.05 11.7,11.5 5.8,-5.75 2.95,-2.9 2.95,-2.85 11.65,11.5 m -47.55,29.15 -7.6,7.6 -0.2,-0.25 v 0.45 l -0.3,0.3 -2.35,-2.4 9.5,-9.65 0.95,-0.95 0.95,-0.95 0.1,-0.1 v 4.9 l -1.05,1.05"
id="path3246" />
<path
stroke="none"
fill="#c58f5c"
d="m 52.45,242.65 0.9,0.85 11.6,-11.5 11.7,11.5 11.7,-11.5 1.45,1.45 10.15,10.05 H 100 v 15.2 l -1.8,-1.8 0.05,-0.05 L 88.3,247 76.6,258.5 64.9,247 l -11.6,11.5 -8.45,-8.25 7.6,-7.6 M 100,218.5 v 10 L 88.35,217 76.65,228.5 64.95,217 53.35,228.5 48.3,223.6 54,217.9 54.6,217.25 64.95,207 76.65,218.5 88.35,207 100,218.5"
id="path3248" />
<path
stroke="none"
fill="#c99869"
d="m 100,228.5 v 15 H 99.95 L 89.8,233.45 88.35,232 76.65,243.5 64.95,232 l -11.6,11.5 -0.9,-0.85 1.05,-1.05 v -4.9 l -0.1,0.1 -0.95,0.95 1.05,-1.1 -9.1,-9.15 3.9,-3.9 5.05,4.9 11.6,-11.5 11.7,11.5 11.7,-11.5 11.65,11.5 m 0,30.2 V 260 H 53.5 l -9.15,-9.25 0.3,-0.3 V 250 l 0.2,0.25 8.45,8.25 11.6,-11.5 11.7,11.5 11.7,-11.5 9.95,9.85 -0.05,0.05 1.8,1.8"
id="path3250" />
<path
stroke="none"
fill="#93db24"
d="m 30,190 h 2 v 70 h -2 v -70"
id="path3252" />
</g>
<g
id="g4521"
transform="matrix(0.26458333,0,0,0.26458333,76.72917,-50.270828)">
<path
stroke="none"
fill="#93db24"
d="m 110,192 v -2 h 70 v 2 h -70"
id="path3210" />
<path
stroke="none"
fill="#bb8044"
d="m 110,218.5 v -5 l 11.65,-11.5 2.95,2.85 2.95,2.9 5.8,5.75 11.7,-11.5 22.95,23.05 -2.4,2.45 -3.9,-3.9 -5.7,-5.7 -0.6,-0.65 L 145.05,207 133.35,218.5 121.65,207 110,218.5 m 47.55,24.15 -1.05,-1.05 v -4.9 l 0.1,0.1 0.95,0.95 0.95,0.95 9.5,9.65 -2.35,2.4 -0.3,-0.3 V 250 l -0.2,0.25 -7.6,-7.6"
id="path3212" />
<path
stroke="none"
fill="#c58f5c"
d="m 157.55,242.65 7.6,7.6 -8.45,8.25 -11.6,-11.5 -11.7,11.5 -11.7,-11.5 -9.95,9.85 0.05,0.05 -1.8,1.8 v -15.2 h 0.05 l 10.15,-10.05 1.45,-1.45 11.7,11.5 11.7,-11.5 11.6,11.5 0.9,-0.85 M 110,228.5 v -10 l 11.65,-11.5 11.7,11.5 11.7,-11.5 10.35,10.25 0.6,0.65 5.7,5.7 -5.05,4.9 -11.6,-11.5 -11.7,11.5 L 121.65,217 110,228.5"
id="path3214" />
<path
stroke="none"
fill="#80be1f"
d="m 180,192 v 68 h -23.5 l 9.15,-9.25 2.35,-2.4 -9.5,-9.65 -0.95,-0.95 -1.05,-1.1 9.1,-9.15 2.4,-2.45 -22.95,-23.05 -11.7,11.5 -5.8,-5.75 -2.95,-2.9 L 121.65,202 110,213.5 V 192 h 70"
id="path3216" />
<path
stroke="none"
fill="#c99869"
d="M 156.5,260 H 110 v -1.3 l 1.8,-1.8 -0.05,-0.05 9.95,-9.85 11.7,11.5 11.7,-11.5 11.6,11.5 8.45,-8.25 0.2,-0.25 v 0.45 l 0.3,0.3 -9.15,9.25 M 110,243.5 v -15 l 11.65,-11.5 11.7,11.5 11.7,-11.5 11.6,11.5 5.05,-4.9 3.9,3.9 -9.1,9.15 1.05,1.1 -0.95,-0.95 -0.1,-0.1 v 4.9 l 1.05,1.05 -0.9,0.85 -11.6,-11.5 -11.7,11.5 -11.7,-11.5 -1.45,1.45 -10.15,10.05 H 110"
id="path3218" />
<path
stroke="none"
fill="#93db24"
d="m 180,190 v 70 h -2 v -70 h 2"
id="path3220" />
</g>
<g
id="g4687"
transform="matrix(0.26458333,0,0,0.26458333,119.0625,-71.437494)">
<path
stroke="none"
fill="#c99869"
d="M 53.5,270 H 100 v 23.3 l -11.65,-11.5 -11.7,11.5 -11.6,-11.5 -11.65,11.45 -0.95,-1 -0.95,-0.95 -7.15,-7.25 9.15,-9.15 v -4.85 l -0.1,0.05 0.1,-0.1 m 46.5,38.5 v 8 l -3.55,3.5 -8.1,-8 -8.15,8.05 -3.55,-3.55 -3.55,3.5 -8.05,-8 -8.1,8 -12.55,-12.65 3.85,-3.85 5.1,5 11.7,-11.5 11.6,11.5 11.7,-11.5 11.65,11.5 m -34.45,18.95 -0.6,0.55 -0.4,-0.4 0.55,-0.6 0.45,0.45"
id="path3300" />
<path
stroke="none"
fill="#c58f5c"
d="M 65.55,327.45 65.1,327 l -0.55,0.6 -7.6,-7.6 8.1,-8 8.05,8 -7.55,7.45 M 100,293.3 v 15.2 L 88.35,297 76.65,308.5 65.05,297 l -11.7,11.5 -5.1,-5 5.25,-5.3 v -4.85 l -0.1,-0.1 11.65,-11.45 11.6,11.5 11.7,-11.5 11.65,11.5 m -19.8,26.75 8.15,-8.05 8.1,8 -8.1,8 -2.95,-2.85 -2.95,-2.9 -2.25,-2.2"
id="path3302" />
<path
stroke="none"
fill="#93db24"
d="m 100,338 v 2 H 30 v -70 h 2 v 68 h 68"
id="path3304" />
<path
stroke="none"
fill="#80be1f"
d="M 100,338 H 32 v -68 h 21.5 l -0.1,0.1 -0.45,0.45 -0.5,0.5 -0.95,0.95 v 0.05 l -9.5,9.6 2.35,2.4 7.15,7.25 0.95,0.95 0.95,1 0.1,0.1 -0.1,0.05 -0.95,0.95 -0.95,0.95 -9.5,9.65 2.35,2.4 h 0.05 l 12.55,12.65 7.6,7.6 0.4,0.4 0.6,-0.55 7.55,-7.45 3.55,-3.5 3.55,3.55 2.25,2.2 2.95,2.9 2.95,2.85 8.1,-8 3.55,-3.5 V 338"
id="path3306" />
<path
stroke="none"
fill="#bb8044"
d="m 53.4,270.1 0.1,-0.05 v 4.85 l -9.15,9.15 -2.35,-2.4 9.5,-9.6 V 272 l 0.95,-0.95 0.5,-0.5 0.45,-0.45 m -9,37.25 h -0.05 l -2.35,-2.4 9.5,-9.65 0.95,-0.95 0.95,-0.95 0.1,-0.05 v 4.85 l -5.25,5.3 -3.85,3.85"
id="path3308" />
</g>
<g
id="g4847"
transform="translate(17.27438,-18.247393)">
<path
stroke="none"
fill="#c99869"
d="m 130.89236,24.412196 v -6.164792 h 12.30312 l 0.0265,0.02646 -0.0265,-0.01323 v 1.283229 l 2.42094,2.420938 -1.89177,1.918229 -0.25136,0.251354 -0.25135,0.264584 -3.05594,-3.02948 -3.09562,3.042709 -3.09563,-3.042709 -0.38364,0.383646 -2.68552,2.659063 h -0.0132 m 0,6.138333 v -2.116667 l 3.08239,-3.042708 3.09563,3.042708 3.09562,-3.042708 3.06917,3.042708 1.3626,-1.322916 1.01865,1.018645 -3.32052,3.33375 -2.1299,-2.103437 -2.15635,2.116667 -0.93927,-0.926042 -0.93927,0.939271 -2.15636,-2.129896 -0.38364,0.383646 -1.75948,1.733021 -0.93927,-0.926042 m 9.41916,2.910417 -0.14552,0.132291 -0.11906,-0.119062 0.13229,-0.145521 0.13229,0.132292 m -6.19125,0 -0.14552,0.132291 -0.11906,-0.119062 0.13229,-0.145521 0.13229,0.132292"
id="path3290"
style="stroke-width:0.264583" />
<path
stroke="none"
fill="#c58f5c"
d="m 134.12027,33.460946 -0.13229,-0.132292 -0.13229,0.145521 -2.02406,-1.997604 1.75948,-1.733021 0.38364,-0.383646 2.15636,2.129896 -0.59532,0.582083 -0.78052,0.767292 -0.635,0.621771 m -3.22791,-5.027084 v -4.021666 h 0.0132 l 2.68552,-2.659063 0.38364,-0.383646 3.09563,3.042709 3.09562,-3.042709 3.05594,3.02948 -0.0265,0.02646 v 1.283229 l 1.40229,1.402292 -1.3626,1.322916 -3.06917,-3.042708 -3.09562,3.042708 -3.09563,-3.042708 -3.08239,3.042708 m 11.40354,3.029479 -1.98438,1.997605 -0.13229,-0.132292 -0.13229,0.145521 -2.03729,-1.997604 2.15635,-2.116667 2.1299,2.103437"
id="path3292"
style="stroke-width:0.264583" />
<path
stroke="none"
fill="#bb8044"
d="m 145.61642,21.9648 -2.42094,-2.420938 v -1.283229 l 0.0265,0.01323 0.11906,0.119063 0.13229,0.132292 0.25136,0.251354 0.0132,0.02646 2.50031,2.526771 -0.62177,0.635 m -2.42094,2.460625 0.0265,0.01323 0.25135,0.251354 0.25136,0.251354 1.52135,1.547813 0.25136,0.251354 0.74083,0.754062 -0.62177,0.635 -1.01865,-1.018645 -1.40229,-1.402292 v -1.283229"
id="path3294"
style="stroke-width:0.264583" />
<path
stroke="none"
fill="#80be1f"
d="m 143.19548,24.425425 0.0265,-0.02646 0.25135,-0.264584 0.25136,-0.251354 1.89177,-1.918229 0.62177,-0.635 -2.50031,-2.526771 -0.0132,-0.02646 -0.25136,-0.251354 -0.13229,-0.132292 -0.11906,-0.119063 -0.0265,-0.02646 h 5.68854 v 17.991667 h -17.99166 v -5.688542 l 0.93927,0.926042 2.02406,1.997604 0.11906,0.119062 0.14552,-0.132291 0.635,-0.621771 0.78052,-0.767292 0.59532,-0.582083 0.93927,-0.939271 0.93927,0.926042 2.03729,1.997604 0.11906,0.119062 0.14552,-0.132291 1.98438,-1.997605 3.32052,-3.33375 0.62177,-0.635 -0.74083,-0.754062 -0.25136,-0.251354 -1.52135,-1.547813 -0.25136,-0.251354 -0.25135,-0.251354 -0.0265,-0.01323"
id="path3296"
style="stroke-width:0.264583" />
<path
stroke="none"
fill="#93db24"
d="m 148.88402,18.247404 h 0.52917 v 18.520833 h -18.52083 v -0.529166 h 17.99166 V 18.247404"
id="path3298"
style="stroke-width:0.264583" />
</g>
<g
id="g5063"
transform="matrix(0.26458333,0,0,0.26458333,34.395837,-29.104161)">
<path
stroke="none"
fill="#c99869"
d="M 190,213.3 V 190 h 70 v 23.3 h -0.05 l -10.15,-10.05 -1.45,-1.45 -11.7,11.5 -11.7,-11.5 -11.6,11.5 -11.7,-11.5 -11.65,11.5 m 70,15.2 v 15 h -0.05 L 249.8,233.45 248.35,232 236.65,243.5 224.95,232 213.35,243.5 201.65,232 190,243.5 v -15 l 11.65,-11.5 11.7,11.5 11.6,-11.5 11.7,11.5 11.7,-11.5 11.65,11.5 m 0,30.2 v 1.3 h -70 v -1.4 l 1.75,-1.75 -0.05,-0.05 9.9,-9.8 11.7,11.5 11.6,-11.5 11.7,11.5 11.7,-11.5 9.95,9.85 -0.05,0.05 1.8,1.8"
id="path3254" />
<path
stroke="none"
fill="#c58f5c"
d="m 260,258.7 -1.8,-1.8 0.05,-0.05 -9.95,-9.85 -11.7,11.5 -11.7,-11.5 -11.6,11.5 -11.7,-11.5 -9.9,9.8 0.05,0.05 -1.75,1.75 v -15.1 l 11.65,-11.5 11.7,11.5 11.6,-11.5 11.7,11.5 11.7,-11.5 1.45,1.45 10.15,10.05 H 260 v 15.2 m 0,-45.4 v 15.2 L 248.35,217 236.65,228.5 224.95,217 213.35,228.5 201.65,217 190,228.5 v -15.2 l 11.65,-11.5 11.7,11.5 11.6,-11.5 11.7,11.5 11.7,-11.5 1.45,1.45 10.15,10.05 H 260"
id="path3256" />
<path
stroke="none"
fill="#bb8044"
d="m 213.6,190 v 5.05 L 190,218.5 v -5 L 213.6,190"
id="path3258" />
<path
stroke="none"
fill="#80be1f"
d="M 213.6,190 190,213.5 V 190 h 23.6"
id="path3260" />
<path
stroke="none"
fill="#93db24"
d="m 192,190 v 2 h -2 v -2 h 2"
id="path3262" />
</g>
<g
id="g5147"
transform="matrix(0.26458333,0,0,0.26458333,34.395837,-29.104161)">
<path
stroke="none"
fill="#c58f5c"
d="m 270,243.5 h 0.05 l 10.15,-10.05 1.45,-1.45 11.7,11.5 11.7,-11.5 11.6,11.5 11.7,-11.5 11.65,11.5 v 15.1 l -1.75,-1.75 0.05,-0.05 -9.9,-9.8 -11.7,11.5 -11.6,-11.5 -11.7,11.5 -11.7,-11.5 -9.95,9.85 0.05,0.05 -1.8,1.8 v -15.2 m 70,-15 -11.65,-11.5 -11.7,11.5 -11.6,-11.5 -11.7,11.5 L 281.65,217 270,228.5 v -15.2 h 0.05 l 10.15,-10.05 1.45,-1.45 11.7,11.5 11.7,-11.5 11.6,11.5 11.7,-11.5 11.65,11.5 v 15.2"
id="path3222" />
<path
stroke="none"
fill="#c99869"
d="m 340,228.5 v 15 l -11.65,-11.5 -11.7,11.5 -11.6,-11.5 -11.7,11.5 -11.7,-11.5 -1.45,1.45 -10.15,10.05 H 270 v -15 l 11.65,-11.5 11.7,11.5 11.7,-11.5 11.6,11.5 11.7,-11.5 11.65,11.5 m -70,30.2 1.8,-1.8 -0.05,-0.05 9.95,-9.85 11.7,11.5 11.7,-11.5 11.6,11.5 11.7,-11.5 9.9,9.8 -0.05,0.05 1.75,1.75 v 1.4 h -70 v -1.3 m 70,-45.4 -11.65,-11.5 -11.7,11.5 -11.6,-11.5 -11.7,11.5 -11.7,-11.5 -1.45,1.45 -10.15,10.05 H 270 V 190 h 70 v 23.3"
id="path3224" />
<path
stroke="none"
fill="#bb8044"
d="m 340,213.5 v 5 L 316.4,195.05 V 190 l 23.6,23.5"
id="path3226" />
<path
stroke="none"
fill="#80be1f"
d="M 340,213.5 316.4,190 H 340 v 23.5"
id="path3228" />
<path
stroke="none"
fill="#93db24"
d="m 338,192 v -2 h 2 v 2 h -2"
id="path3230" />
</g>
<g
id="g5230"
transform="matrix(0.26458333,0,0,0.26458333,76.729171,-50.270827)">
<path
stroke="none"
fill="#c99869"
d="m 260,293.3 -11.65,-11.5 -11.7,11.5 -11.6,-11.5 -11.7,11.5 -11.7,-11.5 -1.45,1.45 -10.15,10.05 H 190 V 270 h 70 v 23.3 m -70,15.2 11.65,-11.5 11.7,11.5 11.7,-11.5 11.6,11.5 11.7,-11.5 11.65,11.5 v 15 l -11.65,-11.5 -11.7,11.5 -11.6,-11.5 -11.7,11.5 -11.7,-11.5 -1.45,1.45 -6.65,6.6 -3.55,-3.55 v -8 m 11.15,19.1 0.55,-0.6 11.7,11.5 11.7,-11.5 11.6,11.5 11.7,-11.5 9.9,9.8 -0.05,0.05 1.75,1.75 v 1.4 h -46.4 l -12.45,-12.4"
id="path3282" />
<path
stroke="none"
fill="#c58f5c"
d="m 201.15,327.6 -7.6,-7.55 6.65,-6.6 1.45,-1.45 11.7,11.5 11.7,-11.5 11.6,11.5 11.7,-11.5 11.65,11.5 v 15.1 l -1.75,-1.75 0.05,-0.05 -9.9,-9.8 -11.7,11.5 -11.6,-11.5 -11.7,11.5 -11.7,-11.5 -0.55,0.6 M 190,293.3 h 0.05 l 10.15,-10.05 1.45,-1.45 11.7,11.5 11.7,-11.5 11.6,11.5 11.7,-11.5 11.65,11.5 v 15.2 L 248.35,297 236.65,308.5 225.05,297 213.35,308.5 201.65,297 190,308.5 v -15.2"
id="path3284" />
<path
stroke="none"
fill="#80be1f"
d="m 193.55,320.05 7.6,7.55 12.45,12.4 H 192 v -2 h -2 v -21.5 l 3.55,3.55"
id="path3286" />
<path
stroke="none"
fill="#93db24"
d="m 192,340 h -2 v -2 h 2 v 2"
id="path3288" />
</g>
<g
id="g5366"
transform="translate(-3.8922595,2.919268)">
<path
stroke="none"
fill="#c99869"
d="m 170.57985,24.412196 -3.08239,-3.042709 -3.09563,3.042709 -3.06916,-3.042709 -3.09563,3.042709 -3.09562,-3.042709 -0.38365,0.383646 -2.68552,2.659063 h -0.0132 v -6.164792 h 18.52083 v 6.164792 m -18.52083,4.021666 3.0824,-3.042708 3.09562,3.042708 3.09563,-3.042708 3.06916,3.042708 3.09563,-3.042708 3.08239,3.042708 v 2.116667 l -0.92604,0.939271 -2.15635,-2.129896 -3.09563,3.042708 -3.06916,-3.042708 -3.09563,3.042708 -3.09562,-3.042708 -0.38365,0.383646 -2.68552,2.659062 h -0.0132 v -3.96875 m 0,7.990417 0.47625,-0.47625 -0.0132,-0.01323 2.63261,-2.606146 3.09562,3.042708 3.09562,-3.042708 3.06917,3.042708 3.09563,-3.042708 0.14552,0.145521 -3.32052,3.294062 h -12.27667 v -0.343958"
id="path3274"
style="stroke-width:0.264583" />
<path
stroke="none"
fill="#c58f5c"
d="m 152.05902,36.424279 v -4.021667 h 0.0132 l 2.68552,-2.659062 0.38365,-0.383646 3.09562,3.042708 3.09563,-3.042708 3.06916,3.042708 3.09563,-3.042708 2.15635,2.129896 -1.9976,1.984375 -0.14552,-0.145521 -3.09563,3.042708 -3.06917,-3.042708 -3.09562,3.042708 -3.09562,-3.042708 -2.63261,2.606146 0.0132,0.01323 -0.47625,0.47625 m 0,-12.012083 h 0.0132 l 2.68552,-2.659063 0.38365,-0.383646 3.09562,3.042709 3.09563,-3.042709 3.06916,3.042709 3.09563,-3.042709 3.08239,3.042709 v 4.021666 l -3.08239,-3.042708 -3.09563,3.042708 -3.06916,-3.042708 -3.09563,3.042708 -3.09562,-3.042708 -3.0824,3.042708 v -4.021666"
id="path3276"
style="stroke-width:0.264583" />
<path
stroke="none"
fill="#80be1f"
d="m 169.65381,31.4898 0.92604,-0.939271 v 5.688542 h -0.52916 v 0.529166 h -5.715 l 3.32052,-3.294062 1.9976,-1.984375"
id="path3278"
style="stroke-width:0.264583" />
<path
stroke="none"
fill="#93db24"
d="m 170.57985,36.239071 v 0.529166 h -0.52916 v -0.529166 h 0.52916"
id="path3280"
style="stroke-width:0.264583" />
</g>
<g
id="g5433"
transform="translate(-3.8923475,2.919271)">
<path
stroke="none"
fill="#c99869"
d="m 64.746518,172.57886 -3.082396,-3.0427 -3.095625,3.0427 -3.069167,-3.0427 -3.095625,3.0427 -3.095625,-3.0427 -0.383646,0.38364 -2.68552,2.65906 h -0.01323 v -6.16479 h 18.520833 v 6.16479 m -18.520833,4.02167 3.082395,-3.04271 3.095625,3.04271 3.095625,-3.04271 3.069167,3.04271 3.095625,-3.04271 3.082396,3.04271 v 2.11667 l -0.939271,0.92604 -2.143125,-2.11667 -2.156354,2.11667 -0.939271,-0.92604 -0.926042,0.92604 -2.143125,-2.11667 -2.156354,2.11667 -0.939271,-0.92604 -0.939271,0.92604 -2.156354,-2.11667 -0.383646,0.38365 -1.759479,1.73302 -0.939271,-0.92604 v -2.11667 m 9.154584,5.04031 0.132291,-0.14552 0.132292,0.13229 -0.145521,0.1323 -0.119062,-0.11907 m 6.429375,-0.0132 -0.145521,0.1323 -0.119063,-0.11907 0.132292,-0.14552 0.132292,0.13229"
id="path3310"
style="stroke-width:0.264583" />
<path
stroke="none"
fill="#c58f5c"
d="m 61.809643,181.62761 -0.132292,-0.13229 -0.132292,0.14552 -2.037291,-1.9976 2.156354,-2.11667 2.143125,2.11667 -1.997604,1.98437 m -15.583958,-9.04875 h 0.01323 l 2.68552,-2.65906 0.383646,-0.38364 3.095625,3.0427 3.095625,-3.0427 3.069167,3.0427 3.095625,-3.0427 3.082396,3.0427 v 4.02167 l -3.082396,-3.04271 -3.095625,3.04271 -3.069167,-3.04271 -3.095625,3.04271 -3.095625,-3.04271 -3.082395,3.04271 v -4.02167 m 7.117291,7.06438 2.156354,-2.11667 2.143125,2.11667 -1.997604,1.98437 -0.132292,-0.13229 -0.132291,0.14552 -2.037292,-1.9976 m -6.178021,0 1.759479,-1.73302 0.383646,-0.38365 2.156354,2.11667 -2.156354,2.11667 -2.143125,-2.11667"
id="path3312"
style="stroke-width:0.264583" />
<path
stroke="none"
fill="#80be1f"
d="m 47.164955,179.64324 2.143125,2.11667 2.156354,-2.11667 0.939271,-0.92604 0.939271,0.92604 2.037292,1.9976 0.119062,0.11907 0.145521,-0.1323 1.997604,-1.98437 0.926042,-0.92604 0.939271,0.92604 2.037291,1.9976 0.119063,0.11907 0.145521,-0.1323 1.997604,-1.98437 0.939271,-0.92604 v 5.68854 H 46.225685 v -5.68854 l 0.93927,0.92604"
id="path3314"
style="stroke-width:0.264583" />
<path
stroke="none"
fill="#93db24"
d="m 64.746518,184.40574 v 0.52917 H 46.225685 v -0.52917 h 18.520833"
id="path3316"
style="stroke-width:0.264583" />
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -1,4 +1,4 @@
[gd_resource type="TileSet" load_steps=39 format=2]
[gd_resource type="TileSet" load_steps=46 format=2]
[ext_resource path="res://common/tiles/assets/grasland.svg" type="Texture" id=1]
[ext_resource path="res://common/tiles/assets/liquid.svg" type="Texture" id=2]
@ -73,6 +73,9 @@ points = PoolVector2Array( 0, 0, 70, 0, 70, 40, 0, 40 )
[sub_resource type="ConvexPolygonShape2D" id=35]
points = PoolVector2Array( 0, 35, 70, 35, 70, 70, 0, 70 )
[sub_resource type="ConvexPolygonShape2D" id=36]
points = PoolVector2Array( 0, 0, 70, 0, 70, 70, 0, 70 )
[sub_resource type="ConvexPolygonShape2D" id=11]
points = PoolVector2Array( -10, 0, -10, 0, -10, 70, -10, 70 )
@ -88,6 +91,24 @@ points = PoolVector2Array( 0, 0, 70, 0, 70, 70, 0, 70 )
[sub_resource type="ConvexPolygonShape2D" id=15]
points = PoolVector2Array( 0, 0, 70, 0, 70, 70, 0, 70 )
[sub_resource type="ConvexPolygonShape2D" id=37]
points = PoolVector2Array( 0, 0, 70, 0, 70, 70, 0, 70 )
[sub_resource type="ConvexPolygonShape2D" id=38]
points = PoolVector2Array( 0, 0, 70, 0, 70, 70, 0, 70 )
[sub_resource type="ConvexPolygonShape2D" id=39]
points = PoolVector2Array( 0, 0, 70, 0, 70, 70, 0, 70 )
[sub_resource type="ConvexPolygonShape2D" id=40]
points = PoolVector2Array( 0, 0, 70, 0, 70, 70, 0, 70 )
[sub_resource type="ConvexPolygonShape2D" id=41]
points = PoolVector2Array( 0, 0, 70, 0, 70, 70, 0, 70 )
[sub_resource type="ConvexPolygonShape2D" id=42]
points = PoolVector2Array( 0, 0, 70, 0, 70, 70, 0, 70 )
[sub_resource type="ConvexPolygonShape2D" id=16]
points = PoolVector2Array( 0, 0, 70, 0, 70, 70, 0, 70 )
@ -800,3 +821,150 @@ points = PoolVector2Array( 0, 70, 70, 0, 70, 70, 0, 70 )
28/shape_one_way_margin = 0.0
28/shapes = [ ]
28/z_index = 0
29/name = "Grass 16"
29/texture = ExtResource( 1 )
29/tex_offset = Vector2( 0, 0 )
29/modulate = Color( 1, 1, 1, 1 )
29/region = Rect2( 0, 640, 70, 70 )
29/tile_mode = 0
29/occluder_offset = Vector2( 0, 0 )
29/navigation_offset = Vector2( 0, 0 )
29/shape_offset = Vector2( 0, 0 )
29/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
29/shape = SubResource( 36 )
29/shape_one_way = false
29/shape_one_way_margin = 1.0
29/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 36 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
} ]
29/z_index = 0
30/name = "Grass 17"
30/texture = ExtResource( 1 )
30/tex_offset = Vector2( 0, 0 )
30/modulate = Color( 1, 1, 1, 1 )
30/region = Rect2( 80, 640, 70, 70 )
30/tile_mode = 0
30/occluder_offset = Vector2( 0, 0 )
30/navigation_offset = Vector2( 0, 0 )
30/shape_offset = Vector2( 0, 0 )
30/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
30/shape = SubResource( 37 )
30/shape_one_way = false
30/shape_one_way_margin = 1.0
30/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 37 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
} ]
30/z_index = 0
31/name = "Grass 18"
31/texture = ExtResource( 1 )
31/tex_offset = Vector2( 0, 0 )
31/modulate = Color( 1, 1, 1, 1 )
31/region = Rect2( 160, 640, 70, 70 )
31/tile_mode = 0
31/occluder_offset = Vector2( 0, 0 )
31/navigation_offset = Vector2( 0, 0 )
31/shape_offset = Vector2( 0, 0 )
31/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
31/shape = SubResource( 38 )
31/shape_one_way = false
31/shape_one_way_margin = 1.0
31/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 38 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
} ]
31/z_index = 0
32/name = "Grass 19"
32/texture = ExtResource( 1 )
32/tex_offset = Vector2( 0, 0 )
32/modulate = Color( 1, 1, 1, 1 )
32/region = Rect2( 320, 0, 70, 70 )
32/tile_mode = 0
32/occluder_offset = Vector2( 0, 0 )
32/navigation_offset = Vector2( 0, 0 )
32/shape_offset = Vector2( 0, 0 )
32/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
32/shape = SubResource( 39 )
32/shape_one_way = false
32/shape_one_way_margin = 1.0
32/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 39 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
} ]
32/z_index = 0
33/name = "Grass 20"
33/texture = ExtResource( 1 )
33/tex_offset = Vector2( 0, 0 )
33/modulate = Color( 1, 1, 1, 1 )
33/region = Rect2( 400, 0, 70, 70 )
33/tile_mode = 0
33/occluder_offset = Vector2( 0, 0 )
33/navigation_offset = Vector2( 0, 0 )
33/shape_offset = Vector2( 0, 0 )
33/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
33/shape = SubResource( 40 )
33/shape_one_way = false
33/shape_one_way_margin = 1.0
33/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 40 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
} ]
33/z_index = 0
34/name = "Grass 21"
34/texture = ExtResource( 1 )
34/tex_offset = Vector2( 0, 0 )
34/modulate = Color( 1, 1, 1, 1 )
34/region = Rect2( 480, 0, 70, 70 )
34/tile_mode = 0
34/occluder_offset = Vector2( 0, 0 )
34/navigation_offset = Vector2( 0, 0 )
34/shape_offset = Vector2( 0, 0 )
34/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
34/shape = SubResource( 41 )
34/shape_one_way = false
34/shape_one_way_margin = 1.0
34/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 41 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
} ]
34/z_index = 0
35/name = "Grass 22"
35/texture = ExtResource( 1 )
35/tex_offset = Vector2( 0, 0 )
35/modulate = Color( 1, 1, 1, 1 )
35/region = Rect2( 560, 0, 70, 70 )
35/tile_mode = 0
35/occluder_offset = Vector2( 0, 0 )
35/navigation_offset = Vector2( 0, 0 )
35/shape_offset = Vector2( 0, 0 )
35/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
35/shape = SubResource( 42 )
35/shape_one_way = false
35/shape_one_way_margin = 1.0
35/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 42 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
} ]
35/z_index = 0

View File

@ -27,12 +27,12 @@ const ANIMATIONS = {
"jump": {
"animation": "jump",
"transistion": "jump",
"blocks": ["idle", "run", "fall_start", "fall", "fall_end"]
"blocks": ["idle", "run", "fall_start", "fall", "fall_end", "jump_start"]
},
"jump_end": {
"animation": "jump_end",
"transistion": "idle",
"blocks": ["idle", "run", "fall_start", "fall", "fall_end"]
"blocks": ["idle", "run", "fall_start", "fall", "fall_end", "jump"]
},
"fall_start": {
"animation": "fall_start",
@ -74,6 +74,10 @@ func _ready():
$Camera2D.add_child(background_scene.instance())
$Sprite.connect("animation_finished", self, "_next_player_state")
$Sprite.animation = ANIMATIONS[player_state]['animation']
$Camera2D.limit_left = level.camera_limit_left
$Camera2D.limit_right = level.camera_limit_right
$Camera2D.limit_top = level.camera_limit_top
$Camera2D.limit_bottom = level.camera_limit_bottom
func _physics_process(delta):
if velocity.y > 1 and not is_on_floor():

View File

@ -4,7 +4,7 @@
[ext_resource path="res://objects/characters/player.gd" type="Script" id=11]
[sub_resource type="CapsuleShape2D" id=4]
radius = 166.75
radius = 164.75
height = 138.75
[sub_resource type="RectangleShape2D" id=3]
@ -14,12 +14,14 @@ extents = Vector2( 190.5, 100.625 )
radius = 79.0
[node name="Player" type="KinematicBody2D"]
z_index = 10
collision_mask = 4
script = ExtResource( 11 )
[node name="Sprite" type="AnimatedSprite" parent="."]
frames = ExtResource( 1 )
animation = "idle"
frame = 5
playing = true
__meta__ = {
"_edit_lock_": true

View File

@ -21,7 +21,7 @@ func _ready():
func _on_Player_entered(body):
if visible:
body.coin_collected(value)
GlobalState.coins += value
$SoundCollected.play()
hide()

View File

@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="72"
height="120"
viewBox="0 0 19.05 31.750001"
version="1.1"
id="svg8298"
inkscape:version="1.2 (dc2aedaf03, 2022-05-15)"
sodipodi:docname="door1.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview8300"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="7.319248"
inkscape:cx="16.121875"
inkscape:cy="52.601032"
inkscape:window-width="3440"
inkscape:window-height="1367"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="g8576"
showguides="true" />
<defs
id="defs8295" />
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-118.94569,-182.16802)">
<g
id="g8576"
transform="translate(-16.845424,-2.0966407)">
<g
id="g8724"
transform="matrix(-1,0,0,1,284.81139,0)" />
<rect
style="fill:#acc0c1;fill-opacity:1;stroke:none;stroke-width:1.88543"
id="rect10048"
width="4.0569754"
height="31.749996"
x="150.78413"
y="184.26466"
ry="1.1932958" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/door1.svg-7b950b3e71870c053e8c7c058349c1d4.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://objects/door/assets/door1.svg"
dest_files=[ "res://.import/door1.svg-7b950b3e71870c053e8c7c058349c1d4.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -0,0 +1,102 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="72"
height="120"
viewBox="0 0 19.05 31.75"
version="1.1"
id="svg8298"
inkscape:version="1.2 (dc2aedaf03, 2022-05-15)"
sodipodi:docname="door2.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview8300"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="20.70196"
inkscape:cx="32.025954"
inkscape:cy="17.921009"
inkscape:window-width="3440"
inkscape:window-height="1367"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="g8724" />
<defs
id="defs8295" />
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-118.94569,-182.16802)">
<g
id="g8576"
transform="translate(-16.845424,-2.0966407)">
<g
id="g8724"
transform="matrix(-1,0,0,1,284.81139,0)">
<g
id="g9979"
transform="matrix(1.5333239,0,0,1.2000015,-74.184506,-36.853208)">
<g
id="g8861"
transform="matrix(0.25,0,0,1,101.84333,0)">
<path
stroke="none"
fill="#333333"
d="m 146.91684,197.34827 q -0.0529,0.30427 -0.3175,0.55562 l -0.19844,0.14552 0.17198,0.41011 0.3175,0.82021 q 0.0529,0.15875 0,0.23812 v 0.0132 l -0.23812,0.0794 h -1.5875 q -0.14552,0 -0.21167,-0.0794 l -0.0132,-0.0132 q -0.0661,-0.0794 0,-0.23812 l 0.3175,-0.82021 0.14552,-0.41011 -0.17198,-0.14552 q -0.26458,-0.25135 -0.30427,-0.55562 l -0.0132,-0.0397 v -0.11906 q 0,-0.43656 0.3175,-0.74084 0.29105,-0.27781 0.72761,-0.27781 0.44979,0 0.74083,0.27781 0.3175,0.30428 0.3175,0.74084 v 0.11906 0.0397"
id="path7376"
style="stroke-width:0.264583" />
<path
stroke="none"
fill="#b68353"
d="m 146.91684,197.34827 v 0.10583 0.11906 0.0397 0.10583 0.11907 q -0.0397,0.33073 -0.3175,0.59531 l -0.0265,0.0265 -0.17198,-0.41011 0.19844,-0.14552 q 0.26459,-0.25135 0.3175,-0.55562 m -0.0265,2.18281 v 0.0132 q 0.0529,0.15875 0,0.23812 v 0.0265 q 0.0529,0.15875 0,0.23813 -0.0661,0.0926 -0.23812,0.0926 h -1.5875 q -0.15875,0 -0.2249,-0.0926 -0.0661,-0.0794 0,-0.23813 l 0.0132,-0.0132 -0.0132,-0.0132 q -0.0661,-0.0794 0,-0.23812 l 0.0132,-0.0132 q 0.0662,0.0794 0.21167,0.0794 h 1.5875 l 0.23812,-0.0794 m -1.73302,-1.07156 -0.0265,-0.0265 q -0.27781,-0.26458 -0.3175,-0.59531 v -0.11907 l 0.0132,-0.10583 -0.0132,-0.0397 v -0.11906 l 0.0132,-0.10583 q 0.0397,0.30427 0.30427,0.55562 l 0.17198,0.14552 -0.14552,0.41011"
id="path7378"
style="stroke-width:0.264583" />
<g
id="g8853">
<path
stroke="none"
fill="#a06d3d"
d="m 149.02028,192.20212 v 18.52084 h -13.22917 v -18.52084 h 13.22917 m -2.10344,5.14615 v -0.0397 -0.11906 q 0,-0.43656 -0.3175,-0.74084 -0.29104,-0.27781 -0.74083,-0.27781 -0.43656,0 -0.72761,0.27781 -0.3175,0.30428 -0.3175,0.74084 v 0.11906 l 0.0132,0.0397 -0.0132,0.10583 v 0.11906 l 0.0132,0.0397 -0.0132,0.10583 v 0.11907 q 0.0397,0.33073 0.3175,0.59531 l 0.0265,0.0265 -0.3175,0.82021 q -0.0661,0.15875 0,0.23812 l 0.0132,0.0132 -0.0132,0.0132 q -0.0661,0.15875 0,0.23812 l 0.0132,0.0132 -0.0132,0.0132 q -0.0661,0.15875 0,0.23813 0.0661,0.0926 0.2249,0.0926 h 1.5875 q 0.17198,0 0.23812,-0.0926 0.0529,-0.0794 0,-0.23813 v -0.0265 q 0.0529,-0.0794 0,-0.23812 v -0.0132 -0.0132 q 0.0529,-0.0794 0,-0.23812 l -0.3175,-0.82021 0.0265,-0.0265 q 0.27781,-0.26458 0.3175,-0.59531 v -0.11907 -0.10583 -0.0397 -0.11906 -0.10583"
id="path7374"
style="stroke-width:0.264583" />
<path
stroke="none"
fill="#946538"
d="m 135.79111,189.51658 v -0.44979 q 0,-1.98437 1.44341,-3.38666 l -0.0132,0.0265 q 1.49638,-1.44197 3.58869,-1.44197 l 3.42977,0.0132 q 1.93339,0.0661 3.32384,1.41553 1.44343,1.40229 1.45667,3.37343 v 0.52917 q -0.0397,-1.93146 -1.45667,-3.30729 -1.39045,-1.34938 -3.32384,-1.41552 l -3.42977,-0.0132 q -2.09231,0 -3.58869,1.44198 l 0.0132,-0.0265 q -1.39045,1.34937 -1.44341,3.24114"
id="path7368"
style="stroke-width:0.264715" />
<path
stroke="none"
fill="#a06d3d"
d="m 135.79111,189.51658 q 0.053,-1.89177 1.44341,-3.24114 l -0.0132,0.0265 q 1.49638,-1.44198 3.58869,-1.44198 l 3.42977,0.0132 q 1.93339,0.0661 3.32384,1.41552 1.41695,1.37583 1.45667,3.30729 v 2.60615 h -13.22915 v -2.68553"
id="path7370"
style="stroke-width:0.264715" />
</g>
</g>
</g>
<rect
style="fill:#acc0c1;fill-opacity:1;stroke:none;stroke-width:1.88543"
id="rect10048"
width="4.0569754"
height="31.749996"
x="-134.02725"
y="184.26466"
ry="1.1932958"
transform="scale(-1,1)" />
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/door2.svg-6da9f46e6f5bf0dc7cb4a271da181ce6.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://objects/door/assets/door2.svg"
dest_files=[ "res://.import/door2.svg-6da9f46e6f5bf0dc7cb4a271da181ce6.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -0,0 +1,102 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="72"
height="119.99954"
viewBox="0 0 19.049999 31.749879"
version="1.1"
id="svg8298"
inkscape:version="1.2 (dc2aedaf03, 2022-05-15)"
sodipodi:docname="door3.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview8300"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="5.1754899"
inkscape:cx="-40.189432"
inkscape:cy="78.44668"
inkscape:window-width="3440"
inkscape:window-height="1367"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="g9771" />
<defs
id="defs8295" />
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-118.94569,-182.16802)">
<g
id="g8576"
transform="translate(-16.845424,-2.0966407)">
<g
id="g8724"
transform="matrix(-1,0,0,1,284.81139,0)">
<g
id="g9771"
transform="matrix(1.3428517,0,0,1.1999969,-48.824029,-36.852365)">
<g
id="g8861"
transform="matrix(0.5,0,0,1,68.270842,1.0962524e-5)">
<path
stroke="none"
fill="#333333"
d="m 146.91684,197.34827 q -0.0529,0.30427 -0.3175,0.55562 l -0.19844,0.14552 0.17198,0.41011 0.3175,0.82021 q 0.0529,0.15875 0,0.23812 v 0.0132 l -0.23812,0.0794 h -1.5875 q -0.14552,0 -0.21167,-0.0794 l -0.0132,-0.0132 q -0.0661,-0.0794 0,-0.23812 l 0.3175,-0.82021 0.14552,-0.41011 -0.17198,-0.14552 q -0.26458,-0.25135 -0.30427,-0.55562 l -0.0132,-0.0397 v -0.11906 q 0,-0.43656 0.3175,-0.74084 0.29105,-0.27781 0.72761,-0.27781 0.44979,0 0.74083,0.27781 0.3175,0.30428 0.3175,0.74084 v 0.11906 0.0397"
id="path7376"
style="stroke-width:0.264583" />
<path
stroke="none"
fill="#b68353"
d="m 146.91684,197.34827 v 0.10583 0.11906 0.0397 0.10583 0.11907 q -0.0397,0.33073 -0.3175,0.59531 l -0.0265,0.0265 -0.17198,-0.41011 0.19844,-0.14552 q 0.26459,-0.25135 0.3175,-0.55562 m -0.0265,2.18281 v 0.0132 q 0.0529,0.15875 0,0.23812 v 0.0265 q 0.0529,0.15875 0,0.23813 -0.0661,0.0926 -0.23812,0.0926 h -1.5875 q -0.15875,0 -0.2249,-0.0926 -0.0661,-0.0794 0,-0.23813 l 0.0132,-0.0132 -0.0132,-0.0132 q -0.0661,-0.0794 0,-0.23812 l 0.0132,-0.0132 q 0.0662,0.0794 0.21167,0.0794 h 1.5875 l 0.23812,-0.0794 m -1.73302,-1.07156 -0.0265,-0.0265 q -0.27781,-0.26458 -0.3175,-0.59531 v -0.11907 l 0.0132,-0.10583 -0.0132,-0.0397 v -0.11906 l 0.0132,-0.10583 q 0.0397,0.30427 0.30427,0.55562 l 0.17198,0.14552 -0.14552,0.41011"
id="path7378"
style="stroke-width:0.264583" />
<g
id="g8853">
<path
stroke="none"
fill="#a06d3d"
d="m 149.02028,192.20212 v 18.52084 h -13.22917 v -18.52084 h 13.22917 m -2.10344,5.14615 v -0.0397 -0.11906 q 0,-0.43656 -0.3175,-0.74084 -0.29104,-0.27781 -0.74083,-0.27781 -0.43656,0 -0.72761,0.27781 -0.3175,0.30428 -0.3175,0.74084 v 0.11906 l 0.0132,0.0397 -0.0132,0.10583 v 0.11906 l 0.0132,0.0397 -0.0132,0.10583 v 0.11907 q 0.0397,0.33073 0.3175,0.59531 l 0.0265,0.0265 -0.3175,0.82021 q -0.0661,0.15875 0,0.23812 l 0.0132,0.0132 -0.0132,0.0132 q -0.0661,0.15875 0,0.23812 l 0.0132,0.0132 -0.0132,0.0132 q -0.0661,0.15875 0,0.23813 0.0661,0.0926 0.2249,0.0926 h 1.5875 q 0.17198,0 0.23812,-0.0926 0.0529,-0.0794 0,-0.23813 v -0.0265 q 0.0529,-0.0794 0,-0.23812 v -0.0132 -0.0132 q 0.0529,-0.0794 0,-0.23812 l -0.3175,-0.82021 0.0265,-0.0265 q 0.27781,-0.26458 0.3175,-0.59531 v -0.11907 -0.10583 -0.0397 -0.11906 -0.10583"
id="path7374"
style="stroke-width:0.264583" />
<path
stroke="none"
fill="#946538"
d="m 135.79111,189.51658 v -0.44979 q 0,-1.98437 1.44341,-3.38666 l -0.0132,0.0265 q 1.49638,-1.44197 3.58869,-1.44197 l 3.42977,0.0132 q 1.93339,0.0661 3.32384,1.41553 1.44343,1.40229 1.45667,3.37343 v 0.52917 q -0.0397,-1.93146 -1.45667,-3.30729 -1.39045,-1.34938 -3.32384,-1.41552 l -3.42977,-0.0132 q -2.09231,0 -3.58869,1.44198 l 0.0132,-0.0265 q -1.39045,1.34937 -1.44341,3.24114"
id="path7368"
style="stroke-width:0.264715" />
<path
stroke="none"
fill="#a06d3d"
d="m 135.79111,189.51658 q 0.053,-1.89177 1.44341,-3.24114 l -0.0132,0.0265 q 1.49638,-1.44198 3.58869,-1.44198 l 3.42977,0.0132 q 1.93339,0.0661 3.32384,1.41552 1.41695,1.37583 1.45667,3.30729 v 2.60615 h -13.22915 v -2.68553"
id="path7370"
style="stroke-width:0.264715" />
</g>
</g>
<rect
style="fill:#acc0c1;fill-opacity:1;stroke:none;stroke-width:1.48527"
id="rect10048"
width="3.0211642"
height="26.458399"
x="-136.1664"
y="184.26457"
ry="0.99441576"
transform="scale(-1,1)" />
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/door3.svg-03cf9b8a2c92f74709b97c4670a65cd7.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://objects/door/assets/door3.svg"
dest_files=[ "res://.import/door3.svg-03cf9b8a2c92f74709b97c4670a65cd7.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -0,0 +1,102 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="72"
height="119.99954"
viewBox="0 0 19.049999 31.749879"
version="1.1"
id="svg8298"
inkscape:version="1.2 (dc2aedaf03, 2022-05-15)"
sodipodi:docname="door4.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview8300"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="5.1754899"
inkscape:cx="-89.46013"
inkscape:cy="7.5355185"
inkscape:window-width="3440"
inkscape:window-height="1367"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="g9577" />
<defs
id="defs8295" />
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-118.94569,-182.16802)">
<g
id="g8576"
transform="translate(-16.845424,-2.0966407)">
<g
id="g8724"
transform="matrix(-1,0,0,1,284.81139,0)">
<g
id="g9577"
transform="matrix(1.2526278,0,0,1.1999969,-36.811151,-36.852365)">
<g
id="g8861"
transform="matrix(0.75,0,0,1,34.54067,3.6962891e-6)">
<path
stroke="none"
fill="#333333"
d="m 146.91684,197.34827 q -0.0529,0.30427 -0.3175,0.55562 l -0.19844,0.14552 0.17198,0.41011 0.3175,0.82021 q 0.0529,0.15875 0,0.23812 v 0.0132 l -0.23812,0.0794 h -1.5875 q -0.14552,0 -0.21167,-0.0794 l -0.0132,-0.0132 q -0.0661,-0.0794 0,-0.23812 l 0.3175,-0.82021 0.14552,-0.41011 -0.17198,-0.14552 q -0.26458,-0.25135 -0.30427,-0.55562 l -0.0132,-0.0397 v -0.11906 q 0,-0.43656 0.3175,-0.74084 0.29105,-0.27781 0.72761,-0.27781 0.44979,0 0.74083,0.27781 0.3175,0.30428 0.3175,0.74084 v 0.11906 0.0397"
id="path7376"
style="stroke-width:0.264583" />
<path
stroke="none"
fill="#b68353"
d="m 146.91684,197.34827 v 0.10583 0.11906 0.0397 0.10583 0.11907 q -0.0397,0.33073 -0.3175,0.59531 l -0.0265,0.0265 -0.17198,-0.41011 0.19844,-0.14552 q 0.26459,-0.25135 0.3175,-0.55562 m -0.0265,2.18281 v 0.0132 q 0.0529,0.15875 0,0.23812 v 0.0265 q 0.0529,0.15875 0,0.23813 -0.0661,0.0926 -0.23812,0.0926 h -1.5875 q -0.15875,0 -0.2249,-0.0926 -0.0661,-0.0794 0,-0.23813 l 0.0132,-0.0132 -0.0132,-0.0132 q -0.0661,-0.0794 0,-0.23812 l 0.0132,-0.0132 q 0.0662,0.0794 0.21167,0.0794 h 1.5875 l 0.23812,-0.0794 m -1.73302,-1.07156 -0.0265,-0.0265 q -0.27781,-0.26458 -0.3175,-0.59531 v -0.11907 l 0.0132,-0.10583 -0.0132,-0.0397 v -0.11906 l 0.0132,-0.10583 q 0.0397,0.30427 0.30427,0.55562 l 0.17198,0.14552 -0.14552,0.41011"
id="path7378"
style="stroke-width:0.264583" />
<g
id="g8853">
<path
stroke="none"
fill="#a06d3d"
d="m 149.02028,192.20212 v 18.52084 h -13.22917 v -18.52084 h 13.22917 m -2.10344,5.14615 v -0.0397 -0.11906 q 0,-0.43656 -0.3175,-0.74084 -0.29104,-0.27781 -0.74083,-0.27781 -0.43656,0 -0.72761,0.27781 -0.3175,0.30428 -0.3175,0.74084 v 0.11906 l 0.0132,0.0397 -0.0132,0.10583 v 0.11906 l 0.0132,0.0397 -0.0132,0.10583 v 0.11907 q 0.0397,0.33073 0.3175,0.59531 l 0.0265,0.0265 -0.3175,0.82021 q -0.0661,0.15875 0,0.23812 l 0.0132,0.0132 -0.0132,0.0132 q -0.0661,0.15875 0,0.23812 l 0.0132,0.0132 -0.0132,0.0132 q -0.0661,0.15875 0,0.23813 0.0661,0.0926 0.2249,0.0926 h 1.5875 q 0.17198,0 0.23812,-0.0926 0.0529,-0.0794 0,-0.23813 v -0.0265 q 0.0529,-0.0794 0,-0.23812 v -0.0132 -0.0132 q 0.0529,-0.0794 0,-0.23812 l -0.3175,-0.82021 0.0265,-0.0265 q 0.27781,-0.26458 0.3175,-0.59531 v -0.11907 -0.10583 -0.0397 -0.11906 -0.10583"
id="path7374"
style="stroke-width:0.264583" />
<path
stroke="none"
fill="#946538"
d="m 135.79111,189.51658 v -0.44979 q 0,-1.98437 1.44341,-3.38666 l -0.0132,0.0265 q 1.49638,-1.44197 3.58869,-1.44197 l 3.42977,0.0132 q 1.93339,0.0661 3.32384,1.41553 1.44343,1.40229 1.45667,3.37343 v 0.52917 q -0.0397,-1.93146 -1.45667,-3.30729 -1.39045,-1.34938 -3.32384,-1.41552 l -3.42977,-0.0132 q -2.09231,0 -3.58869,1.44198 l 0.0132,-0.0265 q -1.39045,1.34937 -1.44341,3.24114"
id="path7368"
style="stroke-width:0.264715" />
<path
stroke="none"
fill="#a06d3d"
d="m 135.79111,189.51658 q 0.053,-1.89177 1.44341,-3.24114 l -0.0132,0.0265 q 1.49638,-1.44198 3.58869,-1.44198 l 3.42977,0.0132 q 1.93339,0.0661 3.32384,1.41552 1.41695,1.37583 1.45667,3.30729 v 2.60615 h -13.22915 v -2.68553"
id="path7370"
style="stroke-width:0.264715" />
</g>
</g>
<rect
style="fill:#acc0c1;fill-opacity:1;stroke:none;stroke-width:1.53783"
id="rect10048"
width="3.2387717"
height="26.458399"
x="-136.384"
y="184.26466"
ry="0.99441576"
transform="scale(-1,1)" />
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/door4.svg-183a3f0fd353dbddb85bdc8a8cce994f.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://objects/door/assets/door4.svg"
dest_files=[ "res://.import/door4.svg-183a3f0fd353dbddb85bdc8a8cce994f.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -0,0 +1,95 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="72"
height="119.9996"
viewBox="0 0 19.05 31.749895"
version="1.1"
id="svg8298"
inkscape:version="1.2 (dc2aedaf03, 2022-05-15)"
sodipodi:docname="door5.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview8300"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="5.1754899"
inkscape:cx="-87.914383"
inkscape:cy="17.969313"
inkscape:window-width="3440"
inkscape:window-height="1367"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="g9330" />
<defs
id="defs8295" />
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-118.54884,-181.50659)">
<g
id="g8576"
transform="translate(-16.845424,-2.0966407)">
<g
id="g8724"
transform="matrix(-1,0,0,1,284.81139,0)">
<g
id="g9330"
transform="matrix(1.1428584,0,0,1.1428617,-21.345487,-26.229975)">
<path
stroke="none"
fill="#a06d3d"
d="m 149.41713,191.93755 v 19.44682 h -13.1189 v -19.44682 h 13.1189 m -2.08591,5.40344 v -0.0417 -0.12501 q 0,-0.45839 -0.31485,-0.77788 -0.28861,-0.2917 -0.73466,-0.2917 -0.43292,0 -0.72154,0.2917 -0.31485,0.31949 -0.31485,0.77788 v 0.12501 l 0.0131,0.0417 -0.0131,0.11112 v 0.12502 l 0.0131,0.0417 -0.0131,0.11112 v 0.12503 q 0.0394,0.34726 0.31485,0.62507 l 0.0263,0.0278 -0.31486,0.86122 q -0.0655,0.16669 0,0.25003 l 0.0131,0.0139 -0.0131,0.0139 q -0.0655,0.16668 0,0.25002 l 0.0131,0.0139 -0.0131,0.0139 q -0.0655,0.16669 0,0.25004 0.0656,0.0972 0.22304,0.0972 h 1.57426 q 0.17055,0 0.23613,-0.0972 0.0525,-0.0834 0,-0.25004 v -0.0278 q 0.0525,-0.0834 0,-0.25003 v -0.0139 -0.0139 q 0.0525,-0.0834 0,-0.25002 l -0.31485,-0.86122 0.0263,-0.0278 q 0.27549,-0.2778 0.31486,-0.62507 v -0.12502 -0.11112 -0.0417 -0.12501 -0.11112"
id="path7374"
style="stroke-width:0.269984" />
<path
stroke="none"
fill="#333333"
d="m 147.33122,197.34099 q -0.0524,0.31949 -0.31485,0.5834 l -0.19678,0.1528 0.17054,0.43061 0.31485,0.86122 q 0.0525,0.16669 0,0.25003 v 0.0139 l -0.23613,0.0834 h -1.57426 q -0.14432,0 -0.20992,-0.0834 l -0.0131,-0.0139 q -0.0656,-0.0834 0,-0.25003 l 0.31485,-0.86122 0.14431,-0.43061 -0.17055,-0.1528 q -0.26237,-0.26391 -0.30173,-0.5834 l -0.0131,-0.0417 v -0.12501 q 0,-0.45839 0.31486,-0.77788 0.28862,-0.2917 0.72154,-0.2917 0.44604,0 0.73465,0.2917 0.31486,0.31949 0.31486,0.77788 v 0.12501 0.0417"
id="path7376"
style="stroke-width:0.269984" />
<path
stroke="none"
fill="#b68353"
d="m 147.33122,197.34099 v 0.11112 0.12502 0.0417 0.11112 0.12503 q -0.0394,0.34726 -0.31485,0.62507 l -0.0263,0.0278 -0.17054,-0.43061 0.19678,-0.15279 q 0.26239,-0.26392 0.31485,-0.5834 m -0.0263,2.29194 v 0.0139 q 0.0524,0.16669 0,0.25002 v 0.0278 q 0.0524,0.16669 0,0.25004 -0.0656,0.0972 -0.23614,0.0972 h -1.57427 q -0.15742,0 -0.22302,-0.0972 -0.0656,-0.0834 0,-0.25004 l 0.0131,-0.0139 -0.0131,-0.0139 q -0.0656,-0.0834 0,-0.25003 l 0.0131,-0.0139 q 0.0656,0.0834 0.2099,0.0834 h 1.57426 l 0.23614,-0.0834 m -1.71857,-1.12513 -0.0263,-0.0278 q -0.27549,-0.2778 -0.31486,-0.62507 v -0.12502 l 0.0131,-0.11112 -0.0131,-0.0417 v -0.12501 l 0.0131,-0.11112 q 0.0394,0.31948 0.30173,0.5834 l 0.17055,0.15279 -0.1443,0.43062"
id="path7378"
style="stroke-width:0.269984" />
<path
stroke="none"
fill="#946538"
d="m 136.29823,189.11774 v -0.47227 q 0,-2.08359 1.43138,-3.55598 l -0.0131,0.0278 q 1.4839,-1.51406 3.55877,-1.51406 l 3.40118,0.0139 q 1.91727,0.0694 3.29613,1.4863 1.4314,1.4724 1.44453,3.54209 v 0.55563 q -0.0394,-2.02803 -1.44453,-3.47265 -1.37886,-1.41684 -3.29613,-1.48629 l -3.40118,-0.0139 q -2.07487,0 -3.55877,1.51407 l 0.0131,-0.0278 q -1.37886,1.41683 -1.43138,3.40319"
id="path7368"
style="stroke-width:0.270119" />
<path
stroke="none"
fill="#a06d3d"
d="m 136.29823,189.11774 q 0.0525,-1.98635 1.43138,-3.40318 l -0.0131,0.0278 q 1.4839,-1.51407 3.55877,-1.51407 l 3.40118,0.0139 q 1.91727,0.0694 3.29613,1.48629 1.40514,1.44462 1.44453,3.47264 v 2.73645 h -13.11887 v -2.81979"
id="path7370"
style="stroke-width:0.270119" />
<rect
style="fill:#acc0c1;fill-opacity:1;stroke:none;stroke-width:1.64975"
id="rect10048"
width="3.5498495"
height="27.781136"
x="-136.29823"
y="183.60332"
ry="1.0441297"
transform="scale(-1,1)" />
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/door5.svg-08ad82c41d697371ba81d476edf11f11.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://objects/door/assets/door5.svg"
dest_files=[ "res://.import/door5.svg-08ad82c41d697371ba81d476edf11f11.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

View File

@ -0,0 +1,15 @@
[remap]
importer="ogg_vorbis"
type="AudioStreamOGGVorbis"
path="res://.import/locked.ogg-6600d8abf71ee93d9e6beebe511c5004.oggstr"
[deps]
source_file="res://objects/door/assets/locked.ogg"
dest_files=[ "res://.import/locked.ogg-6600d8abf71ee93d9e6beebe511c5004.oggstr" ]
[params]
loop=false
loop_offset=0

Binary file not shown.

View File

@ -0,0 +1,15 @@
[remap]
importer="ogg_vorbis"
type="AudioStreamOGGVorbis"
path="res://.import/open.ogg-b87c68dccf2bf681994a63f03c7291c8.oggstr"
[deps]
source_file="res://objects/door/assets/open.ogg"
dest_files=[ "res://.import/open.ogg-b87c68dccf2bf681994a63f03c7291c8.oggstr" ]
[params]
loop=false
loop_offset=0

21
objects/door/door.gd Normal file
View File

@ -0,0 +1,21 @@
extends StaticBody2D
export var key : String = "yellow"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func _on_PlayerCollision(body):
if $Sprite.frame == 0 and GlobalState.keys[key] == true:
$Sprite.play("open")
$AudioOpen.play()
print("open")
elif $Sprite.frame == 0 and GlobalState.keys[key] == false:
$AudioLocked.play()
func _on_Sprite_animation_finished():
collision_layer = 0
GlobalState.keys[key] = false

57
objects/door/door.tscn Normal file
View File

@ -0,0 +1,57 @@
[gd_scene load_steps=12 format=2]
[ext_resource path="res://objects/door/assets/door1.svg" type="Texture" id=1]
[ext_resource path="res://objects/door/assets/door4.svg" type="Texture" id=2]
[ext_resource path="res://objects/door/assets/door2.svg" type="Texture" id=3]
[ext_resource path="res://objects/door/assets/door5.svg" type="Texture" id=4]
[ext_resource path="res://objects/door/assets/door3.svg" type="Texture" id=5]
[ext_resource path="res://objects/door/door.gd" type="Script" id=6]
[ext_resource path="res://objects/door/assets/locked.ogg" type="AudioStream" id=7]
[ext_resource path="res://objects/door/assets/open.ogg" type="AudioStream" id=8]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 1 ), ExtResource( 3 ), ExtResource( 5 ), ExtResource( 2 ), ExtResource( 4 ) ],
"loop": false,
"name": "open",
"speed": 10.0
} ]
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 5.5, 59.75 )
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 36.5, 60 )
[node name="Door" type="StaticBody2D"]
z_index = 20
collision_layer = 4
collision_mask = 0
script = ExtResource( 6 )
[node name="Sprite" type="AnimatedSprite" parent="."]
position = Vector2( -31, 47 )
frames = SubResource( 1 )
animation = "open"
[node name="Collision" type="CollisionShape2D" parent="."]
position = Vector2( -0.5, 47 )
shape = SubResource( 2 )
[node name="PlayerCollision" type="Area2D" parent="."]
collision_layer = 8
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerCollision"]
position = Vector2( -0.5, 47 )
shape = SubResource( 3 )
[node name="AudioLocked" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 7 )
volume_db = 10.0
[node name="AudioOpen" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 8 )
volume_db = 10.0
[connection signal="animation_finished" from="Sprite" to="." method="_on_Sprite_animation_finished"]
[connection signal="body_entered" from="PlayerCollision" to="." method="_on_PlayerCollision"]

BIN
objects/key/assets/key.wav Normal file

Binary file not shown.

View File

@ -0,0 +1,21 @@
[remap]
importer="wav"
type="AudioStreamSample"
path="res://.import/key.wav-80824c9e843b31e683637d5ee957831c.sample"
[deps]
source_file="res://objects/key/assets/key.wav"
dest_files=[ "res://.import/key.wav-80824c9e843b31e683637d5ee957831c.sample" ]
[params]
force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop=false
compress/mode=0

View File

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="59.800102"
height="36.106056"
viewBox="0 0 15.82211 9.5530607"
version="1.1"
id="svg2645"
inkscape:version="1.2 (dc2aedaf03, 2022-05-15)"
sodipodi:docname="yellow.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview2647"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="10.35098"
inkscape:cx="68.302713"
inkscape:cy="45.792766"
inkscape:window-width="3440"
inkscape:window-height="1367"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs2642">
<linearGradient
gradientUnits="userSpaceOnUse"
x1="-819.20001"
x2="819.20001"
spreadMethod="pad"
gradientTransform="matrix(0,-0.00226084,0.00213165,0,115.92937,122.46567)"
id="gradient0">
<stop
offset="0"
stop-color="#FFCC00"
id="stop2" />
<stop
offset="1"
stop-color="#DBAF02"
id="stop4" />
</linearGradient>
</defs>
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-103.42781,-114.65958)">
<g
id="g2799">
<path
stroke="none"
fill="#fee170"
d="m 119.23666,119.66109 q -0.0662,-0.35719 -0.27781,-0.635 -0.34396,-0.43657 -0.80698,-0.42334 h -7.24958 q -0.2249,-0.99218 -0.79375,-1.79916 l -0.0397,-0.0529 q -0.35719,-0.48948 -0.75406,-0.83344 -0.91282,-0.75406 -2.06375,-0.7276 h -0.0132 q -1.16417,-0.0265 -2.06375,0.7276 -0.41011,0.34396 -0.7673,0.83344 l -0.0265,0.0397 q -0.88636,1.23031 -0.93927,2.91041 l -0.0132,-0.26458 q 0,-1.85208 0.9525,-3.175 l 0.0265,-0.0397 q 0.35719,-0.48948 0.7673,-0.83343 0.89958,-0.75407 2.06375,-0.72761 h 0.0132 q 1.15093,-0.0265 2.06375,0.72761 0.39687,0.34395 0.75406,0.83343 l 0.0397,0.0529 q 0.56885,0.80698 0.79375,1.79917 h 7.24958 q 0.46302,-0.0132 0.80698,0.42333 0.29104,0.37042 0.29104,0.89958 l -0.0132,0.26459 m -13.14979,0.0397 q 0.0529,0.79375 0.47625,1.4023 l 0.0265,0.0661 q 0.27781,0.34396 0.64823,0.39688 0.37041,-0.0529 0.64823,-0.39688 l 0.0397,-0.0661 q 0.41011,-0.60855 0.47625,-1.4023 v 0.21167 0.0265 0.0265 q 0,0.96573 -0.47625,1.66687 l -0.0397,0.0661 q -0.27782,0.34396 -0.64823,0.39687 -0.37042,-0.0529 -0.64823,-0.39687 l -0.0265,-0.0661 q -0.48948,-0.70114 -0.48948,-1.66687 l 0.0132,-0.26459"
id="path1359"
style="stroke-width:0.264583" />
<path
stroke="none"
fill="#ffcc00"
d="m 106.08687,119.70077 -0.0132,0.26459 q 0,0.96573 0.48948,1.66687 l 0.0265,0.0661 q 0.27781,0.34396 0.64823,0.39687 0.37041,-0.0529 0.64823,-0.39687 l 0.0397,-0.0661 q 0.47625,-0.70114 0.47625,-1.66687 v -0.0265 -0.0265 -0.21167 -0.26458 -0.0265 -0.0265 q -0.0132,-0.93927 -0.47625,-1.61395 -0.29104,-0.41011 -0.68791,-0.46303 -0.39688,0.0529 -0.68792,0.46303 h 0.0132 q -0.48948,0.68791 -0.48948,1.66687 l 0.0132,0.26458 m -2.64583,0 q 0.0529,-1.6801 0.93927,-2.91041 l 0.0265,-0.0397 q 0.35719,-0.48948 0.7673,-0.83344 0.89958,-0.75406 2.06375,-0.7276 h 0.0132 q 1.15093,-0.0265 2.06375,0.7276 0.39687,0.34396 0.75406,0.83344 l 0.0397,0.0529 q 0.56885,0.80698 0.79375,1.79916 h 7.24958 q 0.46302,-0.0132 0.80698,0.42334 0.21166,0.27781 0.27781,0.635 -0.0662,0.37041 -0.27781,0.64823 v 0.0132 q -0.27781,0.33073 -0.64823,0.38365 v 0.0132 h -4.7625 -2.61938 q -0.23812,1.07156 -0.84666,1.93146 h -0.0132 q -1.15094,1.60073 -2.81781,1.56104 h -0.0132 q -1.68011,0.0397 -2.83105,-1.56104 -0.91281,-1.23031 -0.96572,-2.95011"
id="path1361"
style="stroke-width:0.264583" />
<path
stroke="none"
fill="url(#gradient0)"
d="m 113.54812,120.71942 h 4.7625 v 2.69875 q 0,0.79375 -0.79375,0.79375 h -0.59531 l -0.18521,-0.0794 q -0.0794,-0.0794 -0.0794,-0.1852 v -0.39688 h -1.45521 v 0.39688 l -0.0794,0.1852 -0.18521,0.0794 h -0.59531 q -0.79375,0 -0.79375,-0.79375 v -2.69875"
id="path1363"
style="fill:url(#gradient0);stroke-width:0.264583" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/yellow.svg-8fcc8ed0aa1a775183202b241e6753c7.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://objects/key/assets/yellow.svg"
dest_files=[ "res://.import/yellow.svg-8fcc8ed0aa1a775183202b241e6753c7.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

14
objects/key/key.gd Normal file
View File

@ -0,0 +1,14 @@
extends StaticBody2D
func _ready():
$Sprite/AnimationPlayer.play("default")
func _on_PlayerCollision(body):
if visible:
GlobalState.keys['yellow'] = true
$SoundCollected.play()
hide()
func _on_SoundCollected_finished():
queue_free()
get_parent().remove_child(self)

52
objects/key/key.tscn Normal file
View File

@ -0,0 +1,52 @@
[gd_scene load_steps=6 format=2]
[ext_resource path="res://objects/key/assets/yellow.svg" type="Texture" id=1]
[ext_resource path="res://objects/key/key.gd" type="Script" id=2]
[ext_resource path="res://objects/key/assets/key.wav" type="AudioStream" id=3]
[sub_resource type="Animation" id=1]
resource_name = "default"
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath(".:offset")
tracks/0/interp = 1
tracks/0/loop_wrap = false
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.5, 1 ),
"transitions": PoolRealArray( 0.5, 0.5, 0 ),
"update": 0,
"values": [ Vector2( 0, 0 ), Vector2( 0, -10 ), Vector2( 0, 0 ) ]
}
[sub_resource type="CircleShape2D" id=2]
radius = 35.0
[node name="Key" type="StaticBody2D"]
z_index = -10
collision_layer = 8
collision_mask = 0
script = ExtResource( 2 )
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 1 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="Sprite"]
anims/default = SubResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 2 )
[node name="PlayerCollision" type="Area2D" parent="."]
collision_layer = 8
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerCollision"]
shape = SubResource( 2 )
[node name="SoundCollected" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 3 )
volume_db = -12.0
[connection signal="body_entered" from="PlayerCollision" to="." method="_on_PlayerCollision"]
[connection signal="finished" from="SoundCollected" to="." method="_on_SoundCollected_finished"]

View File

@ -14,6 +14,10 @@ config/name="Flopsy the Dog"
run/main_scene="res://scenes/main.tscn"
config/icon="res://common/player_head.png"
[autoload]
GlobalState="*res://common/global_state.gd"
[display]
window/size/width=1920

View File

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="43.851112"
height="39.064339"
viewBox="0 0 11.602273 10.335773"
version="1.1"
id="svg2875"
inkscape:version="1.2 (dc2aedaf03, 2022-05-15)"
sodipodi:docname="key_yellow.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview2877"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="0.914906"
inkscape:cx="-145.37012"
inkscape:cy="153.02118"
inkscape:window-width="3440"
inkscape:window-height="1367"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs2872">
<linearGradient
gradientUnits="userSpaceOnUse"
x1="-819.20001"
x2="819.20001"
spreadMethod="pad"
gradientTransform="matrix(-0.00104968,-0.00104968,9.8911832e-4,-9.8911832e-4,136.87776,111.95004)"
id="gradient4">
<stop
offset="0"
stop-color="#FFCC00"
id="stop22" />
<stop
offset="1"
stop-color="#DBAF02"
id="stop24" />
</linearGradient>
</defs>
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-127.80557,-107.90608)">
<g
id="g3029">
<path
stroke="none"
fill="#b1900b"
d="m 128.64922,111.81774 0.0265,-0.0264 q 0.7276,-0.75407 1.78594,-0.84667 h 0.0132 l 0.83344,0.0397 0.13229,0.0132 q 0.47625,0.0794 0.92605,0.27781 l 2.9501,-2.95011 q 0.42333,-0.51593 1.24354,-0.39687 0.56886,0.0661 1.00542,0.50271 l 0.17198,0.19843 0.0265,0.0265 q 0.23812,0.33073 0.29104,0.71438 l 0.0265,0.11906 v 0.33073 l 0.91281,0.91281 q 0.44979,0.44979 0.4101,0.92604 0.0397,0.47625 -0.42333,0.92605 l -0.0132,0.0264 -0.27781,0.27782 q -0.2249,0.19843 -0.5424,0.25135 l -0.0661,0.0132 h -0.0132 v 0.0529 q -0.0265,0.3175 -0.27782,0.58208 l -0.0265,0.0265 -0.27782,0.27781 q -0.92604,0.88635 -1.83885,-0.0265 l -0.68792,-0.68791 -0.22489,0.23812 q 0.19843,0.47625 0.29104,1.00542 l 0.0132,0.17198 q 0.22489,1.57427 -0.80698,2.54 l -0.0132,0.0264 -0.0265,0.0132 q -1.00542,1.07157 -2.69875,0.82021 v -0.0132 q -1.20385,-0.18521 -2.18281,-1.09802 l -0.19844,-0.15875 q -1.01865,-1.01864 -1.23031,-2.24896 -0.0661,-0.15875 -0.0397,-0.25135 v -0.0132 q -0.0662,-0.43656 -0.0132,-0.83344 l -0.0132,0.0397 q 0.0794,-1.07156 0.83344,-1.79917 m 8.53281,-1.7727 -0.0132,-0.0132 q 0.14552,-0.19844 0.11907,-0.47625 l -0.0132,-0.0132 q -0.0132,-0.2249 -0.15875,-0.42334 l -0.11907,-0.13229 q -0.23812,-0.23812 -0.55562,-0.27781 -0.37042,-0.0529 -0.56886,0.17198 l -3.3602,3.37344 q -0.56886,-0.37042 -1.20386,-0.47625 h -0.0529 l -0.72761,-0.0397 q -0.78052,0.0661 -1.30969,0.62177 -0.55562,0.52917 -0.60854,1.30969 -0.0397,0.34396 0.0265,0.74083 v 0.0265 q 0.17198,1.05833 1.03188,1.91823 l 0.13229,0.10583 q 0.82021,0.78052 1.81239,0.93927 1.28323,0.19844 2.03729,-0.60854 0.80698,-0.75406 0.58209,-2.02406 l 0.0132,-0.0132 q -0.11907,-0.68792 -0.48948,-1.28323 l 1.20385,-1.21708 1.24354,1.24354 q 0.37042,0.37041 0.74084,0 l 0.27781,-0.27781 0.0529,-0.11907 -0.0397,-0.11906 -0.18521,-0.18521 0.67469,-0.67469 0.18521,0.18521 0.10583,0.0529 0.13229,-0.0662 0.27781,-0.27781 q 0.37042,-0.35719 0,-0.7276 l -1.24354,-1.24354 m -5.08,4.11427 q 0.34396,0.4101 0.42334,0.87312 l 0.0132,0.0529 q 0.0397,0.29104 -0.11906,0.47625 -0.18521,0.15875 -0.48948,0.13229 l -0.0397,-0.0265 q -0.47625,-0.0794 -0.8599,-0.42333 l -0.13229,-0.11906 q -0.46302,-0.46303 -0.55563,-1.00542 -0.0529,-0.3175 0.10584,-0.52917 0.21166,-0.15875 0.52916,-0.10583 0.52917,0.10583 0.97896,0.52917 l 0.0265,0.0264 0.11906,0.11907"
id="path1383"
style="stroke-width:0.264583" />
<path
stroke="none"
fill="#ffcc00"
d="m 132.10203,114.15931 -0.11906,-0.11907 -0.0265,-0.0264 q -0.44979,-0.42334 -0.97896,-0.52917 -0.3175,-0.0529 -0.52916,0.10583 -0.15875,0.21167 -0.10584,0.52917 0.0926,0.54239 0.55563,1.00542 l 0.13229,0.11906 q 0.38365,0.34396 0.8599,0.42333 l 0.0397,0.0265 q 0.30427,0.0265 0.48948,-0.13229 0.15875,-0.18521 0.11906,-0.47625 l -0.0132,-0.0529 q -0.0794,-0.46302 -0.42334,-0.87312 m 2.8575,-1.905 -1.20385,1.21708 q 0.37041,0.59531 0.48948,1.28323 l -0.0132,0.0132 q 0.22489,1.27 -0.58209,2.02406 -0.75406,0.80698 -2.03729,0.60854 -0.99218,-0.15875 -1.81239,-0.93927 l -0.13229,-0.10583 q -0.8599,-0.8599 -1.03188,-1.91823 v -0.0265 q -0.0661,-0.39687 -0.0265,-0.74083 0.0529,-0.78052 0.60854,-1.30969 0.52917,-0.55563 1.30969,-0.62177 l 0.72761,0.0397 h 0.0529 q 0.635,0.10583 1.20386,0.47625 l 3.3602,-3.37344 q 0.19844,-0.2249 0.56886,-0.17198 0.3175,0.0397 0.55562,0.27781 l 0.11907,0.13229 q 0.14552,0.19844 0.15875,0.42334 l 0.0132,0.0132 q 0.0265,0.27781 -0.11907,0.47625 l 0.0132,0.0132 -2.2225,2.20927"
id="path1385"
style="stroke-width:0.264583" />
<path
stroke="none"
fill="url(#gradient4)"
d="m 134.95953,112.25431 2.2225,-2.20927 1.24354,1.24354 q 0.37042,0.37041 0,0.7276 l -0.27781,0.27781 -0.13229,0.0662 -0.10583,-0.0529 -0.18521,-0.18521 -0.67469,0.67469 0.18521,0.18521 0.0397,0.11906 -0.0529,0.11907 -0.27781,0.27781 q -0.37042,0.37041 -0.74084,0 l -1.24354,-1.24354"
id="path1387"
style="fill:url(#gradient4);stroke-width:0.264583" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.7 KiB

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/key_yellow.svg-baabc1c5d33c1c7d4dd1114d21d40e4d.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://scenes/hud/assets/key_yellow.svg"
dest_files=[ "res://.import/key_yellow.svg-baabc1c5d33c1c7d4dd1114d21d40e4d.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -6,12 +6,13 @@ export var font_color : Color = Color(0, 0, 0)
func _ready():
set_font_color(font_color)
func _process(delta):
$HUD_Items/ScoreLabel.text = str(GlobalState.coins)
$HUD_Items/PlayerItems/Key_Yellow.visible = GlobalState.keys['yellow']
func set_font_color(color: Color):
font_color = color
$HUD_Items/ScoreLabel.add_color_override("font_color", font_color)
func set_score(value):
$HUD_Items/ScoreLabel.text = str(value)
func scene_fadeout():
$SceneTransition/Animation.play_backwards("Fade")

View File

@ -1,8 +1,9 @@
[gd_scene load_steps=6 format=2]
[gd_scene load_steps=7 format=2]
[ext_resource path="res://common/fonts/DSEG14Classic-Bold.ttf" type="DynamicFontData" id=1]
[ext_resource path="res://scenes/hud.gd" type="Script" id=2]
[ext_resource path="res://scenes/hud/hud.gd" type="Script" id=2]
[ext_resource path="res://objects/coin/assets/gold_1.png" type="Texture" id=3]
[ext_resource path="res://scenes/hud/assets/key_yellow.svg" type="Texture" id=4]
[sub_resource type="DynamicFont" id=1]
size = 64
@ -52,6 +53,17 @@ margin_bottom = 88.0
rect_scale = Vector2( 0.7, 0.7 )
texture = ExtResource( 3 )
[node name="PlayerItems" type="HBoxContainer" parent="HUD_Items"]
margin_left = 20.0
margin_top = 20.0
margin_right = 40.0
margin_bottom = 40.0
[node name="Key_Yellow" type="TextureRect" parent="HUD_Items/PlayerItems"]
margin_right = 43.0
margin_bottom = 39.0
texture = ExtResource( 4 )
[node name="SceneTransition" type="ColorRect" parent="."]
modulate = Color( 1, 1, 1, 0 )
anchor_right = 1.0

View File

@ -0,0 +1,19 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://scenes/levels/01/assets/mountain_01.svg" type="Texture" id=1]
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 105, 319 )
[node name="CollidingMountain" type="StaticBody2D"]
z_index = -5
collision_layer = 4
collision_mask = 0
[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 5845, 805 )
texture = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 5845, 805 )
shape = SubResource( 3 )

View File

@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="210.00008"
height="638.74902"
viewBox="0 0 55.56252 169.00233"
version="1.1"
id="svg11139"
inkscape:version="1.2 (dc2aedaf03, 2022-05-15)"
sodipodi:docname="mountain_01.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview11141"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="0.914906"
inkscape:cx="267.78707"
inkscape:cy="489.66779"
inkscape:window-width="3440"
inkscape:window-height="1367"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs11136" />
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-18.451043,-18.876554)">
<g
id="g11284"
transform="matrix(4.3749937,0,0,4.3749938,-129.63222,-268.5947)">
<path
stroke="none"
fill="#93db24"
d="m 33.847659,72.375308 v -0.555625 l 0.06615,-0.754063 q 0.277812,-2.010833 1.799166,-3.518958 1.865313,-1.838854 4.484688,-1.838854 h 0.01323 q 2.619375,0 4.484687,1.838854 l 0.343959,0.370417 0.01323,0.01323 q 1.42875,1.627187 1.494896,3.823229 v 0.145521 0.07937 0.224896 l -0.01323,-0.251355 q -0.198437,-2.248958 -1.838854,-3.876145 l -0.03969,-0.03969 q -1.865313,-1.799167 -4.445,-1.799167 h -0.01323 q -2.619375,0 -4.484688,1.838855 -1.309687,1.296458 -1.693333,2.963333 -0.07937,0.291042 -0.119063,0.608542 l -0.05292,0.727604"
id="path7094"
style="stroke-width:0.264583" />
<path
stroke="none"
fill="#80be1f"
d="m 33.900575,71.647704 q 0.03969,-0.3175 0.119063,-0.608542 0.383646,-1.666875 1.693333,-2.963333 1.865313,-1.838855 4.484688,-1.838855 h 0.01323 q 2.579687,0 4.445,1.799167 l -9.802813,2.778125 q -0.727604,0.264583 -0.9525,0.833438 m 12.633854,0.30427 0.01323,0.251355 v 4.987395 q -0.410105,0.926042 -1.230313,1.243542 h -0.01323 l -10.451042,2.963333 q -0.833437,0.304271 -1.005416,1.005417 v -5.291667 q 0.251354,-0.701145 1.005416,-1.005416 l 10.451042,-2.963334 h 0.01323 l 0.119063,-0.03969 q 0.701145,-0.277813 1.09802,-1.150938 m 0.01323,10.530417 v 5.291667 q -0.396875,0.886354 -1.164167,1.217083 l -0.06615,0.02646 h -0.01323 l -10.451042,2.963333 q -0.833437,0.304271 -1.005416,1.005417 v -5.291666 q 0.251354,-0.701146 1.005416,-1.005417 l 10.451042,-2.963333 h 0.01323 q 0.806979,-0.251355 1.230313,-1.243542 m 0,10.583333 v 5.291667 q -0.396875,0.886354 -1.164167,1.217083 l -0.06615,0.02646 h -0.01323 l -10.451042,2.963337 q -0.833437,0.30427 -1.005416,1.00541 v -5.291663 q 0.251354,-0.701146 1.005416,-1.005417 l 10.451042,-2.963333 h 0.01323 l 0.119063,-0.03969 q 0.714375,-0.291041 1.11125,-1.203854 m 0,10.583337 v 0.68791 h -0.410105 l 0.410105,-0.68791"
id="path7096"
style="stroke-width:0.264583" />
<path
stroke="none"
fill="#7ab71e"
d="m 46.547659,103.64906 -0.410105,0.68791 H 33.847659 v -0.76729 q 0.171979,-0.70114 1.005416,-1.00541 l 10.451042,-2.963338 h 0.01323 l 0.06615,-0.02646 q 0.767292,-0.330729 1.164167,-1.217083 v 5.291671 m -12.7,-31.273754 0.05292,-0.727604 q 0.224896,-0.568855 0.9525,-0.833438 l 9.802813,-2.778125 0.03969,0.03969 q 1.640417,1.627187 1.838854,3.876145 -0.396875,0.873125 -1.09802,1.150938 l -0.119063,0.03969 h -0.01323 l -10.451042,2.963334 q -0.754062,0.304271 -1.005416,1.005416 v -4.736041 m 12.7,4.815416 v 5.291667 q -0.423334,0.992187 -1.230313,1.243542 h -0.01323 l -10.451042,2.963333 q -0.754062,0.304271 -1.005416,1.005417 v -5.291667 q 0.171979,-0.701146 1.005416,-1.005417 l 10.451042,-2.963333 h 0.01323 q 0.820208,-0.3175 1.230313,-1.243542 m 0,10.583334 v 5.291666 q -0.396875,0.912813 -1.11125,1.203854 l -0.119063,0.03969 h -0.01323 l -10.451042,2.963333 q -0.754062,0.304271 -1.005416,1.005417 v -5.291667 q 0.171979,-0.701146 1.005416,-1.005417 l 10.451042,-2.963333 h 0.01323 l 0.06615,-0.02646 q 0.767292,-0.330729 1.164167,-1.217083"
id="path7098"
style="stroke-width:0.264583" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/mountain_01.svg-98168bc0a7812a46ed71e30448ec7ee4.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://scenes/levels/01/assets/mountain_01.svg"
dest_files=[ "res://.import/mountain_01.svg-98168bc0a7812a46ed71e30448ec7ee4.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -242,7 +242,7 @@ cell_size = Vector2( 70, 70 )
collision_layer = 4
collision_mask = 0
format = 1
tile_data = PoolIntArray( -65485, 2, 1, -65484, 2, 2, -65483, 2, 2, -65482, 2, 2, -65481, 2, 3, 131114, 2, 1, 131115, 2, 2, 131116, 2, 2, 131117, 2, 2, 131118, 2, 2, 131119, 2, 2, 131120, 2, 3, 917503, 2, 1, 851968, 2, 2, 851969, 2, 2, 851970, 2, 2, 851971, 2, 2, 851972, 2, 2, 851973, 2, 2, 851974, 2, 2, 851975, 2, 2, 851976, 2, 2, 851977, 2, 2, 851978, 2, 2, 851979, 2, 2, 851980, 2, 2, 851981, 2, 2, 851982, 2, 2, 851983, 2, 2, 851984, 2, 2, 851985, 2, 2, 851986, 2, 2, 851987, 2, 2, 851988, 2, 2, 851989, 2, 2, 851990, 2, 2, 851991, 2, 2, 851992, 2, 2, 851993, 2, 2, 851994, 2, 2, 851995, 2, 2, 851996, 2, 3 )
tile_data = PoolIntArray( -65485, 2, 1, -65484, 2, 2, -65483, 2, 2, -65482, 2, 2, -65481, 2, 3, 131114, 2, 1, 131115, 2, 2, 131116, 2, 2, 131117, 2, 2, 131118, 2, 2, 131119, 2, 2, 131120, 2, 3, 917503, 0, 1, 851968, 0, 2, 851969, 0, 2, 851970, 0, 2, 851971, 0, 2, 851972, 0, 2, 851973, 0, 2, 851974, 0, 2, 851975, 0, 2, 851976, 0, 2, 851977, 0, 2, 851978, 0, 2, 851979, 0, 2, 851980, 0, 2, 851981, 0, 2, 851982, 0, 2, 851983, 0, 2, 851984, 0, 2, 851985, 0, 2, 851986, 0, 2, 851987, 0, 2, 851988, 0, 2, 851989, 0, 2, 851990, 0, 2, 851991, 0, 2, 851992, 0, 2, 851993, 0, 2, 851994, 0, 2, 851995, 0, 2, 851996, 0, 3 )
[node name="Flake" parent="CanvasLayer" instance=ExtResource( 5 )]
position = Vector2( 1691, 686 )

File diff suppressed because one or more lines are too long

View File

@ -4,6 +4,10 @@ export(String, FILE, "*.ogg") var bgm_path
export(bool) var hud_visible = true
export var hud_color : Color = Color("000000")
export var clear_color : Color = Color("cfeffc")
export var camera_limit_left : int = 0
export var camera_limit_right : int = 10000000
export var camera_limit_top : int = -10000000
export var camera_limit_bottom : int = 1080
onready var main = get_parent()

View File

@ -41,16 +41,8 @@ func play_bgm(bgm_path):
stream.loop = true
$BGM.stream = stream
$BGM.play()
func _set_score(value: int):
score = value
$HUD.set_score(score)
func add_score(value: int):
_set_score(score + value)
func player_died():
$HUD.scene_fadeout()
yield(get_tree().create_timer(1.0), "timeout")
_set_score(0)
load_level()

View File

@ -1,6 +1,6 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://scenes/hud.tscn" type="PackedScene" id=1]
[ext_resource path="res://scenes/hud/hud.tscn" type="PackedScene" id=1]
[ext_resource path="res://scenes/main.gd" type="Script" id=3]
[sub_resource type="Animation" id=2]
@ -20,7 +20,7 @@ tracks/0/keys = {
[node name="Main" type="Node2D"]
script = ExtResource( 3 )
level_path = "res://scenes/levels/01/level_01.tscn"
level_path = "res://scenes/levels/00/interlude_00.tscn"
[node name="HUD" parent="." instance=ExtResource( 1 )]