1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 15:01:53 +08:00

feat(角色): 添加Yee角色的跑动和攻击动画资源

添加Yee角色的跑动、冲刺和攻击ABC动画的图片资源,包括对应的导入配置
创建Yee角色的基础脚本文件Yee.gd
调整Parrier特效的帧数和缩放逻辑
This commit is contained in:
2026-03-21 23:09:40 +08:00
parent cdf9544f1d
commit 70eea5c9de
166 changed files with 3578 additions and 21 deletions
+4 -4
View File
@@ -9,14 +9,14 @@ var maxBallCount: int = 3
var atk: float = 0
func spawn():
var varians = randi_range(0, 1)
var inverts = []
var varians = randi_range(0, 2)
var inverts = [2]
var frames = load("res://resources/effects/parrier/%d/%d.tres" % [varians, varians])
var eff = EffectController.create(ComponentManager.getEffect("Parrier"), position)
eff.rotation = rotation
eff.scale.y *= MathTool.randomChoiceFrom([-1, 1])
eff.texture.scale.y *= MathTool.randomChoiceFrom([-1, 1])
if varians in inverts:
eff.scale.x *= -1
eff.texture.scale.x *= -1
eff.texture.sprite_frames = frames
eff.shot()
func hitBullet(bullet: BulletBase): # 当前子弹与其他子弹相撞
+2
View File
@@ -0,0 +1,2 @@
extends EntityBase
class_name Yee
+1
View File
@@ -0,0 +1 @@
uid://33s66nngyjbj