1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
[gd_scene load_steps=5 format=2] [ext_resource path="res://sprites/handle.png" type="Texture" id=1] [ext_resource path="res://sprites/touchbg.png" type="Texture" id=2] [ext_resource path="res://ui/scripts/Joystick.gd" type="Script" id=4] [sub_resource type="CircleShape2D" id=1] radius = 20.0 [node name="TouchButton" type="TouchScreenButton"] self_modulate = Color( 1, 1, 1, 0.588235 ) position = Vector2( 10, 115 ) scale = Vector2( 0.302198, 0.302198 ) normal = ExtResource( 2 ) shape = SubResource( 1 ) shape_visible = false passby_press = true script = ExtResource( 4 ) __meta__ = { "_edit_group_": true } [node name="Handle" type="Sprite" parent="."] unique_name_in_owner = true position = Vector2( 87.2464, 84.7536 ) scale = Vector2( 0.705991, 0.705991 ) texture = ExtResource( 1 )