152 lines
4.4 KiB
Plaintext
152 lines
4.4 KiB
Plaintext
[gd_scene format=3 uid="uid://dgxovyasrduo5"]
|
|
|
|
[ext_resource type="Script" uid="uid://by82tj263c628" path="res://saw_swinging.gd" id="1_n4mys"]
|
|
[ext_resource type="Texture2D" uid="uid://d22jcb3da431q" path="res://art/saw_chain.png" id="2_31jf1"]
|
|
[ext_resource type="Texture2D" uid="uid://cpftgnwkpx1rp" path="res://art/saw.png" id="2_vwlp5"]
|
|
[ext_resource type="Texture2D" uid="uid://dfdjachaibh2u" path="res://art/saw2.png" id="3_31jf1"]
|
|
[ext_resource type="Texture2D" uid="uid://cwvvgwo87pct0" path="res://art/saw3.png" id="4_3wt0e"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_ryup7"]
|
|
radius = 16.0
|
|
|
|
[sub_resource type="Animation" id="Animation_vwlp5"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".: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_3wt0e"]
|
|
resource_name = "fullswing_ccw"
|
|
length = 2.0
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:rotation")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 2),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [0.0, -6.2831855]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_31jf1"]
|
|
resource_name = "fullswing_cw"
|
|
length = 2.0
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:rotation")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 2),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [0.0, 6.2831855]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_x3ve6"]
|
|
resource_name = "halfswing_ccw"
|
|
length = 2.0
|
|
loop_mode = 2
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:rotation")
|
|
tracks/0/interp = 5
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 2),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [1.5707963267948966, -1.5707963267948966]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_g2k3i"]
|
|
resource_name = "halfswing_cw"
|
|
length = 2.0
|
|
loop_mode = 2
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:rotation")
|
|
tracks/0/interp = 5
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 2),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [-1.5707963267948966, 1.5707963267948966]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_3wt0e"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_vwlp5"),
|
|
&"fullswing_ccw": SubResource("Animation_3wt0e"),
|
|
&"fullswing_cw": SubResource("Animation_31jf1"),
|
|
&"halfswing_ccw": SubResource("Animation_x3ve6"),
|
|
&"halfswing_cw": SubResource("Animation_g2k3i")
|
|
}
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_lmieu"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 0.3,
|
|
"texture": ExtResource("2_vwlp5")
|
|
}, {
|
|
"duration": 0.3,
|
|
"texture": ExtResource("3_31jf1")
|
|
}, {
|
|
"duration": 0.3,
|
|
"texture": ExtResource("4_3wt0e")
|
|
}],
|
|
"loop": 1,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_vwlp5"]
|
|
radius = 18.0
|
|
|
|
[node name="SawSwinging" type="AnimatableBody2D" unique_id=1098290500]
|
|
script = ExtResource("1_n4mys")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1907671557]
|
|
position = Vector2(1.5195612e-05, 76)
|
|
shape = SubResource("CircleShape2D_ryup7")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=141912847]
|
|
position = Vector2(5.9447484e-06, 34)
|
|
texture = ExtResource("2_31jf1")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1221437574]
|
|
libraries/ = SubResource("AnimationLibrary_3wt0e")
|
|
|
|
[node name="SawBlade" type="AnimatedSprite2D" parent="." unique_id=760707152]
|
|
texture_filter = 1
|
|
position = Vector2(1.5195612e-05, 76)
|
|
sprite_frames = SubResource("SpriteFrames_lmieu")
|
|
autoplay = "default"
|
|
frame_progress = 0.40998712
|
|
|
|
[node name="Area2D" type="Area2D" parent="." unique_id=1356546922]
|
|
position = Vector2(19.000013, 83)
|
|
rotation = -6.834404e-05
|
|
|
|
[node name="ShapeCast2D" type="CollisionShape2D" parent="Area2D" unique_id=1586514592]
|
|
position = Vector2(-18.999523, -7.0012984)
|
|
shape = SubResource("CircleShape2D_vwlp5")
|
|
|
|
[connection signal="body_entered" from="Area2D" to="." method="on_contact"]
|