New block : 3-branch star.

This commit is contained in:
Feufochmar 2021-11-04 17:48:54 +01:00
parent 5dcc120983
commit 1728dc5ee5
3 changed files with 118 additions and 0 deletions

26
blocks/star.tscn Normal file
View File

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

58
blocks/star3.svg Normal file
View File

@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="192"
height="64"
viewBox="0 0 50.799999 16.933334"
version="1.1"
id="svg5"
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
sodipodi:docname="star3.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="0"
inkscape:document-units="px"
showgrid="false"
units="px"
inkscape:zoom="6.3295183"
inkscape:cx="85.156559"
inkscape:cy="34.441799"
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:#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 8.4666667,0.26458334 6.3500001,8.4666667 0.26458334,16.66875 8.4666667,12.7 16.66875,16.66875 10.583333,8.4666667 Z"
id="path3625"
sodipodi:nodetypes="ccccccc" />
<path
style="fill:#00e9ea;fill-opacity:1;stroke:#009398;stroke-width:0.529167;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 25.40001,0.26458334 23.283342,8.4666667 17.197922,16.66875 25.40001,12.7 33.602094,16.66875 27.516677,8.4666667 Z"
id="path6925"
sodipodi:nodetypes="ccccccc" />
<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 42.333354,0.26458334 40.216686,8.4666667 34.131266,16.66875 42.333354,12.7 50.535438,16.66875 44.450021,8.4666667 Z"
id="path6927"
sodipodi:nodetypes="ccccccc" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

34
blocks/star3.svg.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/star3.svg-d170dba5a0994ecd7e5fbca3d0281abb.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://blocks/star3.svg"
dest_files=[ "res://.import/star3.svg-d170dba5a0994ecd7e5fbca3d0281abb.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
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0