fix some bug and new export

This commit is contained in:
2025-09-09 23:52:08 +02:00
parent c0bf7b0fb8
commit 09c0dfe072
24 changed files with 261 additions and 49 deletions

View File

@@ -35,8 +35,8 @@ func _physics_process(delta: float) -> void:
else:
animation.play("RESET")
if ! player_2:
horizontal = Input.get_axis("ui_up", "ui_down")
vertical = Input.get_axis("ui_left", "ui_right")
horizontal = Input.get_axis("up", "down")
vertical = Input.get_axis("left", "right")
else:
horizontal = Input.get_axis("up_player_2", "down_player_2")
vertical = Input.get_axis("left_player_2", "right_player_2")
@@ -65,6 +65,7 @@ func _physics_process(delta: float) -> void:
func shoot()->void:
$AudioStreamPlayer.play()
var new = SHOOT_NODE.instantiate()
new.direction = (target.global_position - global_position).normalized()
new.position = target.global_position
@@ -76,4 +77,5 @@ func is_inv() -> bool:
func start_inv(type : bool)->void:
if type == player_2 :
$AudioStreamPlayer2.play()
delay_inv = 0.0