mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-13 07:07:12 +08:00
refactor(Characters): 移除FurryR角色并增强KukeMC能力
移除未使用的FurryR角色相关文件 增强KukeMC的攻击能力,增加紫色水晶子弹攻击 调整KukeMC的碰撞检测范围并优化状态栏位置 注释掉测试波次中的无关角色
This commit is contained in:
@@ -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 = "熊谷凌"
|
|
||||||
@@ -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="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"]
|
[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
|
"speed": 5.0
|
||||||
}]
|
}]
|
||||||
|
|
||||||
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_farlp"]
|
||||||
|
size = Vector2(150, 150)
|
||||||
|
|
||||||
[node name="KukeMC" instance=ExtResource("1_r4q7y")]
|
[node name="KukeMC" instance=ExtResource("1_r4q7y")]
|
||||||
script = ExtResource("2_s2dg5")
|
script = ExtResource("2_s2dg5")
|
||||||
displayName = "酷可mc"
|
displayName = "酷可mc"
|
||||||
@@ -30,3 +33,9 @@ displayName = "酷可mc"
|
|||||||
[node name="texture" parent="." index="2"]
|
[node name="texture" parent="." index="2"]
|
||||||
sprite_frames = SubResource("SpriteFrames_1c0ui")
|
sprite_frames = SubResource("SpriteFrames_1c0ui")
|
||||||
animation = &"walk"
|
animation = &"walk"
|
||||||
|
|
||||||
|
[node name="hitbox" parent="texture/hurtbox" index="0"]
|
||||||
|
shape = SubResource("RectangleShape2D_farlp")
|
||||||
|
|
||||||
|
[node name="statebar" parent="." index="3"]
|
||||||
|
position = Vector2(0, -140)
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -2,10 +2,17 @@ extends EntityBase
|
|||||||
class_name KukeMC
|
class_name KukeMC
|
||||||
func register():
|
func register():
|
||||||
fields[FieldStore.Entity.MAX_HEALTH] = 1000
|
fields[FieldStore.Entity.MAX_HEALTH] = 1000
|
||||||
|
fields[FieldStore.Entity.OFFSET_SHOOT] = 45
|
||||||
|
attackCooldownMap[0] = 500
|
||||||
func ai():
|
func ai():
|
||||||
for bullet in get_tree().get_nodes_in_group("bullets"):
|
for bullet in get_tree().get_nodes_in_group("bullets"):
|
||||||
if (
|
if (
|
||||||
bullet is LGBTBullet and
|
bullet is LGBTBullet and
|
||||||
bullet.position.distance_to(self.position) < 200
|
bullet.position.distance_to(self.position) < 200 # 酷可mc会去摧毁200半径以内的七彩飞星
|
||||||
):
|
):
|
||||||
bullet.tryDestroy()
|
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))
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ static var WAVE_NORMAL = [
|
|||||||
Wave.create(preload("res://components/Characters/Bear.tscn"), 0, 0, true, 19, INF, 10),
|
Wave.create(preload("res://components/Characters/Bear.tscn"), 0, 0, true, 19, INF, 10),
|
||||||
]
|
]
|
||||||
static var WAVE_TESTBOSS = [
|
static var WAVE_TESTBOSS = [
|
||||||
Wave.create(preload("res://components/Characters/Chick.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/Bear.tscn"), 0, 0, true, 0, INF, 1),
|
||||||
Wave.create(preload("res://components/Characters/KukeMC.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
|
static var data = WAVE_TESTBOSS
|
||||||
|
|||||||
Reference in New Issue
Block a user