| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- [gd_scene load_steps=10 format=3 uid="uid://deo08vl26nc4b"]
- [ext_resource type="Script" uid="uid://s1utdly4mtbi" path="res://Scripts/Classes/Entities/Items/Hammer.gd" id="1_3ojke"]
- [ext_resource type="Texture2D" uid="uid://3xmhfi556p3s" path="res://Assets/Sprites/Items/Hammer.png" id="1_o34jf"]
- [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_k3c6x"]
- [ext_resource type="JSON" path="res://Assets/Sprites/Items/Hammer.json" id="4_pmlpp"]
- [sub_resource type="AtlasTexture" id="AtlasTexture_2tvg3"]
- atlas = ExtResource("1_o34jf")
- region = Rect2(0, 0, 16, 16)
- [sub_resource type="Animation" id="Animation_vmyq7"]
- length = 0.001
- tracks/0/type = "value"
- tracks/0/imported = false
- tracks/0/enabled = true
- tracks/0/path = NodePath("Sprite:rotation")
- tracks/0/interp = 1
- tracks/0/loop_wrap = true
- tracks/0/keys = {
- "times": PackedFloat32Array(0),
- "transitions": PackedFloat32Array(1),
- "update": 0,
- "values": [0.0]
- }
- [sub_resource type="Animation" id="Animation_3ojke"]
- resource_name = "Rotate"
- length = 0.4
- loop_mode = 1
- step = 0.1
- tracks/0/type = "value"
- tracks/0/imported = false
- tracks/0/enabled = true
- tracks/0/path = NodePath("Sprite:rotation")
- tracks/0/interp = 0
- tracks/0/loop_wrap = true
- tracks/0/keys = {
- "times": PackedFloat32Array(0, 0.1, 0.2, 0.3),
- "transitions": PackedFloat32Array(1, 1, 1, 1),
- "update": 0,
- "values": [0.0, -1.5708, -3.14159, -4.71239]
- }
- [sub_resource type="AnimationLibrary" id="AnimationLibrary_k3c6x"]
- _data = {
- &"RESET": SubResource("Animation_vmyq7"),
- &"Rotate": SubResource("Animation_3ojke")
- }
- [sub_resource type="CircleShape2D" id="CircleShape2D_pmlpp"]
- radius = 4.0
- [node name="Hammer" type="Node2D" groups=["Enemies"]]
- script = ExtResource("1_3ojke")
- [node name="Sprite" type="Sprite2D" parent="."]
- physics_interpolation_mode = 2
- texture = SubResource("AtlasTexture_2tvg3")
- [node name="ResourceSetterNew" type="Node" parent="Sprite" node_paths=PackedStringArray("node_to_affect", "property_node")]
- script = ExtResource("3_k3c6x")
- node_to_affect = NodePath("..")
- property_node = NodePath("../..")
- property_name = "texture"
- mode = 1
- resource_json = ExtResource("4_pmlpp")
- metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
- [node name="Animations" type="AnimationPlayer" parent="."]
- libraries = {
- &"": SubResource("AnimationLibrary_k3c6x")
- }
- autoplay = "Rotate"
- [node name="Hitbox" type="Area2D" parent="."]
- [node name="Shape" type="CollisionShape2D" parent="Hitbox"]
- shape = SubResource("CircleShape2D_pmlpp")
- [connection signal="area_entered" from="Hitbox" to="." method="on_area_entered"]
|