Commit eb081515 authored by Gerard Gascón's avatar Gerard Gascón
Browse files

feat: instantiate dragon with drag and drop

parent 610d6236
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -12,6 +12,11 @@ func _ready() -> void:
	set_process_input(true)


func initial_drag():
	dragging_start_position = get_global_mouse_position()
	dragging = true


func _input(event) -> void:
	if event is not InputEventMouseButton:
		return
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ func on_place_back() -> void:


func _ready() -> void:
	_pick_random_screen_position()
	draggable.initial_drag()


func _process(delta: float) -> void: