123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- [gd_scene load_steps=9 format=3 uid="uid://cdacdp11r3jua"]
- [ext_resource type="Script" path="res://player/weapon/sword.gd" id="1"]
- [ext_resource type="Texture2D" uid="uid://7cfjw83v5m75" path="res://player/weapon/sword.png" id="2"]
- [sub_resource type="Animation" id="1"]
- resource_name = "SETUP"
- tracks/0/type = "value"
- tracks/0/imported = false
- tracks/0/enabled = true
- tracks/0/path = NodePath(".:rotation_degrees")
- tracks/0/interp = 1
- tracks/0/loop_wrap = true
- tracks/0/keys = {
- "times": PackedFloat32Array(0),
- "transitions": PackedFloat32Array(1),
- "update": 0,
- "values": [0.0]
- }
- tracks/1/type = "value"
- tracks/1/imported = false
- tracks/1/enabled = true
- tracks/1/path = NodePath(".:scale")
- tracks/1/interp = 1
- tracks/1/loop_wrap = true
- tracks/1/keys = {
- "times": PackedFloat32Array(0),
- "transitions": PackedFloat32Array(1),
- "update": 0,
- "values": [Vector2(1, 1)]
- }
- tracks/2/type = "value"
- tracks/2/imported = false
- tracks/2/enabled = true
- tracks/2/path = NodePath(".:visible")
- tracks/2/interp = 1
- tracks/2/loop_wrap = true
- tracks/2/keys = {
- "times": PackedFloat32Array(0),
- "transitions": PackedFloat32Array(1),
- "update": 1,
- "values": [true]
- }
- tracks/3/type = "value"
- tracks/3/imported = false
- tracks/3/enabled = true
- tracks/3/path = NodePath(".:monitoring")
- tracks/3/interp = 1
- tracks/3/loop_wrap = true
- tracks/3/keys = {
- "times": PackedFloat32Array(0),
- "transitions": PackedFloat32Array(1),
- "update": 1,
- "values": [true]
- }
- tracks/4/type = "value"
- tracks/4/imported = false
- tracks/4/enabled = true
- tracks/4/path = NodePath(".:monitorable")
- tracks/4/interp = 1
- tracks/4/loop_wrap = true
- tracks/4/keys = {
- "times": PackedFloat32Array(0),
- "transitions": PackedFloat32Array(1),
- "update": 1,
- "values": [false]
- }
- [sub_resource type="Animation" id="2"]
- resource_name = "attack_circular"
- length = 0.3
- step = 0.05
- tracks/0/type = "value"
- tracks/0/imported = false
- tracks/0/enabled = true
- tracks/0/path = NodePath(".:rotation_degrees")
- tracks/0/interp = 1
- tracks/0/loop_wrap = true
- tracks/0/keys = {
- "times": PackedFloat32Array(0, 0.15, 0.2),
- "transitions": PackedFloat32Array(0.439427, 1, 1),
- "update": 0,
- "values": [-100.0, 100.0, 90.0]
- }
- tracks/1/type = "value"
- tracks/1/imported = false
- tracks/1/enabled = true
- tracks/1/path = NodePath(".:scale")
- tracks/1/interp = 1
- tracks/1/loop_wrap = true
- tracks/1/keys = {
- "times": PackedFloat32Array(0, 0.05, 0.15, 0.2),
- "transitions": PackedFloat32Array(1, 2.50795, 1, 1),
- "update": 0,
- "values": [Vector2(1, 1), Vector2(1, 1.3), Vector2(1, 1), Vector2(1, 1)]
- }
- tracks/2/type = "value"
- tracks/2/imported = false
- tracks/2/enabled = true
- tracks/2/path = NodePath(".:visible")
- tracks/2/interp = 1
- tracks/2/loop_wrap = true
- tracks/2/keys = {
- "times": PackedFloat32Array(0),
- "transitions": PackedFloat32Array(1),
- "update": 1,
- "values": [true]
- }
- [sub_resource type="Animation" id="3"]
- length = 0.45
- step = 0.05
- tracks/0/type = "value"
- tracks/0/imported = false
- tracks/0/enabled = true
- tracks/0/path = NodePath(".:rotation_degrees")
- tracks/0/interp = 1
- tracks/0/loop_wrap = true
- tracks/0/keys = {
- "times": PackedFloat32Array(0, 0.15, 0.2),
- "transitions": PackedFloat32Array(0.439427, 1, 1),
- "update": 0,
- "values": [-80.0, 85.0, 75.0]
- }
- tracks/1/type = "value"
- tracks/1/imported = false
- tracks/1/enabled = true
- tracks/1/path = NodePath(".:scale")
- tracks/1/interp = 1
- tracks/1/loop_wrap = true
- tracks/1/keys = {
- "times": PackedFloat32Array(0, 0.05, 0.15, 0.2),
- "transitions": PackedFloat32Array(1, 2.50795, 1, 1),
- "update": 0,
- "values": [Vector2(1, 1), Vector2(1, 1.3), Vector2(1, 1), Vector2(1, 1)]
- }
- tracks/2/type = "value"
- tracks/2/imported = false
- tracks/2/enabled = true
- tracks/2/path = NodePath(".:visible")
- tracks/2/interp = 1
- tracks/2/loop_wrap = true
- tracks/2/keys = {
- "times": PackedFloat32Array(0),
- "transitions": PackedFloat32Array(1),
- "update": 1,
- "values": [true]
- }
- tracks/3/type = "method"
- tracks/3/imported = false
- tracks/3/enabled = true
- tracks/3/path = NodePath(".")
- tracks/3/interp = 1
- tracks/3/loop_wrap = true
- tracks/3/keys = {
- "times": PackedFloat32Array(0.1, 0.25),
- "transitions": PackedFloat32Array(1, 1),
- "values": [{
- "args": [],
- "method": &"set_attack_input_listening"
- }, {
- "args": [],
- "method": &"set_ready_for_next_attack"
- }]
- }
- [sub_resource type="Animation" id="4"]
- resource_name = "attack_medium"
- length = 0.5
- step = 0.05
- tracks/0/type = "value"
- tracks/0/imported = false
- tracks/0/enabled = true
- tracks/0/path = NodePath(".:rotation_degrees")
- tracks/0/interp = 1
- tracks/0/loop_wrap = true
- tracks/0/keys = {
- "times": PackedFloat32Array(0.05, 0.25, 0.35),
- "transitions": PackedFloat32Array(0.439427, 1, 1),
- "update": 0,
- "values": [95.0, -95.0, -90.0]
- }
- tracks/1/type = "value"
- tracks/1/imported = false
- tracks/1/enabled = true
- tracks/1/path = NodePath(".:scale")
- tracks/1/interp = 1
- tracks/1/loop_wrap = true
- tracks/1/keys = {
- "times": PackedFloat32Array(0, 0.1, 0.2, 0.25),
- "transitions": PackedFloat32Array(1, 2.50795, 1, 1),
- "update": 0,
- "values": [Vector2(1, 1), Vector2(1, 1.3), Vector2(1, 1), Vector2(1, 1)]
- }
- tracks/2/type = "value"
- tracks/2/imported = false
- tracks/2/enabled = true
- tracks/2/path = NodePath(".:visible")
- tracks/2/interp = 1
- tracks/2/loop_wrap = true
- tracks/2/keys = {
- "times": PackedFloat32Array(0),
- "transitions": PackedFloat32Array(1),
- "update": 1,
- "values": [true]
- }
- [sub_resource type="Animation" id="5"]
- length = 0.01
- tracks/0/type = "value"
- tracks/0/imported = false
- tracks/0/enabled = true
- tracks/0/path = NodePath(".:visible")
- tracks/0/interp = 1
- tracks/0/loop_wrap = true
- tracks/0/keys = {
- "times": PackedFloat32Array(0),
- "transitions": PackedFloat32Array(1),
- "update": 1,
- "values": [false]
- }
- [sub_resource type="AnimationLibrary" id="AnimationLibrary_6cp3i"]
- _data = {
- "SETUP": SubResource("1"),
- "attack_circular": SubResource("2"),
- "attack_fast": SubResource("3"),
- "attack_medium": SubResource("4"),
- "idle": SubResource("5")
- }
- [node name="Sword" type="Area2D"]
- collision_layer = 16
- collision_mask = 3
- input_pickable = false
- monitorable = false
- script = ExtResource("1")
- [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
- libraries = {
- "": SubResource("AnimationLibrary_6cp3i")
- }
- [node name="Sword" type="Sprite2D" parent="."]
- position = Vector2(4, 0)
- texture = ExtResource("2")
- offset = Vector2(67, 0)
- [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
- polygon = PackedVector2Array(28.0001, -15.9999, 136, -15.9995, 160, 0, 136, 16.0005, 27.9999, 16.0001)
|