mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-31 08:21:54 +08:00
ddd89f1334
实现鸡毛弓武器系统,包括武器脚本、箭矢脚本和场景配置 修改实体伤害处理逻辑,分离普通伤害和子弹伤害方法 更新公鸡角色配置,添加鸡毛弓作为默认武器
24 lines
901 B
Plaintext
24 lines
901 B
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://wy8wqwhwr4fb"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_0wuio"]
|
|
[ext_resource type="Texture2D" uid="uid://dadbn306owsy3" path="res://resources/bullets/arrow/arrow.png" id="2_b2ohg"]
|
|
[ext_resource type="Script" uid="uid://u5x40y0cvqq2" path="res://scripts/Contents/Bullets/Arrow.gd" id="2_qddg0"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_b2ohg"]
|
|
|
|
[node name="Arrow" instance=ExtResource("1_0wuio")]
|
|
script = ExtResource("2_qddg0")
|
|
displayName = "鸡毛箭"
|
|
speed = 20.0
|
|
damage = 50.0
|
|
penerate = 1.0
|
|
lifeDistance = 1200.0
|
|
|
|
[node name="static" type="Sprite2D" parent="texture" index="1"]
|
|
scale = Vector2(0.06775362, 0.06775362)
|
|
texture = ExtResource("2_b2ohg")
|
|
|
|
[node name="hitbox" parent="." index="1"]
|
|
position = Vector2(79, 2)
|
|
shape = SubResource("CircleShape2D_b2ohg")
|