New block : fish

This commit is contained in:
Feufochmar 2021-11-03 19:50:45 +01:00
parent a7e45a1164
commit 5366361179
2 changed files with 185 additions and 0 deletions

28
blocks/fish.tscn Normal file
View File

@ -0,0 +1,28 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://blocks/ghost.svg" type="Texture" id=1]
[ext_resource path="res://blocks/abstract_brick.tscn" type="PackedScene" id=2]
[ext_resource path="res://blocks/abstract_brick_sprite.gd" type="Script" id=3]
[sub_resource type="AtlasTexture" id=1]
resource_local_to_scene = true
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 0, 64, 64, 64 )
[node name="Fish" instance=ExtResource( 2 )]
score = 200
max_hits = 2
color = 1
[node name="Sprite" type="Sprite" parent="." index="0"]
position = Vector2( 32, 32 )
texture = SubResource( 1 )
script = ExtResource( 3 )
nb_lines = 3
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="." index="1"]
polygon = PoolVector2Array( 0, 32, 64, 0, 48, 24, 64, 32, 48, 40, 64, 64 )
[connection signal="brick_hit" from="." to="Sprite" method="_on_brick_hit"]
[connection signal="color_set" from="." to="Sprite" method="_on_color_set"]

157
blocks/ghost.svg Normal file
View File

@ -0,0 +1,157 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="128"
height="192"
viewBox="0 0 33.866666 50.800002"
version="1.1"
id="svg5"
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
sodipodi:docname="ghost.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="namedview7"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="false"
inkscape:document-units="px"
showgrid="false"
units="px"
inkscape:zoom="8"
inkscape:cx="50.1875"
inkscape:cy="172.75"
inkscape:window-width="1920"
inkscape:window-height="1049"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs2" />
<g
inkscape:label="Calque 1"
inkscape:groupmode="layer"
id="layer1">
<path
style="fill:#e5e5e5;fill-opacity:1;stroke:#333333;stroke-width:0.529167;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 0.26458334,0.26458334 6.3500001,4.2333334 8.4666667,0.26458334 10.583333,4.2333334 16.66875,0.26458334 8.4666667,16.66875 Z"
id="path857"
sodipodi:nodetypes="ccccccc" />
<path
style="fill:none;stroke:#333333;stroke-width:0.529167;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 7.9375002,3.175 V 4.2333334"
id="path4005"
sodipodi:nodetypes="cc" />
<path
style="fill:none;stroke:#333333;stroke-width:0.529167;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 8.9958336,3.175 V 4.2333334"
id="path5633"
sodipodi:nodetypes="cc" />
<path
style="fill:#e5e5e5;fill-opacity:0;stroke:#333333;stroke-width:0.529167;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:0.529167, 0.529167;stroke-dashoffset:0;stroke-opacity:1"
d="M 17.197922,0.26458334 23.283342,4.2333334 25.40001,0.26458334 27.516677,4.2333334 33.602094,0.26458334 25.40001,16.66875 Z"
id="path5635"
sodipodi:nodetypes="ccccccc" />
<g
id="g26777"
transform="rotate(90,8.4666667,25.400008)">
<path
style="fill:#ff955f;fill-opacity:1;stroke:#d74112;stroke-width:0.529167;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 0.26458334,17.197922 6.3500001,21.166674 8.4666667,17.197922 10.583333,21.166674 16.66875,17.197922 8.4666667,33.602094 Z"
id="path5837"
sodipodi:nodetypes="ccccccc" />
<path
style="fill:none;stroke:#d74112;stroke-width:0.529167;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 7.9375002,29.534121 1.0583331,1e-6"
id="path5839"
sodipodi:nodetypes="cc" />
<path
style="fill:none;stroke:#d74112;stroke-width:0.529167;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 4.7625,26.19375 c 0,0 2.4414144,-0.79375 3.7041667,-0.79375 1.2627522,0 3.7041663,0.79375 3.7041663,0.79375"
id="path5841"
sodipodi:nodetypes="cac" />
<path
style="fill:none;stroke:#d74112;stroke-width:0.529167;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 6.3500002,21.166674 4.7625,26.19375"
id="path6253"
sodipodi:nodetypes="cc" />
<path
style="fill:none;stroke:#d74112;stroke-width:0.529167;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 10.583333,21.166674 1.5875,5.027076"
id="path6470"
sodipodi:nodetypes="cc" />
</g>
<g
id="g26784"
transform="rotate(90,25.400008,25.400008)">
<path
style="fill:#ffb524;fill-opacity:1;stroke:#ac6700;stroke-width:0.529167;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 17.197922,17.197922 6.08542,3.968752 2.116668,-3.968752 2.116667,3.968752 6.085417,-3.968752 -8.202084,16.404172 z"
id="path17616"
sodipodi:nodetypes="ccccccc" />
<path
style="fill:none;stroke:#ac6700;stroke-width:0.529167;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 24.870834,29.534121 1.058333,1e-6"
id="path17618"
sodipodi:nodetypes="cc" />
<path
style="fill:none;stroke:#ac6700;stroke-width:0.529167;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 21.695841,26.19375 c 0,0 2.441416,-0.79375 3.704169,-0.79375 1.262753,0 3.704167,0.79375 3.704167,0.79375"
id="path17620"
sodipodi:nodetypes="cac" />
<path
style="fill:none;stroke:#ac6700;stroke-width:0.529167;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 23.283342,21.166674 21.695841,26.19375"
id="path17622"
sodipodi:nodetypes="cc" />
<path
style="fill:none;stroke:#ac6700;stroke-width:0.529167;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 27.516677,21.166674 1.5875,5.027076"
id="path17624"
sodipodi:nodetypes="cc" />
</g>
<path
style="fill:#f9a1ff;fill-opacity:1;stroke:#a150d8;stroke-width:0.529167;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 0.26458334,50.535435 6.3500001,46.566683 8.4666667,50.535435 10.583333,46.566683 16.66875,50.535435 8.4666667,34.131263 Z"
id="path26770"
sodipodi:nodetypes="ccccccc" />
<circle
style="fill:#75c2ff;fill-opacity:1;stroke:#0074fc;stroke-width:0.529167;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path29278"
cx="8.4666672"
cy="40.745834"
r="1.8520832" />
<ellipse
style="fill:#75c2ff;fill-opacity:1;stroke:#0074fc;stroke-width:0.529167;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="circle29498"
cx="8.4666672"
cy="41.275002"
rx="0.52916652"
ry="0.52916598" />
<path
style="fill:#ff7da4;fill-opacity:1;stroke:#ea0458;stroke-width:0.529167;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 17.197921,50.535435 6.085417,-3.968752 2.116667,3.968752 2.116666,-3.968752 6.085417,3.968752 -8.202083,-16.404172 z"
id="path29505"
sodipodi:nodetypes="ccccccc" />
<circle
style="fill:#75c2ff;fill-opacity:1;stroke:#0074fc;stroke-width:0.529167;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="circle29507"
cx="25.400005"
cy="40.745834"
r="1.8520832" />
<ellipse
style="fill:#75c2ff;fill-opacity:1;stroke:#0074fc;stroke-width:0.529167;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="ellipse29509"
cx="25.400005"
cy="41.275002"
rx="0.52916652"
ry="0.52916598" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 7.8 KiB