Skip to content

Commit 0562921

Browse files
authored
Merge pull request #16 from endlessm/push-vrmwwrlmkxrx
hud: Invert touch screen buttons when pressed
2 parents 5a3ff83 + 973c526 commit 0562921

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

hud.tscn

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
[gd_scene load_steps=6 format=3 uid="uid://jt80gv02u4f2"]
1+
[gd_scene load_steps=9 format=3 uid="uid://jt80gv02u4f2"]
22

33
[ext_resource type="Script" path="res://scripts/hud.gd" id="1_8msyy"]
44
[ext_resource type="Texture2D" uid="uid://d3um1i1lgu153" path="res://assets/heart.png" id="2_yyptq"]
55
[ext_resource type="Texture2D" uid="uid://c6ic03u2yvnk6" path="res://assets/controls/flatLightLeft.png" id="3_cxgb6"]
6+
[ext_resource type="Texture2D" uid="uid://svp2vgo37htu" path="res://assets/controls/flatDarkLeft.png" id="4_w2trk"]
67
[ext_resource type="Texture2D" uid="uid://dsght3iwomray" path="res://assets/controls/flatLightRight.png" id="4_x1c4s"]
78
[ext_resource type="Texture2D" uid="uid://crocudarwwiec" path="res://assets/controls/flatLightA.png" id="5_p3p2e"]
9+
[ext_resource type="Texture2D" uid="uid://cwxk6km6rqwl3" path="res://assets/controls/flatDarkRight.png" id="6_u38dk"]
10+
[ext_resource type="Texture2D" uid="uid://vujn5y4v732w" path="res://assets/controls/flatDarkA.png" id="8_me7no"]
811

912
[node name="HUD" type="CanvasLayer"]
1013
script = ExtResource("1_8msyy")
@@ -103,28 +106,34 @@ expand_mode = 1
103106
stretch_mode = 1
104107

105108
[node name="MovePlayerLeft" type="TouchScreenButton" parent="."]
109+
modulate = Color(1, 1, 1, 0.74902)
106110
texture_filter = 1
107111
position = Vector2(80, 845)
108112
scale = Vector2(2.3, 2.3)
109113
texture_normal = ExtResource("3_cxgb6")
114+
texture_pressed = ExtResource("4_w2trk")
110115
passby_press = true
111116
action = "player_1_left"
112117
visibility_mode = 1
113118

114119
[node name="MovePlayerRight" type="TouchScreenButton" parent="."]
120+
modulate = Color(1, 1, 1, 0.74902)
115121
texture_filter = 1
116122
position = Vector2(400, 845)
117123
scale = Vector2(2.3, 2.3)
118124
texture_normal = ExtResource("4_x1c4s")
125+
texture_pressed = ExtResource("6_u38dk")
119126
passby_press = true
120127
action = "player_1_right"
121128
visibility_mode = 1
122129

123130
[node name="Jump" type="TouchScreenButton" parent="."]
131+
modulate = Color(1, 1, 1, 0.74902)
124132
texture_filter = 1
125133
position = Vector2(1695, 845)
126134
scale = Vector2(2.3, 2.3)
127135
texture_normal = ExtResource("5_p3p2e")
136+
texture_pressed = ExtResource("8_me7no")
128137
passby_press = true
129138
action = "player_1_jump"
130139
visibility_mode = 1

0 commit comments

Comments
 (0)