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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
[gd_scene load_steps=8 format=3 uid="uid://cciwccvljuuyq"]
[ext_resource type="PackedScene" uid="uid://dwl0fylftkrn7" path="res://touch_screen_button.tscn" id="1_e48dh"]
[ext_resource type="Texture2D" uid="uid://80qwkqluar71" path="res://assets.bak/kenney_1-bit-input-prompts-pixel-16/Tiles (White)/tile_0758.png" id="2_e48dh"]
[ext_resource type="Texture2D" uid="uid://dcmysr8ayphbq" path="res://assets.bak/kenney_1-bit-input-prompts-pixel-16/Tiles (White)/tile_0760.png" id="3_e48dh"]
[ext_resource type="Texture2D" uid="uid://dubf0an7e4r8q" path="res://assets.bak/kenney_1-bit-input-prompts-pixel-16/Tiles (White)/tile_0757.png" id="4_e48dh"]
[ext_resource type="Texture2D" uid="uid://jc43kdg6konu" path="res://assets.bak/kenney_1-bit-input-prompts-pixel-16/Tiles (White)/tile_0769.png" id="5_e48dh"]
[sub_resource type="GDScript" id="GDScript_e48dh"]
script/source = "extends CanvasLayer
@export var visible_on_desktop: bool
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
if not DisplayServer.is_touchscreen_available():
visible = visible_on_desktop
"
[sub_resource type="RectangleShape2D" id="RectangleShape2D_k6i1l"]
size = Vector2(40, 26)
[node name="TouchScreenUI" type="CanvasLayer"]
script = SubResource("GDScript_e48dh")
[node name="TouchScreenButtonRight" parent="." groups=["ui_movement"] instance=ExtResource("1_e48dh")]
position = Vector2(60, 88)
action = "move_right"
texture = ExtResource("2_e48dh")
inactive_color = Color(0.54509807, 0.6666667, 1, 0.5019608)
active_color = Color(0, 0.77254903, 0.7764706, 0.5019608)
[node name="TouchScreenButtonLeft" parent="." groups=["ui_movement"] instance=ExtResource("1_e48dh")]
position = Vector2(20, 88)
action = "move_left"
texture = ExtResource("3_e48dh")
inactive_color = Color(0.54509807, 0.6666667, 1, 0.5019608)
active_color = Color(0, 0.77254903, 0.7764706, 0.5019608)
[node name="TouchScreenButtonJump" parent="." groups=["ui_movement"] instance=ExtResource("1_e48dh")]
position = Vector2(172, 88)
action = "jump"
texture = ExtResource("4_e48dh")
inactive_color = Color(0.54509807, 0.6666667, 1, 0.5019608)
active_color = Color(0, 0.77254903, 0.7764706, 0.5019608)
[node name="TouchScreenButtonMenu" parent="." groups=["ui_menu"] instance=ExtResource("1_e48dh")]
position = Vector2(172, 13)
shape = SubResource("RectangleShape2D_k6i1l")
action = "menu"
texture = ExtResource("5_e48dh")
inactive_color = Color(0.54509807, 0.6666667, 1, 0.5019608)
active_color = Color(0, 0.77254903, 0.7764706, 0.5019608)
|