mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-04 10:47:13 +08:00
feat: 调整开发模式初始波数并添加死亡提示
修改开发模式下初始波数为10以便测试 为Boss和玩家角色添加死亡时的提示信息 在开发模式下为Rooster角色添加无限道具 将Rooster的武器从NuclearBomb替换为AcidWind
This commit is contained in:
@@ -2,7 +2,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://b2qhes4apaxsj" path="res://components/Weapons/NuclearBomb.tscn" id="3_da2ca"]
|
||||
[ext_resource type="PackedScene" uid="uid://yq7vmijwvgx1" path="res://components/Weapons/AcidWind.tscn" id="3_da2ca"]
|
||||
[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"]
|
||||
@@ -58,7 +58,8 @@ metadata/_edit_vertical_guides_ = [71.0]
|
||||
[node name="weaponStore" parent="." index="1"]
|
||||
process_mode = 4
|
||||
|
||||
[node name="NuclearBomb" parent="weaponStore" index="0" instance=ExtResource("3_da2ca")]
|
||||
[node name="AcidWind" parent="weaponStore" index="0" instance=ExtResource("3_da2ca")]
|
||||
debugRebuild = false
|
||||
|
||||
[node name="sprint" parent="sounds" index="0"]
|
||||
stream = ExtResource("4_66s6c")
|
||||
|
||||
@@ -11,10 +11,11 @@ func register():
|
||||
elif bullet is FoxZhua:
|
||||
EffectController.create(ComponentManager.getEffect("BloodFall"), texture.global_position).shot()
|
||||
)
|
||||
# if !WorldManager.isRelease():
|
||||
# fields[FieldStore.Entity.BULLET_REFRACTION] = 3
|
||||
# fields[FieldStore.Entity.BULLET_SPLIT] = 3
|
||||
# fields[FieldStore.Entity.EXTRA_BULLET_COUNT] = 3
|
||||
if !WorldManager.isRelease():
|
||||
getItem({
|
||||
ItemStore.ItemType.BEACHBALL: INF,
|
||||
ItemStore.ItemType.SOUL: INF
|
||||
})
|
||||
func ai():
|
||||
texture.play("walk")
|
||||
var direction = Vector2(
|
||||
|
||||
@@ -22,7 +22,7 @@ func duplicate() -> Wave:
|
||||
wave.per = per
|
||||
return wave
|
||||
|
||||
static var current: int = startWith(1) if WorldManager.isRelease() else startWith(1)
|
||||
static var current: int = startWith(1) if WorldManager.isRelease() else startWith(10)
|
||||
static var WAVE_NORMAL = [
|
||||
Wave.create("Hen", 1, 3, false, 0, INF, 1),
|
||||
Wave.create("Cat", 1, 5, false, 0, INF, 1),
|
||||
|
||||
@@ -368,6 +368,10 @@ func tryDie(by: BulletBase = null):
|
||||
EffectController.create(ComponentManager.getEffect("DeadBlood"), texture.global_position).shot()
|
||||
await die()
|
||||
died.emit()
|
||||
if isBoss:
|
||||
UIState.showTip("[b]%s[/b] 已被打败!" % displayName, 500)
|
||||
elif isPlayer():
|
||||
UIState.showTip("[b]%s[/b] 似了😭。" % displayName, 500)
|
||||
queue_free()
|
||||
func tryHeal(count: float):
|
||||
playSound("heal")
|
||||
|
||||
Reference in New Issue
Block a user