1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-22 03:22:30 +08:00

feat(角色): 为熊角色添加新的光枪攻击技能

添加新的光枪攻击类型(类型5),包括:
- 新增光枪子弹预制体及脚本
- 添加光枪音效资源
- 在熊角色中实现光枪攻击逻辑
- 新增光枪轨迹着色器
- 配置攻击冷却时间为5500ms

光枪攻击会发射10-15发彩色追踪子弹,形成环绕效果
This commit is contained in:
2025-09-13 22:46:25 +08:00
parent 15913108bf
commit e31fd1889e
7 changed files with 253 additions and 1 deletions
+5 -1
View File
@@ -1,4 +1,4 @@
[gd_scene load_steps=29 format=3 uid="uid://m60bwhdpbem8"]
[gd_scene load_steps=30 format=3 uid="uid://m60bwhdpbem8"]
[ext_resource type="PackedScene" uid="uid://cvogxi7mktumf" path="res://components/Abstracts/EntityBase.tscn" id="1_3ves7"]
[ext_resource type="Script" path="res://scripts/Contents/Characters/Bear.gd" id="2_kh2af"]
@@ -14,6 +14,7 @@
[ext_resource type="AudioStream" uid="uid://ce8xjsh68momv" path="res://resources/sounds/bossAttack/Bear/Arrow7-2.ogg" id="7_0r2df"]
[ext_resource type="Texture2D" uid="uid://cli2fyulk3dsg" path="res://resources/characters/bear/bear-walk-f.svg" id="7_f0c6w"]
[ext_resource type="Texture2D" uid="uid://dadi3ud01bqxk" path="res://resources/characters/bear/bear-walk-g.svg" id="8_4c7bp"]
[ext_resource type="AudioStream" uid="uid://dd18jfva1knwm" path="res://resources/sounds/bossAttack/Bear/LightGun.ogg" id="8_qagkm"]
[ext_resource type="Texture2D" uid="uid://017nthmejh3g" path="res://resources/characters/bear/bear-walk-h.svg" id="9_bcby1"]
[sub_resource type="SpriteFrames" id="SpriteFrames_6tgxs"]
@@ -127,6 +128,9 @@ stream = ExtResource("6_x3jmu")
[node name="attack4" type="AudioStreamPlayer2D" parent="sounds" index="9"]
stream = ExtResource("7_0r2df")
[node name="attack5" type="AudioStreamPlayer2D" parent="sounds" index="10"]
stream = ExtResource("8_qagkm")
[node name="texture" parent="." index="2"]
position = Vector2(0, -80)
sprite_frames = SubResource("SpriteFrames_6tgxs")