1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-11 14:17:13 +08:00

feat: 添加炸弹效果和着色器,创建新的Bomb效果和相关资源

This commit is contained in:
2025-08-27 14:55:34 +08:00
parent 28b86e8b1e
commit 9127692146
11 changed files with 86 additions and 16 deletions
+1 -1
View File
@@ -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
+6
View File
@@ -1 +1,7 @@
extends BulletBase
func spawn():
await TickTool.millseconds(1000)
hitbox.disabled = false
func ai():
texture.global_rotation = 0
+2 -1
View File
@@ -19,7 +19,8 @@ func ai():
func attack(type):
if type == 0:
var weaponPos = findWeaponAnchor("normal")
return BulletBase.generate(preload("res://components/Bullets/PurpleCrystal.tscn"), self, weaponPos, (get_global_mouse_position() - weaponPos).angle())
return BulletBase.generate(preload("res://components/Bullets/Pencil.tscn"), self, weaponPos, (get_global_mouse_position() - weaponPos).angle())
# return BulletBase.generate(preload("res://components/Bullets/PurpleCrystal.tscn"), self, weaponPos, (get_global_mouse_position() - weaponPos).angle())
func sprint():
move(Vector2(
Input.get_axis("m_left", "m_right"),