New base menu template
This commit is contained in:
parent
545da7be1f
commit
f2cff37a22
12 changed files with 185 additions and 16 deletions
|
|
@ -15,6 +15,11 @@ var expected_rotation: float = 0.0:
|
|||
expected_rotation = value
|
||||
|
||||
func _physics_process(_delta) -> void:
|
||||
if ship.selected_node is Base:
|
||||
if Input.is_action_just_released("dock"):
|
||||
ship.selected_node.dock_requested.emit()
|
||||
if ship.selected_node.dock_state == Base.DockState.Busy:
|
||||
return
|
||||
ship.engine.acceleration_axis = Input.get_axis("deccelerate", "accelerate")
|
||||
ship.engine.rotation_axis = Input.get_axis("rotateleft", "rotateright")
|
||||
for weapon in ship.weapons.list:
|
||||
|
|
@ -29,5 +34,3 @@ func _physics_process(_delta) -> void:
|
|||
weapon.gun_rotation = expected_rotation
|
||||
if Input.is_action_just_released("select_target"):
|
||||
ship.selected_node = star_system.targeted_node
|
||||
if ship.selected_node is Base and Input.is_action_just_released("dock"):
|
||||
ship.selected_node.dock_requested.emit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue