1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00
Files
Dog-Lynx-And-HCN/components/Bullets/Parrier.tscn
T
fallingshrimp 550718c742 feat(子弹): 为多种子弹添加motionType属性并优化场景文件
为Wuwei、FireScan、Parrier等子弹组件添加motionType属性,用于控制子弹运动类型
同时清理了各场景文件中冗余的load_steps声明,并统一了节点唯一ID格式
2026-04-30 06:49:18 +08:00

67 lines
2.0 KiB
Plaintext

[gd_scene format=3 uid="uid://brt2q316hrswe"]
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_57y3f"]
[ext_resource type="Script" uid="uid://bi7nde2rs0w4m" path="res://scripts/Contents/Bullets/Parrier.gd" id="2_li4th"]
[sub_resource type="Animation" id="Animation_ksxds"]
length = 0.001
tracks/0/type = "bezier"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("%texture/..:parryRate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"handle_modes": PackedInt32Array(0),
"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0),
"times": PackedFloat32Array(0)
}
[sub_resource type="Animation" id="Animation_li4th"]
resource_name = "spawn"
length = 0.3
step = 0.01
tracks/0/type = "bezier"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("%texture/..:parryRate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"handle_modes": PackedInt32Array(0, 0),
"points": PackedFloat32Array(1, -0.25, 0, 0.1, 0, 0, -0.3, 0, 0, 0),
"times": PackedFloat32Array(0, 0.3)
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_k4ctn"]
_data = {
&"RESET": SubResource("Animation_ksxds"),
&"spawn": SubResource("Animation_li4th")
}
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_li4th"]
radius = 60.0
height = 300.0
[node name="Parrier" unique_id=2089111975 instance=ExtResource("1_57y3f")]
script = ExtResource("2_li4th")
parryRate = 0.0
displayName = "格挡"
baseDamage = 5.0
motionType = 0
penerate = 1.0
autoSpawnAnimation = true
freeAfterSpawn = true
[node name="texture" parent="." index="0" unique_id=162977358]
modulate = Color(1, 1, 1, 0)
scale = Vector2(0.8, 0.8)
[node name="animator" parent="texture" index="0" unique_id=1114087117]
libraries/ = SubResource("AnimationLibrary_k4ctn")
[node name="hitbox" parent="." index="1" unique_id=175349408]
position = Vector2(150, 0)
rotation = 1.5707964
shape = SubResource("CapsuleShape2D_li4th")