Added aiming for tesla

This commit is contained in:
2025-11-12 22:14:50 +03:00
parent 146a31dea5
commit 6d5bae3a64
13 changed files with 92 additions and 17 deletions
+3 -3
View File
@@ -19,9 +19,9 @@ const ENEMY_PROJECTILE_LAYER = 16
var direction : Vector2
var ship_velocity: Vector2
var collide_player: bool:
var collide_players: bool:
set(value):
collide_player = value
collide_players = value
_apply_collision_mask()
var collide_enemies: bool:
@@ -45,7 +45,7 @@ func _physics_process(delta: float) -> void:
func _apply_collision_mask() -> void:
if collide_player:
if collide_players:
collision_layer |= ENEMY_PROJECTILE_LAYER
collision_mask |= PLAYER_LAYER
else: