mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
73adc34aef
- 为LGBTFlag添加500点最大生命值 - 调整NuclearBomb的旋转逻辑和AcidBulletBase的移动行为 - 重写WhiteSoul子弹逻辑,增加随机大小和速度 - 修改Oxygener武器,允许使用能量替代篮球消耗 - 更新多个场景文件,优化属性和描述
17 lines
382 B
GDScript
17 lines
382 B
GDScript
extends BulletBase
|
|
class_name WhiteSoulBullet
|
|
|
|
var floorPos: Vector2
|
|
|
|
func spawn():
|
|
hitbox.disabled = true
|
|
scale *= randf_range(0.7, 1.3)
|
|
speed *= randf_range(0.85, 1.15)
|
|
func ai():
|
|
scale += Vector2.ONE * 0.005
|
|
PresetBulletAI.forward(self , rotation)
|
|
if position.distance_to(floorPos) < 50:
|
|
tryDestroy()
|
|
elif position.distance_to(floorPos) < 100:
|
|
hitbox.disabled = false
|