Rewriting ships: Added shields and weapons holder
This commit is contained in:
parent
e2b9fa6c69
commit
95274d0a5b
17 changed files with 396 additions and 24 deletions
|
|
@ -3,6 +3,6 @@ extends Node2D
|
|||
## Shortcut to get_parent()
|
||||
@onready var ship: Ship = get_parent()
|
||||
|
||||
func _physics_process(_delta):
|
||||
func _physics_process(_delta) -> void:
|
||||
ship.engine.acceleration_axis = Input.get_axis("deccelerate", "accelerate")
|
||||
ship.engine.rotation_axis = Input.get_axis("rotateleft", "rotateright")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue