mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-31 00:11:54 +08:00
65eb69fb9c
将熊boss的各种攻击方式的伤害值从4/1.5/3/2统一调整为1,以平衡游戏难度
22 lines
434 B
GDScript
22 lines
434 B
GDScript
extends BulletBase
|
|
|
|
@export var allColor: GradientTexture1D = null
|
|
|
|
var myColor: Color
|
|
|
|
func register():
|
|
damage = 1
|
|
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
|