tp work and first steep for menu

This commit is contained in:
2025-09-07 16:05:59 +02:00
parent 6e599c8f1c
commit 2dfa874181
11 changed files with 4991 additions and 48 deletions

View File

@@ -1,5 +1,7 @@
extends CharacterBody2D
class_name Ship
@export var MAX_SPEED: float = 200
@export var SHOOT_NODE: PackedScene
@@ -11,6 +13,7 @@ var horizontal : float
var vertical : float
var rota_temp: float
var delay := 0.0
var is_in = true
func _input(event):
pass
@@ -47,5 +50,5 @@ func _physics_process(delta: float) -> void:
func shoot()->void:
var new = SHOOT_NODE.instantiate()
new.direction = direction
new.position = position + (18 * direction.normalized())
new.position = position + (32 * direction.normalized())
get_parent().add_child(new)