Importet and Implementet Heart Icon

This commit is contained in:
Jan Schuffenhauer
2020-04-20 19:51:55 +02:00
parent 94badfb27a
commit 14c4b147f8
3 changed files with 38 additions and 5 deletions

View File

@@ -2,12 +2,12 @@
[ext_resource path="res://Overlap/HurtHit_Box/Hurtbox.tscn" type="PackedScene" id=1]
[ext_resource path="res://Objects/Heart/Heart.gd" type="Script" id=2]
[ext_resource path="res://testSprites/Herz.png" type="Texture" id=3]
[ext_resource path="res://Objects/Heart/heart.png" type="Texture" id=3]
[ext_resource path="res://Overlap/Kind.tscn" type="PackedScene" id=4]
[sub_resource type="CapsuleShape2D" id=1]
radius = 7.43707
height = 2.89399
radius = 8.0
height = 3.0
[node name="Heart" type="Node2D"]
script = ExtResource( 2 )
@@ -21,13 +21,12 @@ position = Vector2( 0.22036, -4.18694 )
texture = ExtResource( 3 )
[node name="Hurtbox" parent="." instance=ExtResource( 1 )]
position = Vector2( 1.54256, -4.73786 )
collision_layer = 32
collision_mask = 0
health_value = 1
[node name="CollisionShape2D" parent="Hurtbox" index="0"]
position = Vector2( -1.54256, 4.73785 )
position = Vector2( 1, 0 )
rotation = 1.5708
shape = SubResource( 1 )
[connection signal="area_entered" from="Hurtbox" to="." method="_on_Hurtbox_area_entered"]

BIN
src/Objects/Heart/heart.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 347 B

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/heart.png-13b9754fe3316cc976606d2623658a1b.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Heart/heart.png"
dest_files=[ "res://.import/heart.png-13b9754fe3316cc976606d2623658a1b.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=false
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=false
svg/scale=1.0