13 lines
344 B
GDScript3
13 lines
344 B
GDScript3
|
extends Control
|
||
|
|
||
|
onready var scene = $"/root/scene" as GameInstance
|
||
|
|
||
|
func _ready():
|
||
|
pass
|
||
|
|
||
|
func _ship_velocity_changed(value):
|
||
|
scene.process_command(UICommand.new(UICommand.CommandType.SetShipSpeed, [value]))
|
||
|
|
||
|
func _ship_direction_changed(value):
|
||
|
scene.process_command(UICommand.new(UICommand.CommandType.SetShipDirection, [deg2rad(value)]))
|