Skip to content

Commit 87b244e

Browse files
committed
WIP: Show teleport action in HUD
This adds the keys to the hint that shows at the start of the game; and also adds B to the on-screen controls for touch devices. It's a little weird to do this when they don't do anything by default…! TODO: - Icons for other actions - Should these be hidden by default? Behind a "show special abilities" toggle on the HUD scene?
1 parent 0adfce0 commit 87b244e

7 files changed

Lines changed: 166 additions & 1 deletion
Lines changed: 6 additions & 0 deletions
Loading
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://2md8403i1nur"
6+
path="res://.godot/imported/keyboard_enter.svg-2eb1111f25b217f23845e3f676cf33a7.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://assets/input-prompts/keyboard_enter.svg"
14+
dest_files=["res://.godot/imported/keyboard_enter.svg-2eb1111f25b217f23845e3f676cf33a7.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/hdr_compression=1
22+
compress/normal_map=0
23+
compress/channel_pack=0
24+
mipmaps/generate=false
25+
mipmaps/limit=-1
26+
roughness/mode=0
27+
roughness/src_normal=""
28+
process/fix_alpha_border=true
29+
process/premult_alpha=false
30+
process/normal_map_invert_y=false
31+
process/hdr_as_srgb=false
32+
process/hdr_clamp_exposure=false
33+
process/size_limit=0
34+
detect_3d/compress_to=1
35+
svg/scale=1.0
36+
editor/scale_with_editor_scale=false
37+
editor/convert_colors_with_editor_theme=false
Lines changed: 6 additions & 0 deletions
Loading
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://bygt7be14ermy"
6+
path="res://.godot/imported/keyboard_shift_icon.svg-d578916980e0abae9be8777e69226eec.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://assets/input-prompts/keyboard_shift_icon.svg"
14+
dest_files=["res://.godot/imported/keyboard_shift_icon.svg-d578916980e0abae9be8777e69226eec.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/hdr_compression=1
22+
compress/normal_map=0
23+
compress/channel_pack=0
24+
mipmaps/generate=false
25+
mipmaps/limit=-1
26+
roughness/mode=0
27+
roughness/src_normal=""
28+
process/fix_alpha_border=true
29+
process/premult_alpha=false
30+
process/normal_map_invert_y=false
31+
process/hdr_as_srgb=false
32+
process/hdr_clamp_exposure=false
33+
process/size_limit=0
34+
detect_3d/compress_to=1
35+
svg/scale=1.0
36+
editor/scale_with_editor_scale=false
37+
editor/convert_colors_with_editor_theme=false
Lines changed: 6 additions & 0 deletions
Loading
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://cspctp01eg3gj"
6+
path="res://.godot/imported/steamdeck_button_b.svg-a0f7cfab5f4e46dee483b7aa47a7629b.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://assets/input-prompts/steamdeck_button_b.svg"
14+
dest_files=["res://.godot/imported/steamdeck_button_b.svg-a0f7cfab5f4e46dee483b7aa47a7629b.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/hdr_compression=1
22+
compress/normal_map=0
23+
compress/channel_pack=0
24+
mipmaps/generate=false
25+
mipmaps/limit=-1
26+
roughness/mode=0
27+
roughness/src_normal=""
28+
process/fix_alpha_border=true
29+
process/premult_alpha=false
30+
process/normal_map_invert_y=false
31+
process/hdr_as_srgb=false
32+
process/hdr_clamp_exposure=false
33+
process/size_limit=0
34+
detect_3d/compress_to=1
35+
svg/scale=1.0
36+
editor/scale_with_editor_scale=false
37+
editor/convert_colors_with_editor_theme=false

hud.tscn

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[gd_scene load_steps=20 format=3 uid="uid://jt80gv02u4f2"]
1+
[gd_scene load_steps=25 format=3 uid="uid://jt80gv02u4f2"]
22

33
[ext_resource type="Script" uid="uid://bi5370kgl6xcs" path="res://scripts/hud.gd" id="1_8msyy"]
44
[ext_resource type="Texture2D" uid="uid://bwt5tfdwi6444" path="res://assets/input-prompts/keyboard_arrow_left.svg" id="2_btdwd"]
@@ -8,6 +8,7 @@
88
[ext_resource type="Texture2D" uid="uid://ejrlpu5caxit" path="res://assets/input-prompts/keyboard_arrow_right.svg" id="4_pk5l0"]
99
[ext_resource type="Texture2D" uid="uid://svp2vgo37htu" path="res://assets/controls/flatDarkLeft.png" id="4_w2trk"]
1010
[ext_resource type="Texture2D" uid="uid://dsght3iwomray" path="res://assets/controls/flatLightRight.png" id="4_x1c4s"]
11+
[ext_resource type="Texture2D" uid="uid://cspctp01eg3gj" path="res://assets/input-prompts/steamdeck_button_b.svg" id="5_5iihh"]
1112
[ext_resource type="Texture2D" uid="uid://c0jvv7knv0gkx" path="res://assets/input-prompts/keyboard_a.svg" id="5_46xsx"]
1213
[ext_resource type="Texture2D" uid="uid://cw862nhkb5yck" path="res://assets/input-prompts/steamdeck_dpad_left.svg" id="5_dwb6l"]
1314
[ext_resource type="Texture2D" uid="uid://crocudarwwiec" path="res://assets/controls/flatLightA.png" id="5_p3p2e"]
@@ -16,7 +17,11 @@
1617
[ext_resource type="Texture2D" uid="uid://cwxk6km6rqwl3" path="res://assets/controls/flatDarkRight.png" id="6_u38dk"]
1718
[ext_resource type="Texture2D" uid="uid://cunoxrlkbl8f1" path="res://assets/input-prompts/steamdeck_button_a.svg" id="7_cae44"]
1819
[ext_resource type="Texture2D" uid="uid://djskjyoqjltro" path="res://assets/input-prompts/keyboard_d.svg" id="7_idqt6"]
20+
[ext_resource type="Texture2D" uid="uid://2md8403i1nur" path="res://assets/input-prompts/keyboard_enter.svg" id="8_bp16l"]
1921
[ext_resource type="Texture2D" uid="uid://vujn5y4v732w" path="res://assets/controls/flatDarkA.png" id="8_me7no"]
22+
[ext_resource type="Texture2D" uid="uid://bygt7be14ermy" path="res://assets/input-prompts/keyboard_shift_icon.svg" id="12_5iihh"]
23+
[ext_resource type="Texture2D" uid="uid://cqvf6pc6yekku" path="res://assets/controls/flatLightB.png" id="18_ap7yk"]
24+
[ext_resource type="Texture2D" uid="uid://csmnti2si6uth" path="res://assets/controls/flatDarkB.png" id="19_5kc73"]
2025

2126
[sub_resource type="Theme" id="Theme_0yvta"]
2227
default_font_size = 64
@@ -80,6 +85,11 @@ layout_mode = 2
8085
texture = ExtResource("6_gl61p")
8186
stretch_mode = 5
8287

88+
[node name="B" type="TextureRect" parent="Start/GridContainer/PlayerOne/PlayerOneJoypad"]
89+
layout_mode = 2
90+
texture = ExtResource("5_5iihh")
91+
stretch_mode = 5
92+
8393
[node name="PlayerOneKeyboard" type="HBoxContainer" parent="Start/GridContainer/PlayerOne"]
8494
unique_name_in_owner = true
8595
layout_mode = 2
@@ -100,6 +110,11 @@ layout_mode = 2
100110
texture = ExtResource("4_pk5l0")
101111
stretch_mode = 5
102112

113+
[node name="Enter" type="TextureRect" parent="Start/GridContainer/PlayerOne/PlayerOneKeyboard"]
114+
layout_mode = 2
115+
texture = ExtResource("8_bp16l")
116+
stretch_mode = 5
117+
103118
[node name="PlayerTwoCaption" type="Label" parent="Start/GridContainer"]
104119
layout_mode = 2
105120
text = "Player Two:"
@@ -131,6 +146,11 @@ layout_mode = 2
131146
texture = ExtResource("6_gl61p")
132147
stretch_mode = 5
133148

149+
[node name="B" type="TextureRect" parent="Start/GridContainer/PlayerTwo/PlayerTwoJoypad"]
150+
layout_mode = 2
151+
texture = ExtResource("5_5iihh")
152+
stretch_mode = 5
153+
134154
[node name="PlayerTwoKeyboard" type="HBoxContainer" parent="Start/GridContainer/PlayerTwo"]
135155
unique_name_in_owner = true
136156
layout_mode = 2
@@ -151,6 +171,11 @@ layout_mode = 2
151171
texture = ExtResource("7_idqt6")
152172
stretch_mode = 5
153173

174+
[node name="Shift" type="TextureRect" parent="Start/GridContainer/PlayerTwo/PlayerTwoKeyboard"]
175+
layout_mode = 2
176+
texture = ExtResource("12_5iihh")
177+
stretch_mode = 5
178+
154179
[node name="Label2" type="Label" parent="Start"]
155180
layout_mode = 2
156181
size_flags_horizontal = 4
@@ -257,3 +282,14 @@ texture_pressed = ExtResource("8_me7no")
257282
passby_press = true
258283
action = "player_1_jump"
259284
visibility_mode = 1
285+
286+
[node name="Special" type="TouchScreenButton" parent="."]
287+
modulate = Color(1, 1, 1, 0.74902)
288+
texture_filter = 1
289+
position = Vector2(1439, 845)
290+
scale = Vector2(2.3, 2.3)
291+
texture_normal = ExtResource("18_ap7yk")
292+
texture_pressed = ExtResource("19_5kc73")
293+
passby_press = true
294+
action = "player_1_jump"
295+
visibility_mode = 1

0 commit comments

Comments
 (0)