mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-31 00:11:54 +08:00
7e90bd1c1c
实现道教石像武器,包含以下功能: - 添加天地之剑攻击逻辑,根据攻击速度、生命值和气层数计算伤害 - 新增无量斩子弹类型和特效 - 为公鸡角色添加新武器配置 - 更新相关动画和音效资源
146 lines
4.2 KiB
Plaintext
146 lines
4.2 KiB
Plaintext
[gd_scene format=3 uid="uid://x1xi4efivpwj"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_na6tw"]
|
|
[ext_resource type="Script" uid="uid://b7vswg8ju8a0u" path="res://scripts/Contents/Bullets/InfinitySword.gd" id="2_nbqhn"]
|
|
[ext_resource type="Texture2D" uid="uid://bp687pj8b7wv0" path="res://resources/bullets/infinity-sword/Effect_DangerJumpSlash6.png" id="3_nbqhn"]
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_c741v"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("3_nbqhn")
|
|
}],
|
|
"loop": false,
|
|
"name": &"default",
|
|
"speed": 15.0
|
|
}]
|
|
|
|
[sub_resource type="Animation" id="Animation_nbqhn"]
|
|
length = 0.001
|
|
tracks/0/type = "bezier"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:scale:x")
|
|
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)
|
|
}
|
|
tracks/1/type = "bezier"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath(".:scale:y")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"handle_modes": PackedInt32Array(0),
|
|
"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0),
|
|
"times": PackedFloat32Array(0)
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath(".:modulate")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Color(1, 1, 1, 1)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_d85mn"]
|
|
resource_name = "destroy"
|
|
length = 0.5
|
|
step = 0.1
|
|
|
|
[sub_resource type="Animation" id="Animation_6n88i"]
|
|
resource_name = "loop"
|
|
loop_mode = 1
|
|
step = 0.1
|
|
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, 1),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [0.0, 6.28319]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_bk7mn"]
|
|
resource_name = "spawn"
|
|
length = 2.0
|
|
step = 0.05
|
|
tracks/0/type = "bezier"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:scale:x")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"handle_modes": PackedInt32Array(0, 0, 0, 2),
|
|
"points": PackedFloat32Array(0, -0.25, 0, 0, 0, 0.5, -0.25, 0, 0, 0, 0.5, 0, 0, 0, 0, 0, -0.25, 0, 0, 0),
|
|
"times": PackedFloat32Array(0, 0.15, 1.85, 2)
|
|
}
|
|
tracks/1/type = "bezier"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath(".:scale:y")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"handle_modes": PackedInt32Array(2, 0, 0, 0),
|
|
"points": PackedFloat32Array(0, 0, 0, 0, 0, 0.5, -0.25, 0, 0, 0, 0.5, 0, 0, 0, 0, 0, -0.25, 0, 0, 0),
|
|
"times": PackedFloat32Array(0, 0.15, 1.85, 2)
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath(".:modulate")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0, 0.15, 1.85, 2),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
|
"update": 0,
|
|
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_3cvbl"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_nbqhn"),
|
|
&"destroy": SubResource("Animation_d85mn"),
|
|
&"loop": SubResource("Animation_6n88i"),
|
|
&"spawn": SubResource("Animation_bk7mn")
|
|
}
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_v6780"]
|
|
radius = 124.0
|
|
height = 580.0
|
|
|
|
[node name="InfinitySword" unique_id=2133299016 instance=ExtResource("1_na6tw")]
|
|
script = ExtResource("2_nbqhn")
|
|
speed = 25.0
|
|
penerate = 1.0
|
|
autoSpawnAnimation = true
|
|
autoPlayTexture = true
|
|
freeAfterSpawn = true
|
|
|
|
[node name="texture" parent="." index="0" unique_id=162977358]
|
|
rotation = 2.9485245
|
|
scale = Vector2(1e-05, 1e-05)
|
|
sprite_frames = SubResource("SpriteFrames_c741v")
|
|
|
|
[node name="animator" parent="texture" index="0" unique_id=1114087117]
|
|
libraries/ = SubResource("AnimationLibrary_3cvbl")
|
|
|
|
[node name="hitbox" parent="." index="1" unique_id=175349408]
|
|
shape = SubResource("CapsuleShape2D_v6780")
|