This commit is contained in:
Redsandy
2026-01-18 20:56:24 +03:00
commit 7980e0add8
68 changed files with 1605294 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
extends Projectile
class_name StraightProjectile
# Прямой снаряд для стрельбы
func _ready():
super._ready()
# Устанавливаем скорость только горизонтально (параллельно земле)
var horizontal_dir = direction
horizontal_dir.y = 0
horizontal_dir = horizontal_dir.normalized()
velocity = horizontal_dir * speed