2025-05-13 19:22:01 +08:00

136 lines
4.0 KiB
Plaintext

[gd_scene load_steps=16 format=4]
[ext_resource type="Script" path="res://Scripts/Battle/BulletBoards.cs" id="1"]
[ext_resource type="Script" path="res://Scripts/Bullets/AxisPunch.cs" id="2"]
[ext_resource type="Texture2D" path="res://Sprites/Bullets/AxisFist2.tres" id="3"]
[ext_resource type="Texture2D" path="res://Sprites/Bullets/AxisFist.tres" id="4"]
[ext_resource type="Script" path="res://Scripts/Bullets/Blank.cs" id="5"]
[ext_resource type="Texture2D" path="res://Sprites/Bullets/Impact1.tres" id="6"]
[ext_resource type="Texture2D" path="res://Sprites/Bullets/Impact2.tres" id="7"]
[ext_resource type="Script" path="res://Scripts/Bullets/MoveAhead.cs" id="8"]
[ext_resource type="Texture2D" path="res://Sprites/Bullets/Smoke.tres" id="9"]
[sub_resource type="CircleShape2D" id="CircleShape2D_wb0pj"]
radius = 14.0
[sub_resource type="SpriteFrames" id="SpriteFrames_k7u1a"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("6")
}, {
"duration": 1.0,
"texture": ExtResource("7")
}],
"loop": false,
"name": &"default",
"speed": 5.0
}]
[sub_resource type="Animation" id="Animation_fr6oc"]
length = 0.0010000000474974513
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1, 1)]
}
[sub_resource type="Animation" id="Animation_l6h4i"]
resource_name = "new_animation"
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:scale")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(1, 0.735294), Vector2(0.829268, 1.17647)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_2mnag"]
_data = {
&"RESET": SubResource("Animation_fr6oc"),
&"new_animation": SubResource("Animation_l6h4i")
}
[sub_resource type="CircleShape2D" id="CircleShape2D_rm3v7"]
radius = 17.0
[node name="AxisPunch" type="Node2D"]
script = ExtResource("1")
timer = 450.0
boardStartOffset = Vector2(0, 20)
metadata/_edit_vertical_guides_ = [-40.0, 40.0]
metadata/_edit_horizontal_guides_ = [-40.0, 40.0]
[node name="Controller" type="Node2D" parent="." node_paths=PackedStringArray("hand", "impactFX", "smoke", "handSpr", "collider")]
script = ExtResource("2")
hand = NodePath("../Punch")
impactFX = NodePath("../Impact")
smoke = NodePath("../Bullet")
handSpr = NodePath("../Punch/Sprite2D")
anim = [ExtResource("3"), ExtResource("4")]
collider = NodePath("../Punch/Area2D/CollisionShape2D")
[node name="Punch" type="Node2D" parent="."]
position = Vector2(0, -132)
script = ExtResource("5")
[node name="Sprite2D" type="Sprite2D" parent="Punch"]
rotation = 2.024630069732666
texture = ExtResource("3")
[node name="Area2D" type="Area2D" parent="Punch"]
collision_layer = 4
collision_mask = 4
[node name="CollisionShape2D" type="CollisionShape2D" parent="Punch/Area2D"]
position = Vector2(-1, 0)
shape = SubResource("CircleShape2D_wb0pj")
[node name="Impact" type="AnimatedSprite2D" parent="."]
process_mode = 4
position = Vector2(81, -265)
rotation = 1.5707999467849731
sprite_frames = SubResource("SpriteFrames_k7u1a")
autoplay = "default"
frame = 1
frame_progress = 1.0
offset = Vector2(-15, 0)
[node name="Bullet" type="Node2D" parent="."]
process_mode = 4
position = Vector2(115, -281)
scale = Vector2(0.6, 0.6)
script = ExtResource("8")
lifeTime = 180.0
[node name="Bullet" type="Sprite2D" parent="Bullet"]
texture = ExtResource("9")
[node name="AnimationPlayer" type="AnimationPlayer" parent="Bullet/Bullet"]
libraries = {
&"": SubResource("AnimationLibrary_2mnag")
}
autoplay = "new_animation"
[node name="Area2D" type="Area2D" parent="Bullet"]
collision_layer = 4
collision_mask = 4
[node name="CollisionShape2D" type="CollisionShape2D" parent="Bullet/Area2D"]
shape = SubResource("CircleShape2D_rm3v7")
[connection signal="animation_finished" from="Impact" to="Impact" method="queue_free"]