31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
[gd_scene load_steps=4 format=3 uid="uid://bq2sqb1u1l5ve"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://dmr0fcamx7t56" path="res://joystick/virtual_joystick.tscn" id="1_4k4lh"]
|
|
[ext_resource type="Texture2D" uid="uid://b4jy3cynf4voa" path="res://icon.svg" id="2_44wa8"]
|
|
[ext_resource type="Script" uid="uid://d275dly1codtn" path="res://test/player.gd" id="3_dsmxw"]
|
|
|
|
[node name="Test" type="Node2D"]
|
|
|
|
[node name="UI" type="CanvasLayer" parent="."]
|
|
|
|
[node name="Virtual joystick left" parent="UI" instance=ExtResource("1_4k4lh")]
|
|
|
|
[node name="Virtual joystick right" parent="UI" instance=ExtResource("1_4k4lh")]
|
|
anchors_preset = 3
|
|
anchor_left = 1.0
|
|
anchor_right = 1.0
|
|
offset_left = -300.0
|
|
offset_top = -300.0
|
|
offset_right = 0.0
|
|
offset_bottom = 0.0
|
|
grow_horizontal = 0
|
|
joystick_mode = 1
|
|
use_input_actions = false
|
|
|
|
[node name="Player" type="Sprite2D" parent="." node_paths=PackedStringArray("joystick_left", "joystick_right")]
|
|
position = Vector2(600, 300)
|
|
texture = ExtResource("2_44wa8")
|
|
script = ExtResource("3_dsmxw")
|
|
joystick_left = NodePath("../UI/Virtual joystick left")
|
|
joystick_right = NodePath("../UI/Virtual joystick right")
|