1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-07 04:07:13 +08:00

fix: 调整子弹偏移值并优化齿轮子弹逻辑

调整EntityBase中子弹偏移值从3改为5
在Cogwheel.gd中添加spawn函数并优化减速逻辑
在Rooster.gd中修复chargeStartTime变量位置并添加测试用额外子弹数
This commit is contained in:
2026-02-16 17:57:57 +08:00
parent 1e4ab28b75
commit df1f837195
3 changed files with 8 additions and 2 deletions
+4
View File
@@ -6,6 +6,8 @@ var rotateSpeed: float = 0
var dotTime: float = 0
var slow: float = 0.2
func spawn():
slow *= initialRotate / 15.0
func ai():
PresetBulletAI.forward(self, rotation)
texture.rotation_degrees += rotateSpeed
@@ -16,6 +18,8 @@ func ai():
tryDestroy()
else:
speed = initialSpeed * (rotateSpeed / initialRotate)
if rotateSpeed >= 0 and rotateSpeed / slow <= 0:
slow *= 2
dotTime = 1000 / (rotateSpeed)
rotateSpeed -= slow
func applyDot():