1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00

refactor(Characters): 移除FurryR角色并增强KukeMC能力

移除未使用的FurryR角色相关文件
增强KukeMC的攻击能力,增加紫色水晶子弹攻击
调整KukeMC的碰撞检测范围并优化状态栏位置
注释掉测试波次中的无关角色
This commit is contained in:
2025-09-14 13:57:53 +08:00
parent 085c831fb8
commit 8a1a2c54ee
5 changed files with 20 additions and 16 deletions
-6
View File
@@ -1,6 +0,0 @@
[gd_scene load_steps=2 format=3 uid="uid://ci4aho82dk58h"]
[ext_resource type="PackedScene" uid="uid://cvogxi7mktumf" path="res://components/Abstracts/EntityBase.tscn" id="1_odk26"]
[node name="FurryR" instance=ExtResource("1_odk26")]
displayName = "熊谷凌"
+10 -1
View File
@@ -1,4 +1,4 @@
[gd_scene load_steps=5 format=3 uid="uid://d4lfjwy0hkidu"]
[gd_scene load_steps=6 format=3 uid="uid://d4lfjwy0hkidu"]
[ext_resource type="PackedScene" uid="uid://cvogxi7mktumf" path="res://components/Abstracts/EntityBase.tscn" id="1_r4q7y"]
[ext_resource type="Texture2D" uid="uid://c1jhrutky8pya" path="res://resources/characters/kukemc/avatar.webp" id="2_422pv"]
@@ -23,6 +23,9 @@ animations = [{
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_farlp"]
size = Vector2(150, 150)
[node name="KukeMC" instance=ExtResource("1_r4q7y")]
script = ExtResource("2_s2dg5")
displayName = "酷可mc"
@@ -30,3 +33,9 @@ displayName = "酷可mc"
[node name="texture" parent="." index="2"]
sprite_frames = SubResource("SpriteFrames_1c0ui")
animation = &"walk"
[node name="hitbox" parent="texture/hurtbox" index="0"]
shape = SubResource("RectangleShape2D_farlp")
[node name="statebar" parent="." index="3"]
position = Vector2(0, -140)
-6
View File
@@ -1,6 +0,0 @@
extends EntityBase
class_name FurryR
func register():
fields[FieldStore.Entity.MAX_HEALTH] *= 0.05
fields[FieldStore.Entity.DAMAGE_MULTIPILER] = 999.0
+8 -1
View File
@@ -2,10 +2,17 @@ extends EntityBase
class_name KukeMC
func register():
fields[FieldStore.Entity.MAX_HEALTH] = 1000
fields[FieldStore.Entity.OFFSET_SHOOT] = 45
attackCooldownMap[0] = 500
func ai():
for bullet in get_tree().get_nodes_in_group("bullets"):
if (
bullet is LGBTBullet and
bullet.position.distance_to(self.position) < 200
bullet.position.distance_to(self.position) < 200 # 酷可mc会去摧毁200半径以内的七彩飞星
):
bullet.tryDestroy()
tryAttack(0)
func attack(type):
if type == 0:
for i in randi_range(3, 8):
BulletBase.generate(preload("res://components/Bullets/PurpleCrystal.tscn"), self, findWeaponAnchor("normal"), position.angle_to_point(currentFocusedBoss.position))
+2 -2
View File
@@ -15,8 +15,8 @@ static var WAVE_NORMAL = [
Wave.create(preload("res://components/Characters/Bear.tscn"), 0, 0, true, 19, INF, 10),
]
static var WAVE_TESTBOSS = [
Wave.create(preload("res://components/Characters/Chick.tscn"), 0, 0, true, 0, INF, 1),
Wave.create(preload("res://components/Characters/Bear.tscn"), 0, 0, true, 0, INF, 1),
# Wave.create(preload("res://components/Characters/Chick.tscn"), 0, 0, true, 0, INF, 1),
# Wave.create(preload("res://components/Characters/Bear.tscn"), 0, 0, true, 0, INF, 1),
Wave.create(preload("res://components/Characters/KukeMC.tscn"), 0, 0, true, 0, INF, 1),
]
static var data = WAVE_TESTBOSS