1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-01 00:41:54 +08:00

Add import configuration for Chomp.wav audio effect

This commit is contained in:
2025-08-27 10:23:57 +08:00
parent 5b2c2f5cf7
commit 730f732ef1
27 changed files with 387 additions and 73 deletions
+5
View File
@@ -17,6 +17,8 @@ func ai():
tryAttack(0)
if Input.is_action_just_pressed("sprint"):
trySprint()
if Input.is_action_just_pressed("heal"):
tryHeal(20)
func attack(type):
if type == 0:
var weaponPos = findWeaponAnchor("normal")
@@ -26,3 +28,6 @@ func sprint():
Input.get_axis("m_left", "m_right"),
Input.get_axis("m_up", "m_down")
) * sprintMultiplier, true)
func heal(count: float):
health += count
DamageLabel.create(-count, false, damageAnchor.global_position + MathTool.randv2_range(GameRule.damageLabelSpawnOffset))