1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-25 13:02:29 +08:00

feat(武器): 添加彩虹猫之刃武器及相关资源

添加彩虹猫之刃武器,包含以下内容:
- 新增彩虹猫子弹和武器贴图资源
- 实现彩虹猫子弹和武器逻辑脚本
- 添加武器预制体和相关动画效果
- 在公鸡角色中默认装备该武器
- 修改子弹基类添加AI调用逻辑
This commit is contained in:
2025-09-21 08:26:29 +08:00
parent 73c59be0e8
commit f58a8ea014
13 changed files with 271 additions and 6 deletions
+71
View File
@@ -0,0 +1,71 @@
[gd_scene load_steps=9 format=3 uid="uid://dseriubgri7j5"]
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_newpt"]
[ext_resource type="Texture2D" uid="uid://cwr2pud7h8o3e" path="res://resources/bullets/meowmere/Meowmere.webp" id="2_ahi5w"]
[ext_resource type="Script" path="res://scripts/Contents/Bullets/Meowmere.gd" id="2_eoimw"]
[sub_resource type="SpriteFrames" id="SpriteFrames_432r6"]
[sub_resource type="Animation" id="Animation_jdotg"]
resource_name = "spwan"
length = 0.2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("sword:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [-0.436332, 2.00713]
}
[sub_resource type="Animation" id="Animation_q4hki"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("sword:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [-0.436332]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_47iyl"]
_data = {
"RESET": SubResource("Animation_q4hki"),
"spawn": SubResource("Animation_jdotg")
}
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ja03c"]
size = Vector2(56, 107)
[node name="Meowmere" instance=ExtResource("1_newpt")]
script = ExtResource("2_eoimw")
autoSpawnAnimation = true
freeAfterSpawn = true
[node name="texture" parent="." index="0"]
sprite_frames = SubResource("SpriteFrames_432r6")
[node name="animator" parent="texture" index="0"]
libraries = {
"": SubResource("AnimationLibrary_47iyl")
}
[node name="sword" type="Node2D" parent="texture" index="1"]
rotation = -0.436332
[node name="texture" type="Sprite2D" parent="texture/sword" index="0"]
position = Vector2(25, -29)
texture = ExtResource("2_ahi5w")
[node name="hitbox" parent="." index="1"]
position = Vector2(30, -4.5)
shape = SubResource("RectangleShape2D_ja03c")
+62
View File
@@ -0,0 +1,62 @@
[gd_scene load_steps=12 format=3 uid="uid://ct8ijxg7ftypd"]
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_vvwmq"]
[ext_resource type="Script" path="res://scripts/Contents/Bullets/RainbowCat.gd" id="2_4c1xc"]
[ext_resource type="Texture2D" uid="uid://ceqhttm1urmk3" path="res://resources/bullets/rainbow-cat/1.webp" id="2_bt3cu"]
[sub_resource type="SpriteFrames" id="SpriteFrames_0xq5p"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_bt3cu")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[sub_resource type="Curve" id="Curve_80oph"]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 2
[sub_resource type="CurveTexture" id="CurveTexture_pwojl"]
curve = SubResource("Curve_80oph")
[sub_resource type="Curve" id="Curve_dmif4"]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 2
[sub_resource type="CurveTexture" id="CurveTexture_yu884"]
curve = SubResource("Curve_dmif4")
[sub_resource type="Gradient" id="Gradient_wd04q"]
offsets = PackedFloat32Array(0, 0.16, 0.32, 0.48, 0.64, 0.8, 1)
colors = PackedColorArray(1, 0, 0, 1, 1, 0.447059, 0, 1, 1, 0.890625, 0, 1, 0, 0.820313, 0.128174, 1, 0, 1, 0.859375, 1, 0, 0.53125, 1, 1, 0.429688, 0, 1, 1)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_f6n6f"]
gradient = SubResource("Gradient_wd04q")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_u7fxt"]
particle_flag_disable_z = true
emission_shape = 1
emission_sphere_radius = 10.0
angle_min = 1.07288e-05
angle_max = 360.0
angle_curve = SubResource("CurveTexture_yu884")
gravity = Vector3(0, 0, 0)
scale_min = 3.0
scale_max = 5.0
color_ramp = SubResource("GradientTexture1D_f6n6f")
alpha_curve = SubResource("CurveTexture_pwojl")
[node name="RainbowCat" instance=ExtResource("1_vvwmq")]
script = ExtResource("2_4c1xc")
[node name="texture" parent="." index="0"]
rotation = 1.5708
sprite_frames = SubResource("SpriteFrames_0xq5p")
[node name="trail" type="GPUParticles2D" parent="texture" index="1"]
z_index = -1
amount = 400
process_material = SubResource("ParticleProcessMaterial_u7fxt")