1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-27 22:41:56 +08:00

feat(子弹系统): 添加Egg子弹类型及相关资源

添加新的Egg子弹类型,包括脚本、纹理和场景文件。更新Kernyr角色的攻击逻辑以使用Egg子弹。新增篮球和雷电纹理资源及其导入配置。
This commit is contained in:
2026-03-28 09:47:41 +08:00
parent ce7765c027
commit 2105de1131
8 changed files with 157 additions and 2 deletions
+2 -2
View File
@@ -45,12 +45,12 @@ func attack(type: int):
for i in count:
await sprintTo(anchor + Vector2.from_angle(deg_to_rad(i / count * 360.0 - 90)) * radius, 0.5)
for bullet in BulletBase.generate(
ComponentManager.getBullet("Yangyi"),
ComponentManager.getBullet("Egg"),
self ,
position,
0
):
if bullet is YangyiBullet:
if bullet is EggBullet:
bullet.look_at(anchor)
await TickTool.millseconds(2000)
await chargeUp()