mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-07-02 08:12:12 +08:00
feat(武器): 添加彩虹猫之刃武器及相关资源
添加彩虹猫之刃武器,包含以下内容: - 新增彩虹猫子弹和武器贴图资源 - 实现彩虹猫子弹和武器逻辑脚本 - 添加武器预制体和相关动画效果 - 在公鸡角色中默认装备该武器 - 修改子弹基类添加AI调用逻辑
This commit is contained in:
@@ -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")
|
||||
Reference in New Issue
Block a user