mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-02 01:11:54 +08:00
feat(召唤物): 添加哈基米召唤物及相关功能
添加新的哈基米(HJM)召唤物,包括动画资源、攻击逻辑和武器配置。主要变更: - 新增HJM召唤物脚本和场景,包含6帧动画 - 添加HJM专属子弹类型HJMAttack - 修改SummonBase基类添加atk属性 - 调整武器系统支持召唤物攻击 - 优化子弹系统支持召唤者追踪 - 降低LGBT旗帜召唤物的生命值
This commit is contained in:
@@ -23,6 +23,7 @@ class_name BulletBase
|
||||
@onready var texture: AnimatedSprite2D = $"%texture"
|
||||
|
||||
var launcher: EntityBase = null
|
||||
var launcherSummoned: EntityBase = null
|
||||
var spawnInWhen: float = 0
|
||||
var spawnInWhere: Vector2 = Vector2.ZERO
|
||||
var destroying: bool = false
|
||||
@@ -32,6 +33,9 @@ var initialSpeed: float = 0
|
||||
|
||||
func _ready():
|
||||
initialSpeed = speed
|
||||
if launcher.isSummon():
|
||||
launcherSummoned = launcher
|
||||
launcher = launcher.myMaster
|
||||
register()
|
||||
area_entered.connect(hit)
|
||||
spawnInWhen = WorldManager.getTime()
|
||||
|
||||
@@ -76,6 +76,7 @@ var inventoryMax = {
|
||||
@export var appleCount: Vector2i = Vector2(0, 2) # 死亡后掉落的苹果数量
|
||||
@export var level: int = 1
|
||||
@export var currentInvinsible: bool = false
|
||||
@export var useStatic: bool = false
|
||||
|
||||
@onready var animatree: AnimationTree = $"%animatree"
|
||||
@onready var texture: AnimatedSprite2D = $"%texture"
|
||||
@@ -104,6 +105,8 @@ var currentStage: int = 0
|
||||
var spawnTime: float = 0
|
||||
|
||||
func _ready():
|
||||
if useStatic:
|
||||
texture = texture.get_node("staticAnimation")
|
||||
spawnTime = WorldManager.getTime()
|
||||
register()
|
||||
var selfStatebar: EntityStateBar = $"%statebar"
|
||||
|
||||
@@ -3,6 +3,7 @@ class_name SummonBase
|
||||
|
||||
@export var attraction: float = 0.0
|
||||
|
||||
var atk: float = 0
|
||||
var myMaster: EntityBase = null
|
||||
|
||||
func _ready():
|
||||
|
||||
Reference in New Issue
Block a user