mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-31 00:11:54 +08:00
10 lines
224 B
GDScript
10 lines
224 B
GDScript
|
|
extends BulletBase
|
||
|
|
class_name PipeBullet
|
||
|
|
|
||
|
|
var energy: float = 0
|
||
|
|
|
||
|
|
func ai():
|
||
|
|
PresetBulletAI.forward(self, rotation)
|
||
|
|
texture.rotation += energy * (1 - lifeTimePercent()) / 100
|
||
|
|
speed = initialSpeed * (1 - lifeTimePercent())
|