add seperate scene for touch screens

This is the part where mobiles can
join in (ideally Android), but
you can fork this and make an
IOS version if you like. LOL
main
tihgs 2025-06-20 15:22:29 +08:00
parent 5fbe9d90ac
commit 3f87e60c76
Signed by: tihgs
GPG Key ID: 4E80959CDE5EDCA0
1 changed files with 28 additions and 0 deletions

28
touch.tscn 100644
View File

@ -0,0 +1,28 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://icon.png" type="Texture" id=1]
[node name="Node2D" type="Node2D"]
[node name="TouchScreenButton" type="TouchScreenButton" parent="."]
position = Vector2( 81, 317 )
normal = ExtResource( 1 )
action = "up"
[node name="TouchScreenButton2" type="TouchScreenButton" parent="."]
position = Vector2( 11, 455 )
rotation = -1.57079
normal = ExtResource( 1 )
action = "left"
[node name="TouchScreenButton4" type="TouchScreenButton" parent="."]
position = Vector2( 215, 392 )
rotation = 1.57079
normal = ExtResource( 1 )
action = "right"
[node name="TouchScreenButton3" type="TouchScreenButton" parent="."]
position = Vector2( 145, 524 )
rotation = -3.14159
normal = ExtResource( 1 )
action = "down"