diff --git a/assets/fonts/AnonymousPro-Bold.ttf b/assets/fonts/AnonymousPro-Bold.ttf new file mode 100644 index 0000000..f14c18c Binary files /dev/null and b/assets/fonts/AnonymousPro-Bold.ttf differ diff --git a/assets/fonts/AnonymousPro-Bold.ttf.import b/assets/fonts/AnonymousPro-Bold.ttf.import new file mode 100644 index 0000000..9bded9d --- /dev/null +++ b/assets/fonts/AnonymousPro-Bold.ttf.import @@ -0,0 +1,36 @@ +[remap] + +importer="font_data_dynamic" +type="FontFile" +uid="uid://ha2vel05pr1v" +path="res://.godot/imported/AnonymousPro-Bold.ttf-f6ded1ffbca92016e274cdc078f2c60d.fontdata" + +[deps] + +source_file="res://assets/fonts/AnonymousPro-Bold.ttf" +dest_files=["res://.godot/imported/AnonymousPro-Bold.ttf-f6ded1ffbca92016e274cdc078f2c60d.fontdata"] + +[params] + +Rendering=null +antialiasing=1 +generate_mipmaps=false +disable_embedded_bitmaps=true +multichannel_signed_distance_field=false +msdf_pixel_range=8 +msdf_size=48 +allow_system_fallback=true +force_autohinter=false +modulate_color_glyphs=false +hinting=3 +subpixel_positioning=4 +keep_rounding_remainders=true +oversampling=0.0 +Fallbacks=null +fallbacks=[] +Compress=null +compress=true +preload=[] +language_support={} +script_support={} +opentype_features={} diff --git a/assets/fonts/AnonymousPro-BoldItalic.ttf b/assets/fonts/AnonymousPro-BoldItalic.ttf new file mode 100644 index 0000000..cd7c30a Binary files /dev/null and b/assets/fonts/AnonymousPro-BoldItalic.ttf differ diff --git a/assets/fonts/AnonymousPro-BoldItalic.ttf.import b/assets/fonts/AnonymousPro-BoldItalic.ttf.import new file mode 100644 index 0000000..ea24ed2 --- /dev/null +++ b/assets/fonts/AnonymousPro-BoldItalic.ttf.import @@ -0,0 +1,36 @@ +[remap] + +importer="font_data_dynamic" +type="FontFile" +uid="uid://hvi4gauxs8u2" +path="res://.godot/imported/AnonymousPro-BoldItalic.ttf-ac9ad66073832e8a90d456460f0d201b.fontdata" + +[deps] + +source_file="res://assets/fonts/AnonymousPro-BoldItalic.ttf" +dest_files=["res://.godot/imported/AnonymousPro-BoldItalic.ttf-ac9ad66073832e8a90d456460f0d201b.fontdata"] + +[params] + +Rendering=null +antialiasing=1 +generate_mipmaps=false +disable_embedded_bitmaps=true +multichannel_signed_distance_field=false +msdf_pixel_range=8 +msdf_size=48 +allow_system_fallback=true +force_autohinter=false +modulate_color_glyphs=false +hinting=3 +subpixel_positioning=4 +keep_rounding_remainders=true +oversampling=0.0 +Fallbacks=null +fallbacks=[] +Compress=null +compress=true +preload=[] +language_support={} +script_support={} +opentype_features={} diff --git a/assets/fonts/AnonymousPro-Italic.ttf b/assets/fonts/AnonymousPro-Italic.ttf new file mode 100644 index 0000000..87b1786 Binary files /dev/null and b/assets/fonts/AnonymousPro-Italic.ttf differ diff --git a/assets/fonts/AnonymousPro-Italic.ttf.import b/assets/fonts/AnonymousPro-Italic.ttf.import new file mode 100644 index 0000000..9dd4b90 --- /dev/null +++ b/assets/fonts/AnonymousPro-Italic.ttf.import @@ -0,0 +1,36 @@ +[remap] + +importer="font_data_dynamic" +type="FontFile" +uid="uid://bui6o2yd7nsuh" +path="res://.godot/imported/AnonymousPro-Italic.ttf-8ce092a250b7d5e545a130c23f2c582f.fontdata" + +[deps] + +source_file="res://assets/fonts/AnonymousPro-Italic.ttf" +dest_files=["res://.godot/imported/AnonymousPro-Italic.ttf-8ce092a250b7d5e545a130c23f2c582f.fontdata"] + +[params] + +Rendering=null +antialiasing=1 +generate_mipmaps=false +disable_embedded_bitmaps=true +multichannel_signed_distance_field=false +msdf_pixel_range=8 +msdf_size=48 +allow_system_fallback=true +force_autohinter=false +modulate_color_glyphs=false +hinting=3 +subpixel_positioning=4 +keep_rounding_remainders=true +oversampling=0.0 +Fallbacks=null +fallbacks=[] +Compress=null +compress=true +preload=[] +language_support={} +script_support={} +opentype_features={} diff --git a/assets/fonts/AnonymousPro-Regular.ttf b/assets/fonts/AnonymousPro-Regular.ttf new file mode 100644 index 0000000..a98da85 Binary files /dev/null and b/assets/fonts/AnonymousPro-Regular.ttf differ diff --git a/assets/fonts/AnonymousPro-Regular.ttf.import b/assets/fonts/AnonymousPro-Regular.ttf.import new file mode 100644 index 0000000..c793e42 --- /dev/null +++ b/assets/fonts/AnonymousPro-Regular.ttf.import @@ -0,0 +1,36 @@ +[remap] + +importer="font_data_dynamic" +type="FontFile" +uid="uid://ckbpxang72tph" +path="res://.godot/imported/AnonymousPro-Regular.ttf-f1f6bed6217d199892822e8806f1c42c.fontdata" + +[deps] + +source_file="res://assets/fonts/AnonymousPro-Regular.ttf" +dest_files=["res://.godot/imported/AnonymousPro-Regular.ttf-f1f6bed6217d199892822e8806f1c42c.fontdata"] + +[params] + +Rendering=null +antialiasing=1 +generate_mipmaps=false +disable_embedded_bitmaps=true +multichannel_signed_distance_field=false +msdf_pixel_range=8 +msdf_size=48 +allow_system_fallback=true +force_autohinter=false +modulate_color_glyphs=false +hinting=3 +subpixel_positioning=4 +keep_rounding_remainders=true +oversampling=0.0 +Fallbacks=null +fallbacks=[] +Compress=null +compress=true +preload=[] +language_support={} +script_support={} +opentype_features={} diff --git a/assets/images/mainmenubg.png b/assets/images/mainmenubg.png new file mode 100644 index 0000000..ac7b612 Binary files /dev/null and b/assets/images/mainmenubg.png differ diff --git a/assets/images/mainmenubg.png.import b/assets/images/mainmenubg.png.import new file mode 100644 index 0000000..8f93a5f --- /dev/null +++ b/assets/images/mainmenubg.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://d1f75fetro2se" +path="res://.godot/imported/mainmenubg.png-937c01c066e89b0faf81d298ccbe70d6.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/images/mainmenubg.png" +dest_files=["res://.godot/imported/mainmenubg.png-937c01c066e89b0faf81d298ccbe70d6.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/scenes/mainMenu.tscn b/assets/scenes/mainMenu.tscn new file mode 100644 index 0000000..b4ab9a4 --- /dev/null +++ b/assets/scenes/mainMenu.tscn @@ -0,0 +1,100 @@ +[gd_scene format=3 uid="uid://ff2uc6ruj6q8"] + +[ext_resource type="Texture2D" uid="uid://d1f75fetro2se" path="res://assets/images/mainmenubg.png" id="1_8at84"] +[ext_resource type="Script" uid="uid://jgx43t3crrqe" path="res://assets/scripts/main_menu.gd" id="1_n76nl"] +[ext_resource type="FontFile" uid="uid://ha2vel05pr1v" path="res://assets/fonts/AnonymousPro-Bold.ttf" id="2_2cgkr"] + +[sub_resource type="LabelSettings" id="LabelSettings_n76nl"] +font = ExtResource("2_2cgkr") +font_size = 64 + +[sub_resource type="LabelSettings" id="LabelSettings_xyegg"] +font = ExtResource("2_2cgkr") +font_size = 64 +font_color = Color(1, 0.23137255, 0.23137255, 1) + +[sub_resource type="LabelSettings" id="LabelSettings_4agkw"] +font = ExtResource("2_2cgkr") +font_size = 32 + +[node name="MainMenu" type="Control" unique_id=580589415] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +script = ExtResource("1_n76nl") + +[node name="TextureRect" type="TextureRect" parent="." unique_id=152583119] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = -85.5 +offset_top = -57.0 +offset_right = 85.5 +offset_bottom = 57.0 +grow_horizontal = 2 +grow_vertical = 2 +pivot_offset_ratio = Vector2(0.5, 0.5) +texture = ExtResource("1_8at84") + +[node name="title2" type="Label" parent="." unique_id=613048176] +layout_mode = 1 +anchors_preset = 5 +anchor_left = 0.5 +anchor_right = 0.5 +offset_left = 277.5 +offset_top = 118.0 +offset_right = 312.5 +offset_bottom = 183.0 +grow_horizontal = 2 +text = "_" +label_settings = SubResource("LabelSettings_n76nl") +horizontal_alignment = 1 + +[node name="title1" type="Label" parent="." unique_id=37564803] +layout_mode = 1 +anchors_preset = 5 +anchor_left = 0.5 +anchor_right = 0.5 +offset_left = -282.5 +offset_top = 120.0 +offset_right = 276.5 +offset_bottom = 185.0 +grow_horizontal = 2 +text = "countdown mayhem" +label_settings = SubResource("LabelSettings_xyegg") +horizontal_alignment = 1 + +[node name="HBoxContainer" type="HBoxContainer" parent="." unique_id=1343435685] +layout_mode = 1 +anchors_preset = 7 +anchor_left = 0.5 +anchor_top = 1.0 +anchor_right = 0.5 +anchor_bottom = 1.0 +offset_left = -120.0 +offset_top = -104.0 +offset_right = 120.0 +offset_bottom = -64.0 +grow_horizontal = 2 +grow_vertical = 0 +theme_override_constants/separation = 100 + +[node name="playButton" type="Label" parent="HBoxContainer" unique_id=2094623257] +layout_mode = 2 +text = "play" +label_settings = SubResource("LabelSettings_4agkw") +horizontal_alignment = 1 +vertical_alignment = 1 + +[node name="aboutButton" type="Label" parent="HBoxContainer" unique_id=317431764] +layout_mode = 2 +text = "about" +label_settings = SubResource("LabelSettings_4agkw") +horizontal_alignment = 1 +vertical_alignment = 1 + +[connection signal="mouse_entered" from="HBoxContainer/playButton" to="." method="_on_play_button_mouse_entered"] diff --git a/assets/scripts/main_menu.gd b/assets/scripts/main_menu.gd new file mode 100644 index 0000000..9f92fd2 --- /dev/null +++ b/assets/scripts/main_menu.gd @@ -0,0 +1,20 @@ +extends Control + +@onready var bg = $TextureRect +@onready var title1 = $title1 +@onready var title2 = $title2 + +var timer := 0.0 + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta: float) -> void: + timer += delta + + bg.position = get_local_mouse_position() / 200 - Vector2(16, 8) + + title1.position.y = 120 + sin(timer) * 16 + title2.position.y = 120 + sin(timer) * 16 + + +func _on_play_button_mouse_entered() -> void: + pass # Replace with function body. diff --git a/assets/scripts/main_menu.gd.uid b/assets/scripts/main_menu.gd.uid new file mode 100644 index 0000000..523ac6a --- /dev/null +++ b/assets/scripts/main_menu.gd.uid @@ -0,0 +1 @@ +uid://jgx43t3crrqe diff --git a/rootnode.tscn b/rootnode.tscn index 0a06b76..cb700dc 100644 --- a/rootnode.tscn +++ b/rootnode.tscn @@ -9,6 +9,7 @@ [ext_resource type="AudioStream" uid="uid://c74t2je247tit" path="res://assets/sounds/blipSelect.wav" id="8_03kpu"] [ext_resource type="PackedScene" uid="uid://bqla58648mj8x" path="res://assets/scenes/pickupables/stopwatch.tscn" id="8_d1xn1"] [ext_resource type="AudioStream" uid="uid://cxub0psx0jhru" path="res://assets/sounds/powerUp.wav" id="9_03kpu"] +[ext_resource type="FontFile" uid="uid://ha2vel05pr1v" path="res://assets/fonts/AnonymousPro-Bold.ttf" id="10_hw0nj"] [ext_resource type="Texture2D" uid="uid://pb14cjjw7aa8" path="res://assets/images/upgrades/shotgun.png" id="10_ptsbx"] [sub_resource type="NavigationPolygon" id="NavigationPolygon_xyegg"] @@ -225,7 +226,9 @@ glow_bloom = 1.0 [sub_resource type="LabelSettings" id="LabelSettings_hw0nj"] [sub_resource type="LabelSettings" id="LabelSettings_pymst"] +font = ExtResource("10_hw0nj") font_size = 32 +font_color = Color(1, 0.24000001, 0.24000001, 1) [sub_resource type="Animation" id="Animation_ptsbx"] length = 0.001