diff --git a/project.godot b/project.godot index fadbd16..140ad14 100644 --- a/project.godot +++ b/project.godot @@ -95,7 +95,7 @@ TouchScreen="*res://src/autoload/touch_screen.tscn" window/size/width=228 window/size/height=128 window/dpi/allow_hidpi=true -window/stretch/mode="2d" +window/stretch/mode="viewport" window/stretch/aspect="keep" [editor_plugins] diff --git a/src/menu/OptionsMenu.tscn b/src/menu/OptionsMenu.tscn index 457f695..bcd4599 100644 --- a/src/menu/OptionsMenu.tscn +++ b/src/menu/OptionsMenu.tscn @@ -171,73 +171,6 @@ func act(): pause_mode = 2 script = ExtResource( 3 ) -[node name="Buttons" type="Node2D" parent="."] -position = Vector2( 14, 0 ) - -[node name="c" type="Sprite" parent="Buttons"] -position = Vector2( 12, 12 ) -texture = ExtResource( 16 ) -hframes = 6 -vframes = 4 -region_rect = Rect2( 0, 0, 18, 18 ) - -[node name="c_label" type="Label" parent="Buttons/c"] -margin_left = 11.0 -margin_top = -6.0 -margin_right = 39.0 -margin_bottom = 7.0 -custom_colors/font_color = Color( 1, 0.945098, 0.909804, 1 ) -custom_colors/font_color_shadow = Color( 0, 0, 0, 1 ) -custom_constants/shadow_as_outline = 1 -custom_fonts/font = ExtResource( 6 ) -text = "back" -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="x" type="Sprite" parent="Buttons"] -position = Vector2( 12, 116 ) -texture = ExtResource( 16 ) -hframes = 6 -vframes = 4 -frame = 1 -region_rect = Rect2( 0, 0, 18, 18 ) - -[node name="x_label" type="Label" parent="Buttons/x"] -margin_left = 11.0 -margin_top = -7.0 -margin_right = 49.0 -margin_bottom = 6.0 -custom_colors/font_color = Color( 1, 0.945098, 0.909804, 1 ) -custom_colors/font_color_shadow = Color( 0, 0, 0, 1 ) -custom_constants/shadow_as_outline = 1 -custom_fonts/font = ExtResource( 6 ) -text = "select" -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="arrows" type="Sprite" parent="Buttons"] -position = Vector2( 216, 116 ) -texture = ExtResource( 16 ) -hframes = 6 -vframes = 4 -frame = 7 -region_rect = Rect2( 0, 0, 18, 18 ) - -[node name="arrows_label" type="Label" parent="Buttons/arrows"] -margin_left = -40.0 -margin_top = -7.0 -margin_right = -10.0 -margin_bottom = 6.0 -custom_colors/font_color_shadow = Color( 0, 0, 0, 1 ) -custom_constants/shadow_as_outline = 1 -custom_fonts/font = ExtResource( 6 ) -text = "move" -__meta__ = { -"_edit_use_anchors_": false -} - [node name="Cursor" type="ColorRect" parent="."] margin_left = 56.0 margin_top = 23.0 @@ -753,4 +686,71 @@ z_index = -11 [node name="GameCamera" parent="Stage" instance=ExtResource( 13 )] position = Vector2( 128, 64 ) +[node name="Buttons" type="Node2D" parent="."] +position = Vector2( 14, 0 ) + +[node name="c" type="Sprite" parent="Buttons"] +position = Vector2( 12, 12 ) +texture = ExtResource( 16 ) +hframes = 6 +vframes = 4 +region_rect = Rect2( 0, 0, 18, 18 ) + +[node name="c_label" type="Label" parent="Buttons/c"] +margin_left = 11.0 +margin_top = -6.0 +margin_right = 39.0 +margin_bottom = 7.0 +custom_colors/font_color = Color( 1, 0.945098, 0.909804, 1 ) +custom_colors/font_color_shadow = Color( 0, 0, 0, 1 ) +custom_constants/shadow_as_outline = 1 +custom_fonts/font = ExtResource( 6 ) +text = "back" +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="x" type="Sprite" parent="Buttons"] +position = Vector2( 12, 116 ) +texture = ExtResource( 16 ) +hframes = 6 +vframes = 4 +frame = 1 +region_rect = Rect2( 0, 0, 18, 18 ) + +[node name="x_label" type="Label" parent="Buttons/x"] +margin_left = 11.0 +margin_top = -7.0 +margin_right = 49.0 +margin_bottom = 6.0 +custom_colors/font_color = Color( 1, 0.945098, 0.909804, 1 ) +custom_colors/font_color_shadow = Color( 0, 0, 0, 1 ) +custom_constants/shadow_as_outline = 1 +custom_fonts/font = ExtResource( 6 ) +text = "select" +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="arrows" type="Sprite" parent="Buttons"] +position = Vector2( 216, 116 ) +texture = ExtResource( 16 ) +hframes = 6 +vframes = 4 +frame = 7 +region_rect = Rect2( 0, 0, 18, 18 ) + +[node name="arrows_label" type="Label" parent="Buttons/arrows"] +margin_left = -40.0 +margin_top = -7.0 +margin_right = -10.0 +margin_bottom = 6.0 +custom_colors/font_color_shadow = Color( 0, 0, 0, 1 ) +custom_constants/shadow_as_outline = 1 +custom_fonts/font = ExtResource( 6 ) +text = "move" +__meta__ = { +"_edit_use_anchors_": false +} + [editable path="Stage/GameCamera"]