1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +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():
+3 -1
View File
@@ -1,6 +1,7 @@
extends EntityBase
class_name Rooster
var chargeStartTime = {}
@onready var chargeParticle: GPUParticles2D = $%chargeParticle
func register():
@@ -14,7 +15,8 @@ func register():
EffectController.create(ComponentManager.getEffect("BloodFall"), texture.global_position).shot()
)
chargeParticle.emitting = false
var chargeStartTime = {}
if !WorldManager.isRelease():
fields[FieldStore.Entity.EXTRA_BULLET_COUNT] = 3
func ai():
texture.play("walk")
+1 -1
View File
@@ -29,7 +29,7 @@ var fields = {
FieldStore.Entity.ENERGY_REGENERATION: 1,
FieldStore.Entity.PERFECT_MISS_WINDOW: 0.05,
"子弹": TITLE_FLAG,
FieldStore.Entity.OFFSET_SHOOT: 3,
FieldStore.Entity.OFFSET_SHOOT: 5,
FieldStore.Entity.PENERATE: 0,
FieldStore.Entity.EXTRA_BULLET_COUNT: 0,
FieldStore.Entity.BULLET_SPLIT: 0,