Touch interface and screen size fixes

This commit is contained in:
Stephen Seo 2023-12-21 17:43:45 +09:00
parent c93d94c7ea
commit 52081f876f
3 changed files with 27 additions and 20 deletions

View file

@ -8,7 +8,7 @@ custom_features=""
export_filter="all_resources" export_filter="all_resources"
include_filter="" include_filter=""
exclude_filter="" exclude_filter=""
export_path="html_export/ld54.html" export_path="./ld54_html_export/ld54.html"
encryption_include_filters="" encryption_include_filters=""
encryption_exclude_filters="" encryption_exclude_filters=""
encrypt_pck=false encrypt_pck=false

View file

@ -14,6 +14,8 @@ colors = PackedColorArray(1, 1, 1, 0.454902, 1, 1, 1, 0)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_iin72"] [sub_resource type="GradientTexture2D" id="GradientTexture2D_iin72"]
gradient = SubResource("Gradient_v7mm3") gradient = SubResource("Gradient_v7mm3")
width = 128
height = 128
fill = 1 fill = 1
fill_from = Vector2(0.5, 0.5) fill_from = Vector2(0.5, 0.5)
fill_to = Vector2(1, 0.5) fill_to = Vector2(1, 0.5)
@ -32,39 +34,39 @@ scale = Vector2(40, 40)
texture = SubResource("CanvasTexture_ruce8") texture = SubResource("CanvasTexture_ruce8")
[node name="JumpTouchButton" type="TouchScreenButton" parent="."] [node name="JumpTouchButton" type="TouchScreenButton" parent="."]
position = Vector2(-32.9999, -95) position = Vector2(-64, -159)
texture_normal = SubResource("GradientTexture2D_iin72") texture_normal = SubResource("GradientTexture2D_iin72")
action = "jump" action = "jump"
[node name="Label" type="Label" parent="JumpTouchButton"] [node name="Label" type="Label" parent="JumpTouchButton"]
offset_left = 12.0 offset_left = 42.0
offset_top = 19.0 offset_top = 52.0
offset_right = 53.0 offset_right = 83.0
offset_bottom = 42.0 offset_bottom = 75.0
text = "Jump" text = "Jump"
[node name="RightTouchButton" type="TouchScreenButton" parent="."] [node name="RightTouchButton" type="TouchScreenButton" parent="."]
position = Vector2(40, -30) position = Vector2(53, -60)
texture_normal = SubResource("GradientTexture2D_iin72") texture_normal = SubResource("GradientTexture2D_iin72")
action = "right" action = "right"
[node name="Label" type="Label" parent="RightTouchButton"] [node name="Label" type="Label" parent="RightTouchButton"]
offset_left = 12.0 offset_left = 43.0
offset_top = 19.0 offset_top = 53.0
offset_right = 53.0 offset_right = 84.0
offset_bottom = 42.0 offset_bottom = 76.0
text = "Right" text = "Right"
[node name="LeftTouchButton" type="TouchScreenButton" parent="."] [node name="LeftTouchButton" type="TouchScreenButton" parent="."]
position = Vector2(-103, -30) position = Vector2(-184, -60)
texture_normal = SubResource("GradientTexture2D_iin72") texture_normal = SubResource("GradientTexture2D_iin72")
action = "left" action = "left"
[node name="Label" type="Label" parent="LeftTouchButton"] [node name="Label" type="Label" parent="LeftTouchButton"]
offset_left = 18.0 offset_left = 47.0
offset_top = 20.0 offset_top = 53.0
offset_right = 59.0 offset_right = 88.0
offset_bottom = 43.0 offset_bottom = 76.0
text = "Left" text = "Left"
[node name="Camera2D" type="Camera2D" parent="."] [node name="Camera2D" type="Camera2D" parent="."]
@ -88,8 +90,8 @@ stream = ExtResource("2_ix2ut")
stream = ExtResource("3_gq63f") stream = ExtResource("3_gq63f")
[node name="GameTitleText" type="RichTextLabel" parent="."] [node name="GameTitleText" type="RichTextLabel" parent="."]
offset_left = -138.0 offset_left = -229.0
offset_top = 46.0 offset_top = 18.0
offset_right = 335.0 offset_right = 244.0
offset_bottom = 286.0 offset_bottom = 258.0
scroll_active = false scroll_active = false

View file

@ -15,6 +15,11 @@ run/main_scene="res://boxedSpace.tscn"
config/features=PackedStringArray("4.2", "GL Compatibility") config/features=PackedStringArray("4.2", "GL Compatibility")
config/icon="res://icon.svg" config/icon="res://icon.svg"
[display]
window/size/viewport_width=500
window/size/viewport_height=500
[input] [input]
jump={ jump={