tp work and first steep for menu
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user