diff --git a/Main_menu.gd b/Main_menu.gd new file mode 100644 index 0000000..22f638a --- /dev/null +++ b/Main_menu.gd @@ -0,0 +1,4 @@ +extends Control + +func _ready(): + pass diff --git a/Main_menu.tscn b/Main_menu.tscn new file mode 100644 index 0000000..1fe93c6 --- /dev/null +++ b/Main_menu.tscn @@ -0,0 +1,68 @@ +[gd_scene load_steps=9 format=2] + +[ext_resource path="res://textures/Title-Background.png" type="Texture" id=1] +[ext_resource path="res://fonts/SPACEBAR.ttf" type="DynamicFontData" id=2] +[ext_resource path="res://Main_menu.gd" type="Script" id=3] +[ext_resource path="res://fonts/Title-font.tres" type="DynamicFont" id=4] +[ext_resource path="res://themes/Base_theme.tres" type="Theme" id=5] + +[sub_resource type="Theme" id=1] +default_font = ExtResource( 4 ) + +[sub_resource type="DynamicFont" id=2] +size = 40 +font_data = ExtResource( 2 ) + +[sub_resource type="DynamicFont" id=3] +size = 32 +font_data = ExtResource( 2 ) + +[node name="Main_menu" type="Control"] +anchor_right = 1.0 +anchor_bottom = 1.0 +theme = ExtResource( 5 ) +script = ExtResource( 3 ) +__meta__ = { +"_edit_lock_": true +} + +[node name="HTTPRequest" type="HTTPRequest" parent="."] + +[node name="Background" type="TextureRect" parent="."] +margin_right = 2000.0 +margin_bottom = 2000.0 +rect_scale = Vector2( 0.722402, 0.558973 ) +texture = ExtResource( 1 ) +__meta__ = { +"_edit_group_": true, +"_edit_lock_": true +} + +[node name="Header" type="Label" parent="."] +anchor_right = 1.0 +margin_bottom = 53.0 +theme = SubResource( 1 ) +custom_fonts/font = SubResource( 2 ) +text = "UltraFlare Launcher" +align = 1 +valign = 1 + +[node name="Panel" type="Panel" parent="."] +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 40.0 +margin_top = -112.0 +margin_right = -40.0 +theme = ExtResource( 5 ) + +[node name="Play_button" type="Button" parent="Panel"] +margin_left = 344.0 +margin_top = 24.0 +margin_right = 610.0 +margin_bottom = 96.0 +rect_scale = Vector2( 0.962016, 0.91427 ) +custom_fonts/font = SubResource( 3 ) +text = "play" + +[connection signal="request_completed" from="HTTPRequest" to="." method="_on_HTTPRequest_request_completed"] diff --git a/default_env.tres b/default_env.tres new file mode 100644 index 0000000..20207a4 --- /dev/null +++ b/default_env.tres @@ -0,0 +1,7 @@ +[gd_resource type="Environment" load_steps=2 format=2] + +[sub_resource type="ProceduralSky" id=1] + +[resource] +background_mode = 2 +background_sky = SubResource( 1 ) diff --git a/fonts/Retro Gaming.ttf b/fonts/Retro Gaming.ttf new file mode 100644 index 0000000..0dca996 Binary files /dev/null and b/fonts/Retro Gaming.ttf differ diff --git a/fonts/SPACE.tres b/fonts/SPACE.tres new file mode 100644 index 0000000..5793826 --- /dev/null +++ b/fonts/SPACE.tres @@ -0,0 +1,7 @@ +[gd_resource type="DynamicFont" load_steps=2 format=2] + +[ext_resource path="res://fonts/SPACE.ttf" type="DynamicFontData" id=1] + +[resource] +size = 12 +font_data = ExtResource( 1 ) diff --git a/fonts/SPACE.ttf b/fonts/SPACE.ttf new file mode 100644 index 0000000..7cc40b0 Binary files /dev/null and b/fonts/SPACE.ttf differ diff --git a/fonts/SPACEBAR.ttf b/fonts/SPACEBAR.ttf new file mode 100644 index 0000000..8a34acb Binary files /dev/null and b/fonts/SPACEBAR.ttf differ diff --git a/fonts/Title-font.tres b/fonts/Title-font.tres new file mode 100644 index 0000000..ef41a9c --- /dev/null +++ b/fonts/Title-font.tres @@ -0,0 +1,7 @@ +[gd_resource type="DynamicFont" load_steps=2 format=2] + +[ext_resource path="res://fonts/SPACEBAR.ttf" type="DynamicFontData" id=1] + +[resource] +size = 48 +font_data = ExtResource( 1 ) diff --git a/fonts/Title_screen_font.tres b/fonts/Title_screen_font.tres new file mode 100644 index 0000000..5c55517 --- /dev/null +++ b/fonts/Title_screen_font.tres @@ -0,0 +1,8 @@ +[gd_resource type="DynamicFont" load_steps=2 format=2] + +[ext_resource path="res://fonts/SPACEBAR.ttf" type="DynamicFontData" id=1] + +[resource] +use_mipmaps = true +use_filter = true +font_data = ExtResource( 1 ) diff --git a/fonts/retro_gaming.tres b/fonts/retro_gaming.tres new file mode 100644 index 0000000..136530e --- /dev/null +++ b/fonts/retro_gaming.tres @@ -0,0 +1,7 @@ +[gd_resource type="DynamicFont" load_steps=2 format=2] + +[ext_resource path="res://fonts/Retro Gaming.ttf" type="DynamicFontData" id=1] + +[resource] +outline_color = Color( 0.0823529, 0.0745098, 0.117647, 1 ) +font_data = ExtResource( 1 ) diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..c98fbb6 Binary files /dev/null and b/icon.png differ diff --git a/icon.png.import b/icon.png.import new file mode 100644 index 0000000..a4c02e6 --- /dev/null +++ b/icon.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.png" +dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.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 new file mode 100644 index 0000000..36045c4 --- /dev/null +++ b/project.godot @@ -0,0 +1,36 @@ +; Engine configuration file. +; It's best edited using the editor UI and not directly, +; since the parameters that go here are not all obvious. +; +; Format: +; [section] ; section goes between [] +; param=value ; assign values to parameters + +config_version=4 + +[application] + +config/name="UltraFlare Launcher" +run/main_scene="res://Main_menu.tscn" +config/icon="res://icon.png" + +[display] + +window/stretch/mode="2d" +window/stretch/aspect="keep" + +[editor] + +scene_naming=2 + +[gui] + +common/drop_mouse_on_gui_input_disabled=true + +[physics] + +common/enable_pause_aware_picking=true + +[rendering] + +environment/default_environment="res://default_env.tres" diff --git a/textures/Title-Background.png b/textures/Title-Background.png new file mode 100644 index 0000000..81e66d1 Binary files /dev/null and b/textures/Title-Background.png differ diff --git a/textures/Title-Background.png.import b/textures/Title-Background.png.import new file mode 100644 index 0000000..716079a --- /dev/null +++ b/textures/Title-Background.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/Title-Background.png-0143b674e77de207c58522529e141ab8.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://textures/Title-Background.png" +dest_files=[ "res://.import/Title-Background.png-0143b674e77de207c58522529e141ab8.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=true +flags/anisotropic=true +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/themes/Base_panel.tres b/themes/Base_panel.tres new file mode 100644 index 0000000..bba231f --- /dev/null +++ b/themes/Base_panel.tres @@ -0,0 +1,11 @@ +[gd_resource type="StyleBoxFlat" format=2] + +[resource] +bg_color = Color( 0.0823529, 0.0745098, 0.117647, 1 ) +border_width_left = 10 +border_width_right = 5 +border_color = Color( 0.0823529, 0.0745098, 0.117647, 1 ) +corner_radius_top_left = 4 +corner_radius_top_right = 4 +corner_radius_bottom_right = 4 +corner_radius_bottom_left = 4 diff --git a/themes/Base_theme.tres b/themes/Base_theme.tres new file mode 100644 index 0000000..bc84a19 --- /dev/null +++ b/themes/Base_theme.tres @@ -0,0 +1,8 @@ +[gd_resource type="Theme" load_steps=3 format=2] + +[ext_resource path="res://fonts/Title-font.tres" type="DynamicFont" id=1] +[ext_resource path="res://themes/Base_panel.tres" type="StyleBox" id=2] + +[resource] +default_font = ExtResource( 1 ) +Panel/styles/panel = ExtResource( 2 )