Removed shoot() from controllers. Removed idle animation from laser

This commit is contained in:
2025-12-19 15:18:50 +03:00
parent 6fdc3dc894
commit 7bdace27a8
8 changed files with 26 additions and 105 deletions
-3
View File
@@ -3,7 +3,6 @@ extends Node
signal accelerate(direction: Vector2, delta: float)
signal shoot()
const FREE_FLIGHT_DIST = 50
@@ -17,8 +16,6 @@ var direction : Vector2
func _physics_process(delta: float) -> void:
if ship.is_on_screen:
shoot.emit()
accelerate.emit(direction, delta)
-3
View File
@@ -4,15 +4,12 @@ extends Node
signal accelerate(direction: Vector2, delta: float)
signal shoot()
signal blink(direction: Vector2)
func _physics_process(delta: float) -> void:
var input_direction := _get_input_direction()
accelerate.emit(input_direction, delta)
shoot.emit()
func _input(event: InputEvent) -> void: