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

feat: 更新角色和武器配置,调整子弹效果

- 将Kernyr角色替换为Chick并更新相关属性
- 修改Rooster的武器配置,替换AcidWind为PurpleCrystal
- 调整Yangyi子弹的纹理和粒子效果参数
- 提高武器Tree的攻击速率
- 移除调试标志并优化部分数值设置
This commit is contained in:
2026-03-27 23:04:20 +08:00
parent 4f6225747a
commit bbb4540ec4
6 changed files with 17 additions and 23 deletions
+5 -11
View File
@@ -2,7 +2,7 @@
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_i51w8"]
[ext_resource type="Script" uid="uid://c3ax35jdfjqox" path="res://scripts/Contents/Bullets/Yangyi.gd" id="2_sku1m"]
[ext_resource type="Texture2D" uid="uid://7hofo0ihj7sh" path="res://resources/bullets/yangyi/0.jpg" id="3_c3irh"]
[ext_resource type="Texture2D" uid="uid://dnpqfqfg6dwt4" path="res://resources/bullets/pencil/frames/pencil-a.svg" id="3_c3irh"]
[sub_resource type="SpriteFrames" id="SpriteFrames_peenw"]
animations = [{
@@ -65,17 +65,13 @@ curve = SubResource("Curve_c3irh")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_c3irh"]
particle_flag_disable_z = true
angle_min = 1.0728835e-05
angle_max = 360.00003
angle_min = 90.000015
angle_max = 90.000015
direction = Vector3(-1, 0, 0)
spread = 0.0
initial_velocity_min = 1500.0
initial_velocity_max = 1500.0
angular_velocity_min = -100.000015
angular_velocity_max = 99.999985
initial_velocity_min = 500.0
initial_velocity_max = 500.0
gravity = Vector3(0, 0, 0)
scale_min = 0.39999998
scale_max = 0.39999998
alpha_curve = SubResource("CurveTexture_peenw")
[node name="Yangyi" instance=ExtResource("1_i51w8")]
@@ -86,7 +82,6 @@ lifeTime = 3000.0
autoLoopAnimation = true
[node name="texture" parent="." index="0"]
scale = Vector2(0.075, 0.075)
sprite_frames = SubResource("SpriteFrames_peenw")
[node name="animator" parent="texture" index="0"]
@@ -99,7 +94,6 @@ shape = SubResource("RectangleShape2D_x2cof")
[node name="trail" type="GPUParticles2D" parent="." index="2"]
z_index = -1
scale = Vector2(0.15, 0.15)
texture = ExtResource("3_c3irh")
local_coords = true
process_material = SubResource("ParticleProcessMaterial_c3irh")
+4 -5
View File
@@ -2,7 +2,7 @@
[ext_resource type="PackedScene" uid="uid://cvogxi7mktumf" path="res://components/Abstracts/EntityBase.tscn" id="1_bha5j"]
[ext_resource type="Script" uid="uid://m28dwfwmmhmh" path="res://scripts/Contents/Characters/Kernyr.gd" id="2_vkls3"]
[ext_resource type="Texture2D" uid="uid://b1aq0k7tf1p1" path="res://resources/characters/kernyr/kernyr.jpg" id="3_vkls3"]
[ext_resource type="Texture2D" uid="uid://7pkplcqqxvnp" path="res://resources/characters/chick/chick-a.svg" id="3_vkls3"]
[sub_resource type="SpriteFrames" id="SpriteFrames_vkls3"]
animations = [{
@@ -22,7 +22,7 @@ size = Vector2(118, 98)
[node name="Kernyr" instance=ExtResource("1_bha5j")]
script = ExtResource("2_vkls3")
displayName = "主核"
displayName = "Chick"
drops = Array[int]([0, 1])
dropCounts = Array[Vector2]([Vector2(30, 50), Vector2(20, 40)])
appleCount = Vector2i(2, 5)
@@ -31,12 +31,11 @@ appleCount = Vector2i(2, 5)
sprite_frames = SubResource("SpriteFrames_vkls3")
[node name="staticBackground" parent="texture" index="0"]
position = Vector2(0, -10)
scale = Vector2(0.22162607, 0.22162607)
scale = Vector2(1.622, 1.622)
texture = ExtResource("3_vkls3")
[node name="hitbox" parent="texture/hurtbox" index="0"]
shape = SubResource("RectangleShape2D_vkls3")
[node name="statebar" parent="." index="4"]
position = Vector2(0, -144)
position = Vector2(0, -132)
+4 -3
View File
@@ -3,7 +3,7 @@
[ext_resource type="PackedScene" uid="uid://cvogxi7mktumf" path="res://components/Abstracts/EntityBase.tscn" id="1_e5pl8"]
[ext_resource type="Script" uid="uid://cthtupc6dtbav" path="res://scripts/Contents/Characters/Rooster.gd" id="2_oqdqd"]
[ext_resource type="PackedScene" uid="uid://cx7nogfnv7s8t" path="res://components/Weapons/Tree.tscn" id="3_0omr3"]
[ext_resource type="PackedScene" uid="uid://yq7vmijwvgx1" path="res://components/Weapons/AcidWind.tscn" id="4_0omr3"]
[ext_resource type="PackedScene" uid="uid://c0n3igy4hucrg" path="res://components/Weapons/PurpleCrystal.tscn" id="3_joj4g"]
[ext_resource type="AudioStream" uid="uid://cdrevrq7n6yqa" path="res://resources/sounds/effect/Boing.mp3" id="4_66s6c"]
[ext_resource type="AudioStream" uid="uid://benyec5bqni0b" path="res://resources/sounds/effect/Chomp.wav" id="4_k0yme"]
[ext_resource type="AudioStream" uid="uid://dmxh3bpk8vyy5" path="res://resources/sounds/effect/Coin.mp3" id="5_xnbhq"]
@@ -102,11 +102,12 @@ process_material = SubResource("ParticleProcessMaterial_joj4g")
[node name="weaponStore" parent="." index="2"]
process_mode = 4
[node name="Tree" parent="weaponStore" index="0" instance=ExtResource("3_0omr3")]
[node name="PurpleCrystal" parent="weaponStore" index="0" instance=ExtResource("3_joj4g")]
offset_bottom = 350.0
debugRebuild = false
[node name="AcidWind" parent="weaponStore" index="1" instance=ExtResource("4_0omr3")]
[node name="Tree" parent="weaponStore" index="1" instance=ExtResource("3_0omr3")]
offset_bottom = 350.0
debugRebuild = false
[node name="sprint" parent="sounds" index="0"]
+1 -2
View File
@@ -16,7 +16,7 @@ store = {
"atk": 20,
"count": 1.0,
"max": 3.0,
"rate": 0.25
"rate": 1.0
}
storeType = {
"atk": 1,
@@ -35,7 +35,6 @@ descriptionTemplate = "进行[b]格挡[/b],化解飞来的子弹。
乾坤剑造成的伤害+$atk点。
格挡时机越精确,成功率越高。"
cooldown = 250.0
debugRebuild = true
[node name="avatar" parent="container/info" index="0"]
texture = ExtResource("3_nwamk")
+1 -1
View File
@@ -10,7 +10,7 @@ var atk: float = 0
var reflectRate: float = 0.25
func spawn():
var varians = randi_range(0, 2)
var varians = randi_range(0, 1)
var inverts = [2]
var frames = load("res://resources/effects/parrier/%d/%d.tres" % [varians, varians])
var eff = EffectController.create(ComponentManager.getEffect("Parrier"), position)
+2 -1
View File
@@ -7,13 +7,14 @@ var attack0State = 0
func register():
fields[FieldStore.Entity.MAX_HEALTH] = 2000
fields[FieldStore.Entity.OFFSET_SHOOT] = 20
attackCooldownMap[0] = 2000
attackCooldownMap[0] = 3000
attackCooldownMap[1] = 100
attackCooldownMap[2] = 1000
func ai():
tryAttack(0)
tryAttack(1)
tryAttack(2)
# texture.position = Vector2.from_angle(deg_to_rad(timeLived() / 1000.0 * 360)) * 200
func attack(type: int):
if type == 0:
var states = [