mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-08 04:37:13 +08:00
feat: 添加炸弹效果和着色器,创建新的Bomb效果和相关资源
This commit is contained in:
@@ -2,7 +2,7 @@ extends BulletBase
|
||||
class_name Diamond
|
||||
|
||||
func ai():
|
||||
var tracing = Time.get_ticks_msec() - spawnInWhen < 1000
|
||||
var tracing = timeLived() < 1000
|
||||
if tracing:
|
||||
rotation = lerp_angle(rotation, position.angle_to_point(launcher.currentFocusedBoss.position), 0.1)
|
||||
canDamageSelf = !tracing
|
||||
|
||||
@@ -1 +1,7 @@
|
||||
extends BulletBase
|
||||
|
||||
func spawn():
|
||||
await TickTool.millseconds(1000)
|
||||
hitbox.disabled = false
|
||||
func ai():
|
||||
texture.global_rotation = 0
|
||||
|
||||
Reference in New Issue
Block a user