mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-01 08:51:53 +08:00
code
This commit is contained in:
@@ -17,10 +17,11 @@ func register():
|
||||
sprintMultiplier = 30
|
||||
func ai():
|
||||
PresetEntityAI.distanceAttack(self , currentFocusedBoss, 0, 300, 0)
|
||||
for i in 6:
|
||||
tryAttack(i + 1, [3, 4])
|
||||
PresetEntityAI.distanceAttack(self , currentFocusedBoss, 500, 1000, 1)
|
||||
for i in 5:
|
||||
tryAttack(i + 2, [3, 4])
|
||||
if 1 not in attackingStates:
|
||||
PresetEntityAI.follow(self , currentFocusedBoss)
|
||||
PresetEntityAI.follow(self , currentFocusedBoss, 200)
|
||||
func attack(type: int):
|
||||
if type == 0:
|
||||
for bullet in BulletBase.generate(ComponentManager.getBullet("SwingSword"), self , getTrackingAnchor(), getTrackingAnchor().angle_to_point(currentFocusedPosition)):
|
||||
|
||||
@@ -10,7 +10,7 @@ static var currentPanel: FullscreenPanelBase
|
||||
static var panels: Control
|
||||
static var energyPercent: ColorBar
|
||||
static var itemCollect: VBoxContainer
|
||||
static var skillIconContainer: VBoxContainer
|
||||
static var skillIconContainer: HBoxContainer
|
||||
static var tips: VBoxContainer
|
||||
|
||||
func _ready():
|
||||
|
||||
Reference in New Issue
Block a user