GrappleTest/Objects/GroundSmasher/smasher.tscn

53 lines
2.1 KiB
Text
Raw Permalink Normal View History

2024-03-17 21:56:16 -05:00
[gd_scene load_steps=6 format=3 uid="uid://c7vbin1wckti1"]
2024-03-13 16:15:55 -05:00
[ext_resource type="PackedScene" uid="uid://dc8odchuhx80d" path="res://Objects/AnimTrigger/anim_trigger.tscn" id="1_qvh2l"]
2024-03-17 21:56:16 -05:00
[ext_resource type="Script" path="res://Objects/GroundSmasher/SmasherCollide.gd" id="3_2qfts"]
[ext_resource type="Texture2D" uid="uid://3gsjdgvlscl" path="res://Objects/GroundSmasher/WarningSymbol.png" id="4_5psq0"]
[ext_resource type="Texture2D" uid="uid://cnkms0met64fy" path="res://Objects/GroundSmasher/Smasher.png" id="4_kj73c"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_pnc2c"]
size = Vector2(30, 10)
2024-03-13 16:15:55 -05:00
[node name="Smasher" type="Node2D"]
[node name="AnimTrigger" parent="." instance=ExtResource("1_qvh2l")]
scale = Vector2(1.6, 4)
collision_layer = 2
collision_mask = 2
script = null
2024-03-17 21:56:16 -05:00
[node name="WarnSign" type="Sprite2D" parent="."]
modulate = Color(1, 1, 1, 0)
show_behind_parent = true
scale = Vector2(0.5, 0.5)
texture = ExtResource("4_5psq0")
[node name="WarnBorder" type="Line2D" parent="."]
modulate = Color(1, 0, 0, 0)
position = Vector2(0, -39)
points = PackedVector2Array(-15.5, 0, 15.5, 0, 15.5, 78.5, -15.5, 78.5)
closed = true
width = 1.25
[node name="Crusher" type="AnimatableBody2D" parent="."]
position = Vector2(0, -97)
script = ExtResource("3_2qfts")
[node name="Sprite" type="Sprite2D" parent="Crusher"]
modulate = Color(0, 0, 1, 1)
texture = ExtResource("4_kj73c")
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Crusher"]
polygon = PackedVector2Array(-13, 63, -16, 63, -16, -63, 16, -63, 16, 57, 16, 63, 13, 63)
2024-03-13 16:15:55 -05:00
2024-03-17 21:56:16 -05:00
[node name="Tip" type="Node2D" parent="Crusher"]
position = Vector2(0, 63)
2024-03-13 16:15:55 -05:00
2024-03-17 21:56:16 -05:00
[node name="LauncherHitbox" type="Area2D" parent="Crusher/Tip"]
2024-03-13 16:15:55 -05:00
2024-03-17 21:56:16 -05:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="Crusher/Tip/LauncherHitbox"]
shape = SubResource("RectangleShape2D_pnc2c")
2024-03-13 16:15:55 -05:00
2024-03-17 21:56:16 -05:00
[connection signal="body_shape_entered" from="AnimTrigger" to="Crusher" method="_on_anim_trigger_body_shape_entered"]
[connection signal="body_shape_entered" from="Crusher/Tip/LauncherHitbox" to="Crusher" method="_on_launcher_hitbox_body_shape_entered"]