diff --git a/assets/bugged-racing-cover.png b/assets/bugged-racing-cover.png new file mode 100644 index 0000000..7bfae9b Binary files /dev/null and b/assets/bugged-racing-cover.png differ diff --git a/assets/bugged-racing-cover.png.import b/assets/bugged-racing-cover.png.import new file mode 100644 index 0000000..1f2016f --- /dev/null +++ b/assets/bugged-racing-cover.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/bugged-racing-cover.png-c3944339a70305f9e6894e4c340997dc.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/bugged-racing-cover.png" +dest_files=[ "res://.import/bugged-racing-cover.png-c3944339a70305f9e6894e4c340997dc.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/project.godot b/project.godot index 3d188d3..e36eaa2 100644 --- a/project.godot +++ b/project.godot @@ -22,8 +22,13 @@ _global_script_class_icons={ config/name="bugged-racing" run/main_scene="res://scenes/menu/main_menu.tscn" +boot_splash/image="res://assets/bugged-racing-cover.png" config/icon="res://icon.png" +[gui] + +theme/use_hidpi=true + [input] throttle={ diff --git a/scenes/menu/main_menu.gd b/scenes/menu/main_menu.gd index 18ed011..07f5139 100644 --- a/scenes/menu/main_menu.gd +++ b/scenes/menu/main_menu.gd @@ -1,5 +1,8 @@ extends Panel +func _ready() -> void: + $MarginContainer/VSplitContainer/CenterContainer/VBoxContainer/StartButton.grab_focus() + func _on_StartButton_pressed() -> void: get_tree().change_scene("res://scenes/menu/start_menu.tscn") diff --git a/scenes/menu/start_menu.gd b/scenes/menu/start_menu.gd index 0722ce9..f61b035 100644 --- a/scenes/menu/start_menu.gd +++ b/scenes/menu/start_menu.gd @@ -5,6 +5,9 @@ const beetle = preload("res://vehicles/beetlecar.tscn") const test_scene = preload("res://scenes/test_level.tscn") const gui_scene = preload("res://player/gui.tscn") +func _ready() -> void: + $MarginContainer/VSplitContainer/CenterContainer/VBoxContainer/BuggyButton.grab_focus() + func _on_BuggyButton_pressed() -> void: _start_with_vehicle(buggy.instance())