-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding three buttons for touch screen uing control ui node and a few …
…button nodes
- Loading branch information
1 parent
03c5535
commit f2b3c4b
Showing
3 changed files
with
35 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[gd_scene load_steps=4 format=3 uid="uid://dhu8h331t4p0o"] | ||
|
||
[ext_resource type="Texture2D" uid="uid://dnq46nmf2skjg" path="res://assets/Touchscreen Controls/kenney_onscreen-controls/Sprites/flat-light/flatLight22.png" id="1_o68br"] | ||
[ext_resource type="Texture2D" uid="uid://dsght3iwomray" path="res://assets/Touchscreen Controls/kenney_onscreen-controls/Sprites/flat-light/flatLight23.png" id="2_d4mmb"] | ||
[ext_resource type="Texture2D" uid="uid://crocudarwwiec" path="res://assets/Touchscreen Controls/kenney_onscreen-controls/Sprites/flat-light/flatLight34.png" id="3_mqvem"] | ||
|
||
[node name="TouchScreenControls" type="Control"] | ||
layout_mode = 3 | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
grow_horizontal = 2 | ||
grow_vertical = 2 | ||
|
||
[node name="MovePlayerLeft" type="TouchScreenButton" parent="."] | ||
position = Vector2(79.4, 844.84) | ||
scale = Vector2(2, 1.964) | ||
texture_normal = ExtResource("1_o68br") | ||
action = "player_1_left" | ||
|
||
[node name="MovePlayerRight" type="TouchScreenButton" parent="."] | ||
position = Vector2(342.16, 844.84) | ||
scale = Vector2(2, 2) | ||
texture_normal = ExtResource("2_d4mmb") | ||
action = "player_1_right" | ||
|
||
[node name="Jump" type="TouchScreenButton" parent="."] | ||
position = Vector2(1695, 837) | ||
scale = Vector2(2, 2) | ||
texture_normal = ExtResource("3_mqvem") | ||
action = "player_1_jump" |