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

Add sound effects and character scripts

- Imported new sound effects: "Low Boing", "Low Whoosh", and "Pew" with corresponding import files.
- Created a new character script for "Hen" with basic AI and attack functionality.
- Implemented an effect controller script for managing particle effects with one-shot functionality.
This commit is contained in:
2025-08-26 15:52:54 +08:00
parent 51b3359e8d
commit 66413bd75d
30 changed files with 424 additions and 24 deletions
+15
View File
@@ -0,0 +1,15 @@
extends EntityBase
class_name Hen
func _ready():
fields[FieldStore.Entity.MAX_HEALTH] = 75
fields[FieldStore.Entity.MOVEMENT_SPEED] = 0.25
super._ready()
func ai():
move(currentFocusedBoss.position - position)
tryAttack(0)
func attack(type):
if type == 0:
var weaponPos = findWeaponAnchor("normal")
BulletBase.generate(preload("res://components/Bullets/HenBomb.tscn"), self, weaponPos, 0)