| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- [gd_scene load_steps=9 format=3 uid="uid://b0gkypf5ow67f"]
- [ext_resource type="Script" uid="uid://cx0ak5ctcg0mi" path="res://Scripts/Classes/Entities/Enemies/Icicle.gd" id="1_dnx1i"]
- [ext_resource type="Texture2D" uid="uid://rbln0ee0fknc" path="res://Assets/Sprites/Enemies/Icicle.png" id="2_1h8cl"]
- [ext_resource type="Script" uid="uid://cnheej0sxmoxg" path="res://Scripts/Parts/PlayerDetection.gd" id="3_1h8cl"]
- [ext_resource type="Script" uid="uid://364rywt44hy6" path="res://Scripts/Classes/UI/PackSprite.gd" id="3_dnx1i"]
- [sub_resource type="RectangleShape2D" id="RectangleShape2D_dnx1i"]
- size = Vector2(10, 8)
- [sub_resource type="Animation" id="Animation_dnx1i"]
- resource_name = "Shake"
- length = 0.2
- loop_mode = 1
- tracks/0/type = "value"
- tracks/0/imported = false
- tracks/0/enabled = true
- tracks/0/path = NodePath("Sprite:offset")
- tracks/0/interp = 2
- tracks/0/loop_wrap = true
- tracks/0/keys = {
- "times": PackedFloat32Array(0, 0.10000001),
- "transitions": PackedFloat32Array(1, 1),
- "update": 0,
- "values": [Vector2(-1, 0), Vector2(1, 0)]
- }
- [sub_resource type="Animation" id="Animation_5y583"]
- length = 0.001
- tracks/0/type = "value"
- tracks/0/imported = false
- tracks/0/enabled = true
- tracks/0/path = NodePath("Sprite:offset")
- tracks/0/interp = 1
- tracks/0/loop_wrap = true
- tracks/0/keys = {
- "times": PackedFloat32Array(0),
- "transitions": PackedFloat32Array(1),
- "update": 0,
- "values": [Vector2(0, 0)]
- }
- [sub_resource type="AnimationLibrary" id="AnimationLibrary_2sios"]
- _data = {
- &"RESET": SubResource("Animation_5y583"),
- &"Shake": SubResource("Animation_dnx1i")
- }
- [node name="Icicle" type="CharacterBody2D"]
- collision_layer = 0
- collision_mask = 55
- script = ExtResource("1_dnx1i")
- metadata/_custom_type_script = "uid://bpydbpyjk1mt4"
- [node name="Sprite" type="Sprite2D" parent="."]
- position = Vector2(0, -8)
- texture = ExtResource("2_1h8cl")
- script = ExtResource("3_dnx1i")
- metadata/_custom_type_script = "uid://364rywt44hy6"
- [node name="Collision" type="CollisionShape2D" parent="."]
- visible = false
- position = Vector2(0, -12)
- shape = SubResource("RectangleShape2D_dnx1i")
- [node name="Hitbox" type="Area2D" parent="."]
- visible = false
- script = ExtResource("3_1h8cl")
- metadata/_custom_type_script = "uid://cnheej0sxmoxg"
- [node name="Shape" type="CollisionShape2D" parent="Hitbox"]
- position = Vector2(0, -6)
- shape = SubResource("RectangleShape2D_dnx1i")
- [node name="VisibleOnScreenEnabler2D" type="VisibleOnScreenEnabler2D" parent="."]
- self_modulate = Color(1, 1, 1, 0)
- position = Vector2(0, -8)
- [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
- libraries = {
- &"": SubResource("AnimationLibrary_2sios")
- }
- [connection signal="player_entered" from="Hitbox" to="." method="damage_player"]
- [connection signal="player_entered" from="Hitbox" to="." method="destroy" unbinds=1]
|