mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-10 05:37:12 +08:00
feat(武器): 添加鸡毛弓武器及相关箭矢功能
实现鸡毛弓武器系统,包括武器脚本、箭矢脚本和场景配置 修改实体伤害处理逻辑,分离普通伤害和子弹伤害方法 更新公鸡角色配置,添加鸡毛弓作为默认武器
This commit is contained in:
@@ -1,13 +1,18 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://wy8wqwhwr4fb"]
|
||||
[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)
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://c2ga3ktbxdfc5"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://c2ga3ktbxdfc5"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_t0pyo"]
|
||||
[ext_resource type="Texture2D" uid="uid://7us1po711e3o" path="res://resources/weapons/鸡毛弓.png" id="2_two1a"]
|
||||
[ext_resource type="Script" uid="uid://dnnxxqpbpwohf" path="res://scripts/Contents/Bullets/Bow.gd" id="2_wtwgr"]
|
||||
|
||||
[node name="Bow" instance=ExtResource("1_t0pyo")]
|
||||
script = ExtResource("2_wtwgr")
|
||||
metadata/_edit_vertical_guides_ = [88.0]
|
||||
|
||||
[node name="static" type="Sprite2D" parent="texture" index="1"]
|
||||
position = Vector2(150, 0)
|
||||
scale = Vector2(0.055427626, 0.055427626)
|
||||
texture = ExtResource("2_two1a")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user