diff --git a/Manager.gd b/Manager.gd index c66c106..40b0edf 100644 --- a/Manager.gd +++ b/Manager.gd @@ -2,8 +2,8 @@ extends Node # Autoload: Manager # --- KONFIGURACJA --- -@export var SECTOR_COUNT: int = 17 -@export var PLANETS_PER_SECTOR_RANGE: Vector2 = Settings.PLANET_NUMBER +@export var SECTOR_COUNT: int = Settings.SECTOR_COUNT +@export var PLANETS_PER_SECTOR_RANGE = Settings.PLANET_PER_SECTOR # --- DANE --- diff --git a/assets/fonts/CFSpaceship-Regular.ttf b/assets/fonts/CFSpaceship-Regular.ttf new file mode 100644 index 0000000..a1f0a97 Binary files /dev/null and b/assets/fonts/CFSpaceship-Regular.ttf differ diff --git a/assets/fonts/CFSpaceship-Regular.ttf.import b/assets/fonts/CFSpaceship-Regular.ttf.import new file mode 100644 index 0000000..91d2478 --- /dev/null +++ b/assets/fonts/CFSpaceship-Regular.ttf.import @@ -0,0 +1,36 @@ +[remap] + +importer="font_data_dynamic" +type="FontFile" +uid="uid://n4g02h0piglf" +path="res://.godot/imported/CFSpaceship-Regular.ttf-cb3aa1558311321cd644c365de2a3af9.fontdata" + +[deps] + +source_file="res://assets/fonts/CFSpaceship-Regular.ttf" +dest_files=["res://.godot/imported/CFSpaceship-Regular.ttf-cb3aa1558311321cd644c365de2a3af9.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=1 +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/Chopsic.otf b/assets/fonts/Chopsic.otf new file mode 100644 index 0000000..dec2e88 Binary files /dev/null and b/assets/fonts/Chopsic.otf differ diff --git a/assets/fonts/Chopsic.otf.import b/assets/fonts/Chopsic.otf.import new file mode 100644 index 0000000..cae7ea1 --- /dev/null +++ b/assets/fonts/Chopsic.otf.import @@ -0,0 +1,36 @@ +[remap] + +importer="font_data_dynamic" +type="FontFile" +uid="uid://bytgiothu0eoy" +path="res://.godot/imported/Chopsic.otf-19021191d64f4100b8d788dd6de17791.fontdata" + +[deps] + +source_file="res://assets/fonts/Chopsic.otf" +dest_files=["res://.godot/imported/Chopsic.otf-19021191d64f4100b8d788dd6de17791.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=1 +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/quantfh.ttf b/assets/fonts/quantfh.ttf new file mode 100644 index 0000000..009a186 Binary files /dev/null and b/assets/fonts/quantfh.ttf differ diff --git a/assets/fonts/quantfh.ttf.import b/assets/fonts/quantfh.ttf.import new file mode 100644 index 0000000..fcf9114 --- /dev/null +++ b/assets/fonts/quantfh.ttf.import @@ -0,0 +1,36 @@ +[remap] + +importer="font_data_dynamic" +type="FontFile" +uid="uid://66bk4oa8nj7x" +path="res://.godot/imported/quantfh.ttf-ca1ea5ed2797d3db11502ea87c32ea2c.fontdata" + +[deps] + +source_file="res://assets/fonts/quantfh.ttf" +dest_files=["res://.godot/imported/quantfh.ttf-ca1ea5ed2797d3db11502ea87c32ea2c.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=1 +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/redlinecondital.ttf b/assets/fonts/redlinecondital.ttf new file mode 100644 index 0000000..73d46a7 Binary files /dev/null and b/assets/fonts/redlinecondital.ttf differ diff --git a/assets/fonts/redlinecondital.ttf.import b/assets/fonts/redlinecondital.ttf.import new file mode 100644 index 0000000..d66a219 --- /dev/null +++ b/assets/fonts/redlinecondital.ttf.import @@ -0,0 +1,36 @@ +[remap] + +importer="font_data_dynamic" +type="FontFile" +uid="uid://8sj6q1y0q32u" +path="res://.godot/imported/redlinecondital.ttf-960a4982ce41081189bfe55b4ec01b32.fontdata" + +[deps] + +source_file="res://assets/fonts/redlinecondital.ttf" +dest_files=["res://.godot/imported/redlinecondital.ttf-960a4982ce41081189bfe55b4ec01b32.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=1 +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/icons/buttons/button_blue.png b/assets/icons/buttons/button_blue.png index 2d42022..8642ec7 100644 Binary files a/assets/icons/buttons/button_blue.png and b/assets/icons/buttons/button_blue.png differ diff --git a/assets/icons/buttons/button_blue1.png b/assets/icons/buttons/button_blue1.png new file mode 100644 index 0000000..2d42022 Binary files /dev/null and b/assets/icons/buttons/button_blue1.png differ diff --git a/assets/icons/buttons/button_blue1.png.import b/assets/icons/buttons/button_blue1.png.import new file mode 100644 index 0000000..e5870a0 --- /dev/null +++ b/assets/icons/buttons/button_blue1.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c8w0vg6qc82uc" +path="res://.godot/imported/button_blue1.png-fe866f5eb51c08e860e675b5715534e4.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/icons/buttons/button_blue1.png" +dest_files=["res://.godot/imported/button_blue1.png-fe866f5eb51c08e860e675b5715534e4.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/icons/buttons/button_red.png b/assets/icons/buttons/button_red.png index ded8c81..06e175b 100644 Binary files a/assets/icons/buttons/button_red.png and b/assets/icons/buttons/button_red.png differ diff --git a/assets/icons/logo_game.png b/assets/icons/logo_game.png index 658fd66..08ee923 100644 Binary files a/assets/icons/logo_game.png and b/assets/icons/logo_game.png differ diff --git a/assets/sounds/music/game_music.mp3 b/assets/sounds/music/game_music.mp3 index 19566f2..242e2f0 100644 Binary files a/assets/sounds/music/game_music.mp3 and b/assets/sounds/music/game_music.mp3 differ diff --git a/assets/sounds/music/game_music.mp3.import b/assets/sounds/music/game_music.mp3.import index acdd95f..21be039 100644 --- a/assets/sounds/music/game_music.mp3.import +++ b/assets/sounds/music/game_music.mp3.import @@ -2,7 +2,7 @@ importer="mp3" type="AudioStreamMP3" -uid="uid://cqetkh2cefibd" +uid="uid://c8xg32p8lbltw" path="res://.godot/imported/game_music.mp3-20c889bd0c692c83f686e0a0181665f3.mp3str" [deps] @@ -12,7 +12,7 @@ dest_files=["res://.godot/imported/game_music.mp3-20c889bd0c692c83f686e0a0181665 [params] -loop=false +loop=true loop_offset=0 bpm=0 beat_count=0 diff --git a/assets/sounds/music/menu_music.mp3 b/assets/sounds/music/menu_music.mp3 index 425d835..c047a53 100644 Binary files a/assets/sounds/music/menu_music.mp3 and b/assets/sounds/music/menu_music.mp3 differ diff --git a/assets/sounds/music/menu_music.mp3.import b/assets/sounds/music/menu_music.mp3.import index 3fa42ad..a3a8638 100644 --- a/assets/sounds/music/menu_music.mp3.import +++ b/assets/sounds/music/menu_music.mp3.import @@ -2,7 +2,7 @@ importer="mp3" type="AudioStreamMP3" -uid="uid://ditln0kq3u3dm" +uid="uid://dc3bsqg4ltuet" path="res://.godot/imported/menu_music.mp3-aa66988442ee0305322e3502470ef258.mp3str" [deps] diff --git a/assets/sounds/music/menu_music1.mp3 b/assets/sounds/music/menu_music1.mp3 new file mode 100644 index 0000000..425d835 Binary files /dev/null and b/assets/sounds/music/menu_music1.mp3 differ diff --git a/assets/sounds/music/menu_music1.mp3.import b/assets/sounds/music/menu_music1.mp3.import new file mode 100644 index 0000000..6f9a32f --- /dev/null +++ b/assets/sounds/music/menu_music1.mp3.import @@ -0,0 +1,19 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +uid="uid://bvs1euqwx8aw8" +path="res://.godot/imported/menu_music1.mp3-10ba8b866ac5f59816abab7afaba16b8.mp3str" + +[deps] + +source_file="res://assets/sounds/music/menu_music1.mp3" +dest_files=["res://.godot/imported/menu_music1.mp3-10ba8b866ac5f59816abab7afaba16b8.mp3str"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/assets/stars/small_star.png b/assets/stars/small_star.png new file mode 100644 index 0000000..4e00e4b Binary files /dev/null and b/assets/stars/small_star.png differ diff --git a/assets/stars/small_star.png.import b/assets/stars/small_star.png.import new file mode 100644 index 0000000..c12602b --- /dev/null +++ b/assets/stars/small_star.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cm376wgq8l0n4" +path="res://.godot/imported/small_star.png-2d9a9a02accf80f624cd11d747414afd.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/stars/small_star.png" +dest_files=["res://.godot/imported/small_star.png-2d9a9a02accf80f624cd11d747414afd.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/scenes/menu.tscn b/scenes/menu.tscn index 3431c79..27fc7c1 100644 --- a/scenes/menu.tscn +++ b/scenes/menu.tscn @@ -1,13 +1,88 @@ -[gd_scene load_steps=9 format=3 uid="uid://sxae8i12io4y"] +[gd_scene load_steps=16 format=3 uid="uid://sxae8i12io4y"] [ext_resource type="Script" uid="uid://ol6efor868gk" path="res://scripts/menu.gd" id="1_vjb58"] [ext_resource type="Texture2D" uid="uid://xuw4ki75j3fy" path="res://assets/background/menubg.png" id="1_yqeox"] -[ext_resource type="AudioStream" uid="uid://ditln0kq3u3dm" path="res://assets/sounds/music/menu_music.mp3" id="3_con2f"] +[ext_resource type="AudioStream" uid="uid://dc3bsqg4ltuet" path="res://assets/sounds/music/menu_music.mp3" id="3_con2f"] [ext_resource type="PackedScene" uid="uid://gvx2ukt1why" path="res://scenes/option_popup.tscn" id="3_mhnvy"] [ext_resource type="Texture2D" uid="uid://da6hb1mill5yn" path="res://assets/icons/buttons/button_blue.png" id="3_v86rl"] [ext_resource type="Texture2D" uid="uid://t2pwtja7yfa4" path="res://assets/icons/buttons/button_red.png" id="4_13sgg"] [ext_resource type="Texture2D" uid="uid://dssoa5bxs2h4r" path="res://assets/icons/logo_game.png" id="5_4ytvr"] -[ext_resource type="FontFile" uid="uid://bwvx53j60bvtd" path="res://assets/fonts/font.ttf" id="5_13sgg"] +[ext_resource type="FontFile" uid="uid://bytgiothu0eoy" path="res://assets/fonts/Chopsic.otf" id="5_13sgg"] +[ext_resource type="Texture2D" uid="uid://cm376wgq8l0n4" path="res://assets/stars/small_star.png" id="7_i6lef"] + +[sub_resource type="Animation" id="Animation_70i5f"] +resource_name = "blink" +loop_mode = 2 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath(".:modulate") +tracks/0/interp = 2 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 0.46, 1), +"transitions": PackedFloat32Array(1, 1, 1), +"update": 0, +"values": [Color(1, 1, 1, 0.5058824), Color(1, 1, 1, 1), Color(1, 1, 1, 0.5058824)] +} + +[sub_resource type="Animation" id="Animation_mj5lg"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath(".:modulate") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Color(1, 1, 1, 0.5058824)] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_ufwb2"] +_data = { +&"RESET": SubResource("Animation_mj5lg"), +&"blink": SubResource("Animation_70i5f") +} + +[sub_resource type="Animation" id="Animation_13sgg"] +resource_name = "anim_logo" +length = 5.0 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath(".:modulate") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 5), +"transitions": PackedFloat32Array(1, 1), +"update": 0, +"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)] +} + +[sub_resource type="Animation" id="Animation_i6lef"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath(".:modulate") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Color(1, 1, 1, 0)] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_70i5f"] +_data = { +&"RESET": SubResource("Animation_i6lef"), +&"anim_logo": SubResource("Animation_13sgg") +} [node name="MainMenu" type="Control"] layout_mode = 3 @@ -29,95 +104,131 @@ grow_vertical = 2 texture = ExtResource("1_yqeox") expand_mode = 1 -[node name="Sprite2D" type="Sprite2D" parent="TextureRect"] -position = Vector2(554.375, 371.65625) -scale = Vector2(0.2, 0.2) -texture = ExtResource("5_4ytvr") +[node name="star" type="Sprite2D" parent="TextureRect"] +modulate = Color(1, 1, 1, 0.5058824) +position = Vector2(866.2031, 336.45313) +scale = Vector2(1.1979373, 1.0312517) +texture = ExtResource("7_i6lef") -[node name="VBoxContainer" type="VBoxContainer" parent="."] -layout_mode = 1 -anchors_preset = 2 -anchor_top = 1.0 -anchor_bottom = 1.0 -offset_left = 14.0 -offset_top = -186.0 -offset_right = 464.0 -offset_bottom = 420.66687 -grow_vertical = 0 -scale = Vector2(0.3, 0.3) +[node name="AnimationPlayer" type="AnimationPlayer" parent="TextureRect/star"] +libraries = { +&"": SubResource("AnimationLibrary_ufwb2") +} +autoplay = "blink" -[node name="start" type="TextureButton" parent="VBoxContainer"] -layout_mode = 2 +[node name="exit" type="TextureButton" parent="TextureRect"] +layout_mode = 0 +offset_left = 103.00001 +offset_top = 497.00003 +offset_right = 1127.0 +offset_bottom = 1521.0 +scale = Vector2(0.15, 0.15) texture_normal = ExtResource("3_v86rl") texture_hover = ExtResource("4_13sgg") -[node name="Label" type="Label" parent="VBoxContainer/start"] +[node name="Label" type="Label" parent="TextureRect/exit"] +layout_mode = 0 +offset_left = 200.0 +offset_top = 453.333 +offset_right = 836.0 +offset_bottom = 563.333 +theme_override_colors/font_color = Color(3.008172e-09, 0.06855638, 0.14010939, 1) +theme_override_colors/font_shadow_color = Color(0.7570387, 0.75415635, 0.7885611, 0) +theme_override_colors/font_outline_color = Color(0.9954526, 0.93959796, 0.9103491, 1) +theme_override_constants/outline_size = 23 +theme_override_fonts/font = ExtResource("5_13sgg") +theme_override_font_sizes/font_size = 120 +text = "ZAMKNIJ" +horizontal_alignment = 1 +vertical_alignment = 1 + +[node name="option" type="TextureButton" parent="TextureRect"] +layout_mode = 0 +offset_left = -7.0 +offset_top = 435.0 +offset_right = 1017.0 +offset_bottom = 1459.0 +scale = Vector2(0.15, 0.15) +texture_normal = ExtResource("3_v86rl") +texture_hover = ExtResource("4_13sgg") + +[node name="Label" type="Label" parent="TextureRect/option"] +layout_mode = 0 +offset_left = 250.66675 +offset_top = 464.83325 +offset_right = 770.66675 +offset_bottom = 574.83325 +theme_override_colors/font_color = Color(3.008172e-09, 0.06855638, 0.14010939, 1) +theme_override_colors/font_shadow_color = Color(0.7570387, 0.75415635, 0.7885611, 0) +theme_override_colors/font_outline_color = Color(0.9954526, 0.93959796, 0.9103491, 1) +theme_override_constants/outline_size = 23 +theme_override_fonts/font = ExtResource("5_13sgg") +theme_override_font_sizes/font_size = 120 +text = "OPCJE" +horizontal_alignment = 1 +vertical_alignment = 1 + +[node name="start" type="TextureButton" parent="TextureRect"] +layout_mode = 0 +offset_left = -7.0 +offset_top = 312.0 +offset_right = 1017.0 +offset_bottom = 1336.0 +scale = Vector2(0.15, 0.15) +texture_normal = ExtResource("3_v86rl") +texture_hover = ExtResource("4_13sgg") + +[node name="Label" type="Label" parent="TextureRect/start"] layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 -offset_left = -219.0 -offset_top = -69.0 -offset_right = 185.0 -offset_bottom = 74.0 +offset_left = -230.66699 +offset_top = -66.16675 +offset_right = 259.333 +offset_bottom = 43.833252 grow_horizontal = 2 grow_vertical = 2 -theme_override_colors/font_color = Color(0.056970224, 0.008738811, 0.00917984, 1) +theme_override_colors/font_color = Color(3.008172e-09, 0.06855638, 0.14010939, 1) theme_override_colors/font_shadow_color = Color(0.7570387, 0.75415635, 0.7885611, 0) -theme_override_colors/font_outline_color = Color(0.9581385, 0.7134137, 0.07074302, 1) -theme_override_constants/outline_size = 16 +theme_override_colors/font_outline_color = Color(0.9954526, 0.93959796, 0.9103491, 1) +theme_override_constants/outline_size = 23 theme_override_fonts/font = ExtResource("5_13sgg") -theme_override_font_sizes/font_size = 65 +theme_override_font_sizes/font_size = 120 text = "START" horizontal_alignment = 1 vertical_alignment = 1 -[node name="option" type="TextureButton" parent="VBoxContainer"] -layout_mode = 2 -texture_normal = ExtResource("3_v86rl") -texture_hover = ExtResource("4_13sgg") +[node name="Sprite2D" type="Sprite2D" parent="TextureRect"] +modulate = Color(1, 1, 1, 0) +position = Vector2(563.00006, 328.00003) +scale = Vector2(0.27148017, 0.2616161) +texture = ExtResource("5_4ytvr") -[node name="Label" type="Label" parent="VBoxContainer/option"] -layout_mode = 0 -offset_left = 19.0 -offset_top = 17.0 -offset_right = 427.0 -offset_bottom = 157.0 -theme_override_colors/font_color = Color(0.056970224, 0.008738811, 0.00917984, 1) -theme_override_colors/font_shadow_color = Color(0.7570387, 0.75415635, 0.7885611, 0) -theme_override_colors/font_outline_color = Color(0.9581385, 0.7134137, 0.07074302, 1) -theme_override_constants/outline_size = 16 -theme_override_fonts/font = ExtResource("5_13sgg") -theme_override_font_sizes/font_size = 65 -text = "OPCJE" -horizontal_alignment = 1 -vertical_alignment = 1 +[node name="AnimationPlayer" type="AnimationPlayer" parent="TextureRect/Sprite2D"] +libraries = { +&"": SubResource("AnimationLibrary_70i5f") +} +autoplay = "anim_logo" -[node name="exit" type="TextureButton" parent="VBoxContainer"] -layout_mode = 2 -texture_normal = ExtResource("3_v86rl") -texture_hover = ExtResource("4_13sgg") - -[node name="Label" type="Label" parent="VBoxContainer/exit"] -layout_mode = 0 -offset_left = 18.0 -offset_top = 18.0 -offset_right = 428.0 -offset_bottom = 156.0 -theme_override_colors/font_color = Color(0.056970224, 0.008738811, 0.00917984, 1) -theme_override_colors/font_shadow_color = Color(0.7570387, 0.75415635, 0.7885611, 0) -theme_override_colors/font_outline_color = Color(0.9581385, 0.7134137, 0.07074302, 1) -theme_override_constants/outline_size = 16 -theme_override_fonts/font = ExtResource("5_13sgg") -theme_override_font_sizes/font_size = 65 -text = "ZAMKNIJ" -horizontal_alignment = 1 -vertical_alignment = 1 +[node name="VBoxContainer" type="GridContainer" parent="."] +visible = false +layout_mode = 1 +anchors_preset = 2 +anchor_top = 1.0 +anchor_bottom = 1.0 +offset_left = 345.0 +offset_top = -488.0 +offset_right = 1365.0 +offset_bottom = 862.0 +grow_vertical = 0 +scale = Vector2(0.3, 0.3) [node name="AudioStreamPlayer2D" type="AudioStreamPlayer" parent="."] stream = ExtResource("3_con2f") autoplay = true [node name="OptionPopup" parent="." instance=ExtResource("3_mhnvy")] +visible = false diff --git a/scripts/galaxy.gd b/scripts/galaxy.gd index de3f0f1..add2e2a 100644 --- a/scripts/galaxy.gd +++ b/scripts/galaxy.gd @@ -9,7 +9,7 @@ func _ready(): # --- TWORZENIE GWIAZD SEKTORÓW --- const GLOBAL_STAR_REDUCTION = 0.45 # Zmniejsza gwiazdy do 65% oryginalnego rozmiaru -const FONT_PATH := "res://assets/fonts/font3.ttf" +const FONT_PATH := "res://assets/fonts/Chopsic.otf" func _create_sector_buttons(): for child in container.get_children(): child.queue_free() @@ -39,7 +39,7 @@ func _create_sector_buttons(): # Ustawienie koloru konturu label.add_theme_color_override("font_outline_color", Color.BLACK) - label.add_theme_font_size_override("font_size", 11) + label.add_theme_font_size_override("font_size", 7) label.modulate = Color(0.887, 0.867, 0.836, 1.0) label.horizontal_alignment = HORIZONTAL_ALIGNMENT_CENTER label.vertical_alignment = VERTICAL_ALIGNMENT_CENTER @@ -50,10 +50,7 @@ func _create_sector_buttons(): # ... reszta kodu do centrowania i pozycjonowania - label.position = Vector2( - button_width / 2 - label.get_rect().size.x / 2, # Centrujemy względem X - button_height + 60 # 60 jednostek poniżej dolnej krawędzi przycisku - ) + label.position = Vector2(-1000, 1500) button.add_child(label) diff --git a/scripts/menu.gd b/scripts/menu.gd index e0fa0c6..2e15c45 100644 --- a/scripts/menu.gd +++ b/scripts/menu.gd @@ -1,9 +1,9 @@ extends Control @onready var option_popup = $OptionPopup func _ready(): - $VBoxContainer/start.connect("pressed", Callable(self, "_on_start_pressed")) - $VBoxContainer/exit.connect("pressed", Callable(self, "_on_exit_pressed")) - $VBoxContainer/option.connect("pressed", Callable(self, "_on_Opcje_pressed")) + $TextureRect/start.connect("pressed", Callable(self, "_on_start_pressed")) + $TextureRect/exit.connect("pressed", Callable(self, "_on_exit_pressed")) + $TextureRect/option.connect("pressed", Callable(self, "_on_Opcje_pressed")) diff --git a/scripts/settings.gd b/scripts/settings.gd index 4d32909..3f6c0b8 100644 --- a/scripts/settings.gd +++ b/scripts/settings.gd @@ -2,9 +2,5 @@ extends Node const UPDATE_INTERVAL := 30.0 #Cykl w sekundach var ORBIT_STEP = 60 #odległośc miedzy orbitami const FIRST_ORBIT_STEP = 80 #pierwsza planeta od gwiazdy -const MIN_DISTANCE = 80.0 # Minimalna odległość (promień) między środkami gwiazd -const MAX_ATTEMPTS = 50 # Maksymalna liczba prób znalezienia miejsca -const PLANET_NUMBER = Vector2(1, 5) - -#GRAFIKI -const GALAXY_BACKGROUND: = "res://assets/background/galaxy_background.jpg" # Tło galaktyki +const SECTOR_COUNT = 13 #ilość sektorów +const PLANET_PER_SECTOR: Vector2 = Vector2(1, 5)