a game about throwing hammers made for the github game off
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[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="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"]
[ext_resource type="Shader" path="res://hammers/hammer_outline.gdshader" id="5_iyctf"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_go8fx"]
resource_local_to_scene = true
shader = ExtResource("5_iyctf")
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(1, 8)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_cbjww"]
size = Vector2(6, 12)

[sub_resource type="CircleShape2D" id="CircleShape2D_jubww"]
radius = 125.0

[node name="Hammer" type="Area2D"]
texture_filter = 1
collision_layer = 32
script = ExtResource("1_xp22t")

[node name="Trail" type="Line2D" parent="." node_paths=PackedStringArray("target")]
z_index = -1
position = Vector2(0, -6)
points = PackedVector2Array(0, 0)
width = 3.0
width_curve = ExtResource("4_yvshk")
gradient = ExtResource("5_8dqv1")
round_precision = 4
antialiased = true
script = ExtResource("4_boru3")
lifetime = 2.0
target = NodePath("")
metadata/_edit_lock_ = true

[node name="Sprite" type="Sprite2D" parent="."]
material = SubResource("ShaderMaterial_go8fx")

[node name="Collision" type="CollisionShape2D" parent="."]
visible = false
shape = SubResource("RectangleShape2D_fffa1")

[node name="Hitbox" parent="." instance=ExtResource("1_kdx5x")]

[node name="Collision" parent="Hitbox" index="0"]
shape = SubResource("RectangleShape2D_cbjww")

[node name="TargetFinder" type="Area2D" parent="."]
visible = false
collision_layer = 0
collision_mask = 0
monitorable = false

[node name="Collision" type="CollisionShape2D" parent="TargetFinder"]
shape = SubResource("CircleShape2D_jubww")
debug_color = Color(0, 0.941176, 0.352941, 0.12549)

[node name="LeftCast" type="RayCast2D" parent="."]
enabled = false
target_position = Vector2(-5, -29)
collide_with_areas = true
collide_with_bodies = false

[node name="RightCast" type="RayCast2D" parent="."]
enabled = false
target_position = Vector2(5, -29)
collide_with_areas = true
collide_with_bodies = false

[node name="TargetCast" type="RayCast2D" parent="."]
enabled = false
target_position = Vector2(0, -200)
collide_with_areas = true
collide_with_bodies = false

[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="area_entered" from="TargetFinder" to="." method="_on_target_finder_node_entered"]
[connection signal="body_entered" from="TargetFinder" to="." method="_on_target_finder_node_entered"]

[editable path="Hitbox"]