Added touchscreen controls!
This commit is contained in:
20
src/scenes/test.tscn
Normal file
20
src/scenes/test.tscn
Normal file
@@ -0,0 +1,20 @@
|
||||
[gd_scene format=3 uid="uid://o8cbi1whsbo0"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dhn1uax7qtt1v" path="res://addons/virtual_joystick/virtual_joystick.gd" id="1_iyx0m"]
|
||||
[ext_resource type="Texture2D" uid="uid://01qhightlcso" path="res://addons/virtual_joystick/resources/textures/joystick_texture_5.png" id="2_74lek"]
|
||||
[ext_resource type="Texture2D" uid="uid://dywm4x5vqdtsm" path="res://addons/virtual_joystick/resources/textures/stick_texture_5.png" id="3_j5jx5"]
|
||||
|
||||
[node name="Test" type="Node2D" unique_id=459289533]
|
||||
|
||||
[node name="VirtualJoystick" type="Control" parent="." unique_id=322625393]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_left = 391.0
|
||||
offset_top = 172.0
|
||||
offset_right = 611.0
|
||||
offset_bottom = 392.0
|
||||
pivot_offset = Vector2(110, 110)
|
||||
script = ExtResource("1_iyx0m")
|
||||
joystick_texture = ExtResource("2_74lek")
|
||||
stick_texture = ExtResource("3_j5jx5")
|
||||
metadata/_custom_type_script = "uid://dhn1uax7qtt1v"
|
||||
Reference in New Issue
Block a user