mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
feat(实体系统): 添加敌人等级系统并调整相关UI和游戏规则
为敌人实体添加等级属性,影响生命值和伤害 在状态栏和Boss血条中显示等级信息 调整游戏规则增加难度相关的属性成长系数 修改粒子效果角度和波次生成逻辑
This commit is contained in:
@@ -53,6 +53,22 @@ layout_mode = 2
|
||||
text = "BossName"
|
||||
label_settings = SubResource("LabelSettings_esyuk")
|
||||
|
||||
[node name="lv" type="Label" parent="health/panel/label"]
|
||||
layout_mode = 2
|
||||
text = "Lv."
|
||||
label_settings = SubResource("LabelSettings_esyuk")
|
||||
|
||||
[node name="level" type="Label" parent="health/panel/label"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "100"
|
||||
label_settings = SubResource("LabelSettings_esyuk")
|
||||
|
||||
[node name="sep" type="Label" parent="health/panel/label"]
|
||||
layout_mode = 2
|
||||
text = " - "
|
||||
label_settings = SubResource("LabelSettings_esyuk")
|
||||
|
||||
[node name="value" type="Label" parent="health/panel/label"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dcjqjqere8ets"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dcjqjqere8ets"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://d1ulrvupa76ap" path="res://components/UI/ColorBar.tscn" id="1_0ngbn"]
|
||||
[ext_resource type="Script" path="res://scripts/Statemachine/EntityStateBar.gd" id="1_ovbjr"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_ih2pl"]
|
||||
font_size = 13
|
||||
|
||||
[node name="EntityStateBar" type="Node2D"]
|
||||
script = ExtResource("1_ovbjr")
|
||||
|
||||
@@ -12,3 +15,27 @@ offset_left = -50.0
|
||||
offset_top = -5.0
|
||||
offset_right = 50.0
|
||||
offset_bottom = 5.0
|
||||
|
||||
[node name="levelLabel" type="HBoxContainer" parent="health"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.5
|
||||
anchor_top = -2.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = -2.0
|
||||
offset_left = -25.0
|
||||
offset_right = 26.0
|
||||
offset_bottom = 19.0
|
||||
grow_horizontal = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="tip" type="Label" parent="health/levelLabel"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 8
|
||||
text = "Lv."
|
||||
label_settings = SubResource("LabelSettings_ih2pl")
|
||||
|
||||
[node name="level" type="Label" parent="health/levelLabel"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "100"
|
||||
|
||||
@@ -39,7 +39,7 @@ particle_flag_disable_z = true
|
||||
emission_shape = 1
|
||||
emission_sphere_radius = 15.0
|
||||
angle_min = 1.07288e-05
|
||||
angle_max = 720.0
|
||||
angle_max = 90.0
|
||||
angle_curve = SubResource("CurveTexture_orbge")
|
||||
gravity = Vector3(0, 0, 0)
|
||||
scale_min = 5.0
|
||||
|
||||
Reference in New Issue
Block a user