1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-30 07:51:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/BossAttack/Bear/ForeverRainbow.gd
T
fallingshrimp 566531c856 feat: 调整角色和子弹属性及游戏平衡
- 隐藏Bear角色的mask
- 提高Bear和KukeMC子弹的伤害值
- 增加KukeMC的最大生命值
- 设置World场景的currentInvinsible为true
- 调整KukeChild的攻击冷却时间和存活时间
- 为HeavyCrystal子弹添加初始伤害值
2025-09-18 22:50:17 +08:00

22 lines
435 B
GDScript

extends BulletBase
@export var allColor: GradientTexture1D = null
var myColor: Color
func register():
damage = 15
penerate = 1
func spawn():
myColor = allColor.gradient.sample(randf())
setColor(myColor)
func ai():
speed = (11000 - timeLived()) / 11000 * initialSpeed
rotation_degrees += speed / 10
PresetBulletAI.forward(self, rotation)
func setColor(color: Color):
texture.self_modulate = color
texture.modulate.v *= 10