mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-07-02 08:12:12 +08:00
feat: 更新角色和武器配置,调整子弹效果
- 将Kernyr角色替换为Chick并更新相关属性 - 修改Rooster的武器配置,替换AcidWind为PurpleCrystal - 调整Yangyi子弹的纹理和粒子效果参数 - 提高武器Tree的攻击速率 - 移除调试标志并优化部分数值设置
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_i51w8"]
|
[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="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"]
|
[sub_resource type="SpriteFrames" id="SpriteFrames_peenw"]
|
||||||
animations = [{
|
animations = [{
|
||||||
@@ -65,17 +65,13 @@ curve = SubResource("Curve_c3irh")
|
|||||||
|
|
||||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_c3irh"]
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_c3irh"]
|
||||||
particle_flag_disable_z = true
|
particle_flag_disable_z = true
|
||||||
angle_min = 1.0728835e-05
|
angle_min = 90.000015
|
||||||
angle_max = 360.00003
|
angle_max = 90.000015
|
||||||
direction = Vector3(-1, 0, 0)
|
direction = Vector3(-1, 0, 0)
|
||||||
spread = 0.0
|
spread = 0.0
|
||||||
initial_velocity_min = 1500.0
|
initial_velocity_min = 500.0
|
||||||
initial_velocity_max = 1500.0
|
initial_velocity_max = 500.0
|
||||||
angular_velocity_min = -100.000015
|
|
||||||
angular_velocity_max = 99.999985
|
|
||||||
gravity = Vector3(0, 0, 0)
|
gravity = Vector3(0, 0, 0)
|
||||||
scale_min = 0.39999998
|
|
||||||
scale_max = 0.39999998
|
|
||||||
alpha_curve = SubResource("CurveTexture_peenw")
|
alpha_curve = SubResource("CurveTexture_peenw")
|
||||||
|
|
||||||
[node name="Yangyi" instance=ExtResource("1_i51w8")]
|
[node name="Yangyi" instance=ExtResource("1_i51w8")]
|
||||||
@@ -86,7 +82,6 @@ lifeTime = 3000.0
|
|||||||
autoLoopAnimation = true
|
autoLoopAnimation = true
|
||||||
|
|
||||||
[node name="texture" parent="." index="0"]
|
[node name="texture" parent="." index="0"]
|
||||||
scale = Vector2(0.075, 0.075)
|
|
||||||
sprite_frames = SubResource("SpriteFrames_peenw")
|
sprite_frames = SubResource("SpriteFrames_peenw")
|
||||||
|
|
||||||
[node name="animator" parent="texture" index="0"]
|
[node name="animator" parent="texture" index="0"]
|
||||||
@@ -99,7 +94,6 @@ shape = SubResource("RectangleShape2D_x2cof")
|
|||||||
|
|
||||||
[node name="trail" type="GPUParticles2D" parent="." index="2"]
|
[node name="trail" type="GPUParticles2D" parent="." index="2"]
|
||||||
z_index = -1
|
z_index = -1
|
||||||
scale = Vector2(0.15, 0.15)
|
|
||||||
texture = ExtResource("3_c3irh")
|
texture = ExtResource("3_c3irh")
|
||||||
local_coords = true
|
local_coords = true
|
||||||
process_material = SubResource("ParticleProcessMaterial_c3irh")
|
process_material = SubResource("ParticleProcessMaterial_c3irh")
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://cvogxi7mktumf" path="res://components/Abstracts/EntityBase.tscn" id="1_bha5j"]
|
[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="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"]
|
[sub_resource type="SpriteFrames" id="SpriteFrames_vkls3"]
|
||||||
animations = [{
|
animations = [{
|
||||||
@@ -22,7 +22,7 @@ size = Vector2(118, 98)
|
|||||||
|
|
||||||
[node name="Kernyr" instance=ExtResource("1_bha5j")]
|
[node name="Kernyr" instance=ExtResource("1_bha5j")]
|
||||||
script = ExtResource("2_vkls3")
|
script = ExtResource("2_vkls3")
|
||||||
displayName = "主核"
|
displayName = "Chick"
|
||||||
drops = Array[int]([0, 1])
|
drops = Array[int]([0, 1])
|
||||||
dropCounts = Array[Vector2]([Vector2(30, 50), Vector2(20, 40)])
|
dropCounts = Array[Vector2]([Vector2(30, 50), Vector2(20, 40)])
|
||||||
appleCount = Vector2i(2, 5)
|
appleCount = Vector2i(2, 5)
|
||||||
@@ -31,12 +31,11 @@ appleCount = Vector2i(2, 5)
|
|||||||
sprite_frames = SubResource("SpriteFrames_vkls3")
|
sprite_frames = SubResource("SpriteFrames_vkls3")
|
||||||
|
|
||||||
[node name="staticBackground" parent="texture" index="0"]
|
[node name="staticBackground" parent="texture" index="0"]
|
||||||
position = Vector2(0, -10)
|
scale = Vector2(1.622, 1.622)
|
||||||
scale = Vector2(0.22162607, 0.22162607)
|
|
||||||
texture = ExtResource("3_vkls3")
|
texture = ExtResource("3_vkls3")
|
||||||
|
|
||||||
[node name="hitbox" parent="texture/hurtbox" index="0"]
|
[node name="hitbox" parent="texture/hurtbox" index="0"]
|
||||||
shape = SubResource("RectangleShape2D_vkls3")
|
shape = SubResource("RectangleShape2D_vkls3")
|
||||||
|
|
||||||
[node name="statebar" parent="." index="4"]
|
[node name="statebar" parent="." index="4"]
|
||||||
position = Vector2(0, -144)
|
position = Vector2(0, -132)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
[ext_resource type="PackedScene" uid="uid://cvogxi7mktumf" path="res://components/Abstracts/EntityBase.tscn" id="1_e5pl8"]
|
[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="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://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://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://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"]
|
[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"]
|
[node name="weaponStore" parent="." index="2"]
|
||||||
process_mode = 4
|
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
|
offset_bottom = 350.0
|
||||||
debugRebuild = false
|
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
|
debugRebuild = false
|
||||||
|
|
||||||
[node name="sprint" parent="sounds" index="0"]
|
[node name="sprint" parent="sounds" index="0"]
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ store = {
|
|||||||
"atk": 20,
|
"atk": 20,
|
||||||
"count": 1.0,
|
"count": 1.0,
|
||||||
"max": 3.0,
|
"max": 3.0,
|
||||||
"rate": 0.25
|
"rate": 1.0
|
||||||
}
|
}
|
||||||
storeType = {
|
storeType = {
|
||||||
"atk": 1,
|
"atk": 1,
|
||||||
@@ -35,7 +35,6 @@ descriptionTemplate = "进行[b]格挡[/b],化解飞来的子弹。
|
|||||||
乾坤剑造成的伤害+$atk点。
|
乾坤剑造成的伤害+$atk点。
|
||||||
格挡时机越精确,成功率越高。"
|
格挡时机越精确,成功率越高。"
|
||||||
cooldown = 250.0
|
cooldown = 250.0
|
||||||
debugRebuild = true
|
|
||||||
|
|
||||||
[node name="avatar" parent="container/info" index="0"]
|
[node name="avatar" parent="container/info" index="0"]
|
||||||
texture = ExtResource("3_nwamk")
|
texture = ExtResource("3_nwamk")
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ var atk: float = 0
|
|||||||
var reflectRate: float = 0.25
|
var reflectRate: float = 0.25
|
||||||
|
|
||||||
func spawn():
|
func spawn():
|
||||||
var varians = randi_range(0, 2)
|
var varians = randi_range(0, 1)
|
||||||
var inverts = [2]
|
var inverts = [2]
|
||||||
var frames = load("res://resources/effects/parrier/%d/%d.tres" % [varians, varians])
|
var frames = load("res://resources/effects/parrier/%d/%d.tres" % [varians, varians])
|
||||||
var eff = EffectController.create(ComponentManager.getEffect("Parrier"), position)
|
var eff = EffectController.create(ComponentManager.getEffect("Parrier"), position)
|
||||||
|
|||||||
@@ -7,13 +7,14 @@ var attack0State = 0
|
|||||||
func register():
|
func register():
|
||||||
fields[FieldStore.Entity.MAX_HEALTH] = 2000
|
fields[FieldStore.Entity.MAX_HEALTH] = 2000
|
||||||
fields[FieldStore.Entity.OFFSET_SHOOT] = 20
|
fields[FieldStore.Entity.OFFSET_SHOOT] = 20
|
||||||
attackCooldownMap[0] = 2000
|
attackCooldownMap[0] = 3000
|
||||||
attackCooldownMap[1] = 100
|
attackCooldownMap[1] = 100
|
||||||
attackCooldownMap[2] = 1000
|
attackCooldownMap[2] = 1000
|
||||||
func ai():
|
func ai():
|
||||||
tryAttack(0)
|
tryAttack(0)
|
||||||
tryAttack(1)
|
tryAttack(1)
|
||||||
tryAttack(2)
|
tryAttack(2)
|
||||||
|
# texture.position = Vector2.from_angle(deg_to_rad(timeLived() / 1000.0 * 360)) * 200
|
||||||
func attack(type: int):
|
func attack(type: int):
|
||||||
if type == 0:
|
if type == 0:
|
||||||
var states = [
|
var states = [
|
||||||
|
|||||||
Reference in New Issue
Block a user