mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-28 14:32:30 +08:00
feat(游戏内容): 添加新敌人波次并调整武器参数
为游戏添加新的敌人波次WAVE_MOWING,包含多种敌人类型。同时调整InfinitySword武器的穿透伤害减免参数和音频音量,并修改敌人生成范围从200-1000调整为400-800,以改善游戏平衡性
This commit is contained in:
@@ -145,6 +145,7 @@ height = 580.0
|
|||||||
script = ExtResource("2_nbqhn")
|
script = ExtResource("2_nbqhn")
|
||||||
speed = 25.0
|
speed = 25.0
|
||||||
penerate = 1.0
|
penerate = 1.0
|
||||||
|
penerateDamageReduction = 0.05
|
||||||
autoSpawnAnimation = true
|
autoSpawnAnimation = true
|
||||||
autoPlayTexture = true
|
autoPlayTexture = true
|
||||||
freeAfterSpawn = true
|
freeAfterSpawn = true
|
||||||
@@ -158,6 +159,7 @@ sprite_frames = SubResource("SpriteFrames_c741v")
|
|||||||
libraries/ = SubResource("AnimationLibrary_3cvbl")
|
libraries/ = SubResource("AnimationLibrary_3cvbl")
|
||||||
|
|
||||||
[node name="audio" parent="texture" index="1" unique_id=1167114186]
|
[node name="audio" parent="texture" index="1" unique_id=1167114186]
|
||||||
|
volume_db = 10.0
|
||||||
max_distance = 10000.0
|
max_distance = 10000.0
|
||||||
|
|
||||||
[node name="hitbox" parent="." index="1" unique_id=175349408]
|
[node name="hitbox" parent="." index="1" unique_id=175349408]
|
||||||
|
|||||||
@@ -48,8 +48,14 @@ static var WAVE_TESTBOSS_CHICK = [
|
|||||||
static var WAVE_JUSTJOKE = [
|
static var WAVE_JUSTJOKE = [
|
||||||
Wave.create("Kernyr", 0, 0, true, 0, INF, 1),
|
Wave.create("Kernyr", 0, 0, true, 0, INF, 1),
|
||||||
]
|
]
|
||||||
|
static var WAVE_MOWING = [
|
||||||
|
Wave.create("Hen", 15, 30, false, 0, INF, 1),
|
||||||
|
Wave.create("Cat", 15, 30, false, 0, INF, 1),
|
||||||
|
Wave.create("Dog", 15, 30, false, 0, INF, 1),
|
||||||
|
Wave.create("MTY", 1, 5, false, 0, INF, 1),
|
||||||
|
]
|
||||||
static var WAVE_EMPTY = []
|
static var WAVE_EMPTY = []
|
||||||
static var waveConfig = [WAVE_NORMAL, 1]
|
static var waveConfig = [WAVE_MOWING, 1]
|
||||||
|
|
||||||
static var current: int = startWith(1) if WorldManager.isRelease() else startWith(waveConfig[1])
|
static var current: int = startWith(1) if WorldManager.isRelease() else startWith(waveConfig[1])
|
||||||
static var data = WAVE_NORMAL if WorldManager.isRelease() else waveConfig[0]
|
static var data = WAVE_NORMAL if WorldManager.isRelease() else waveConfig[0]
|
||||||
@@ -105,7 +111,7 @@ static func spawn(center: Vector2) -> Array:
|
|||||||
var wave: Wave = data[i]
|
var wave: Wave = data[i]
|
||||||
for j in range(entityCountOf(wave)):
|
for j in range(entityCountOf(wave)):
|
||||||
var currentWave = wave.duplicate()
|
var currentWave = wave.duplicate()
|
||||||
currentWave.entityPosition = MathTool.sampleInRing(200, 1000) + center
|
currentWave.entityPosition = MathTool.sampleInRing(400, 800) + center
|
||||||
result.append(currentWave)
|
result.append(currentWave)
|
||||||
return result
|
return result
|
||||||
static func next(waves: Array):
|
static func next(waves: Array):
|
||||||
|
|||||||
Reference in New Issue
Block a user