a game about throwing hammers made for the github game off
Diffstat (limited to 'hammers/hammer_base.tscn')
| -rw-r--r-- | hammers/hammer_base.tscn | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/hammers/hammer_base.tscn b/hammers/hammer_base.tscn index 43b00c2..9876740 100644 --- a/hammers/hammer_base.tscn +++ b/hammers/hammer_base.tscn @@ -1,8 +1,7 @@ -[gd_scene load_steps=10 format=3 uid="uid://bimmd1hcj2h0e"] +[gd_scene load_steps=11 format=3 uid="uid://bimmd1hcj2h0e"] [ext_resource type="PackedScene" uid="uid://ug40hxlkequx" path="res://colliders/hitbox.tscn" id="1_kdx5x"] [ext_resource type="Script" path="res://hammers/hammer.gd" id="1_xp22t"] -[ext_resource type="Shape2D" path="res://hammers/8x14.tres" id="2_tgkvf"] [ext_resource type="Script" path="res://fx/trail.gd" id="4_boru3"] [ext_resource type="Curve" path="res://hammers/trail_width.tres" id="4_yvshk"] [ext_resource type="Gradient" path="res://hammers/trail_color.tres" id="5_8dqv1"] @@ -15,6 +14,12 @@ shader_parameter/light_offset = 1.0 shader_parameter/line_width = 0.0 shader_parameter/sin_frequency = 0.25 +[sub_resource type="RectangleShape2D" id="RectangleShape2D_fffa1"] +size = Vector2(2, 12) + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_cbjww"] +size = Vector2(6, 12) + [sub_resource type="CircleShape2D" id="CircleShape2D_jubww"] radius = 125.0 @@ -42,13 +47,12 @@ material = SubResource("ShaderMaterial_go8fx") [node name="Collision" type="CollisionShape2D" parent="."] visible = false -shape = ExtResource("2_tgkvf") +shape = SubResource("RectangleShape2D_fffa1") [node name="Hitbox" parent="." instance=ExtResource("1_kdx5x")] -visible = false [node name="Collision" parent="Hitbox" index="0"] -shape = ExtResource("2_tgkvf") +shape = SubResource("RectangleShape2D_cbjww") [node name="TargetFinder" type="Area2D" parent="."] visible = false @@ -58,19 +62,15 @@ monitorable = false [node name="Collision" type="CollisionShape2D" parent="TargetFinder"] shape = SubResource("CircleShape2D_jubww") - -[node name="Head" type="Marker2D" parent="."] -position = Vector2(0, -6) +debug_color = Color(0, 0.941176, 0.352941, 0.12549) [node name="LeftCast" type="RayCast2D" parent="."] -visible = false position = Vector2(0, -6) -target_position = Vector2(-4, -15) +target_position = Vector2(-5, -29) [node name="RightCast" type="RayCast2D" parent="."] -visible = false position = Vector2(0, -6) -target_position = Vector2(4, -15) +target_position = Vector2(5, -29) [connection signal="body_entered" from="." to="." method="_on_body_entered"] [connection signal="area_entered" from="TargetFinder" to="." method="_on_target_finder_node_entered"] |