1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 15:01:53 +08:00
Files
Dog-Lynx-And-HCN/components/Bullets/MushroomPickaxe.tscn
T
fallingshrimp 8fcc742c77 feat: 添加蘑菇矿挖爪武器及其相关功能
添加新的武器蘑菇矿挖爪,包括武器脚本、子弹脚本和场景文件。修改BulletBase.gd以支持新武器的功能,并在Rooster角色中添加该武器。同时设置rooster节点为初始不可见状态。

- 新增MushroomPickaxe武器,具有概率掉落物品的特性
- 修改BulletBase的succeedToHit方法以支持实体参数
- 在Rooster场景中添加新武器
- 设置rooster节点的currentInvinsible属性为true
2025-09-14 22:38:08 +08:00

86 lines
2.4 KiB
Plaintext

[gd_scene load_steps=10 format=3 uid="uid://dyo1ysooo1l4x"]
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_2jrlq"]
[ext_resource type="Script" path="res://scripts/Contents/Bullets/MushroomPickaxe.gd" id="2_iyw38"]
[ext_resource type="Texture2D" uid="uid://cqg0aluvegqfe" path="res://resources/bullets/MushroomPickaxe/frames/Shroomite_Digging_Claw.webp" id="2_symlj"]
[sub_resource type="Animation" id="Animation_j8qom"]
length = 0.001
[sub_resource type="Animation" id="Animation_oinqg"]
resource_name = "destroy"
length = 0.5
step = 0.1
[sub_resource type="Animation" id="Animation_ynxlt"]
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_kmogx"]
resource_name = "spawn"
length = 0.2
step = 0.05
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, 0.2),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [-0.785398, 0.785]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_qrtcj"]
_data = {
"RESET": SubResource("Animation_j8qom"),
"destroy": SubResource("Animation_oinqg"),
"loop": SubResource("Animation_ynxlt"),
"spawn": SubResource("Animation_kmogx")
}
[sub_resource type="RectangleShape2D" id="RectangleShape2D_lp71g"]
size = Vector2(80, 170)
[node name="MushroomPickaxe" instance=ExtResource("1_2jrlq")]
script = ExtResource("2_iyw38")
displayName = "蘑菇矿挖爪"
speed = 0.0
damage = 1.0
penerate = 1.0
autoSpawnAnimation = true
freeAfterSpawn = true
[node name="texture" parent="." index="0"]
rotation = 0.785
[node name="animator" parent="texture" index="0"]
libraries = {
"": SubResource("AnimationLibrary_qrtcj")
}
[node name="item" type="Sprite2D" parent="texture" index="1"]
position = Vector2(200, 0)
rotation = 0.785398
scale = Vector2(2, 2)
texture = ExtResource("2_symlj")
[node name="hitbox" parent="." index="1"]
position = Vector2(200, 0)
shape = SubResource("RectangleShape2D_lp71g")