mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-06 03:37:13 +08:00
feat(游戏内容): 添加猫角色及相关资源
添加新的猫角色,包括角色脚本、音效、贴图和场景配置 修改Wave.gd以包含猫角色生成 调整EntityBase.gd的武器图标重建逻辑 更新部分粒子效果和音效资源
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
extends EntityBase
|
||||
class_name Maodie
|
||||
|
||||
func register():
|
||||
fields[FieldStore.Entity.MAX_HEALTH] = 75
|
||||
fields[FieldStore.Entity.MOVEMENT_SPEED] = randf_range(0.5, 0.8)
|
||||
attackCooldownMap[0] = randi_range(2500, 6000)
|
||||
sprintMultiplier = 20
|
||||
func ai():
|
||||
PresetEntityAI.follow(self, currentFocusedBoss)
|
||||
tryAttack(0, true)
|
||||
func attack(type: int):
|
||||
if type == 0:
|
||||
BulletBase.generate(ComponentManager.getBullet("ChickSprint"), self, position, 0)
|
||||
trySprint()
|
||||
return true
|
||||
func sprint():
|
||||
move((currentFocusedBoss.position - position).normalized() * sprintMultiplier, true)
|
||||
@@ -0,0 +1 @@
|
||||
uid://chmxghslo4kc4
|
||||
@@ -25,6 +25,7 @@ func duplicate() -> Wave:
|
||||
static var current: int = startWith(1)
|
||||
static var WAVE_NORMAL = [
|
||||
Wave.create("Hen", 1, 5, false, 0, INF, 1),
|
||||
Wave.create("Cat", 1, 5, false, 0, INF, 1),
|
||||
Wave.create("Chick", 0, 0, true, 9, INF, 15),
|
||||
Wave.create("Bear", 0, 0, true, 19, INF, 10),
|
||||
Wave.create("KukeMC", 0, 0, true, 14, INF, 20),
|
||||
|
||||
Reference in New Issue
Block a user