Merge branch 'master' of http://192.168.0.5:3027/admin/space_empire
@ -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 ---
|
||||
|
||||
BIN
assets/fonts/CFSpaceship-Regular.ttf
Normal file
36
assets/fonts/CFSpaceship-Regular.ttf.import
Normal file
@ -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={}
|
||||
BIN
assets/fonts/Chopsic.otf
Normal file
36
assets/fonts/Chopsic.otf.import
Normal file
@ -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={}
|
||||
BIN
assets/fonts/quantfh.ttf
Normal file
36
assets/fonts/quantfh.ttf.import
Normal file
@ -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={}
|
||||
BIN
assets/fonts/redlinecondital.ttf
Normal file
36
assets/fonts/redlinecondital.ttf.import
Normal file
@ -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={}
|
||||
|
Before Width: | Height: | Size: 104 KiB After Width: | Height: | Size: 1022 KiB |
BIN
assets/icons/buttons/button_blue1.png
Normal file
|
After Width: | Height: | Size: 104 KiB |
40
assets/icons/buttons/button_blue1.png.import
Normal file
@ -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
|
||||
|
Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 941 KiB |
|
Before Width: | Height: | Size: 635 KiB After Width: | Height: | Size: 374 KiB |
@ -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
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
uid="uid://ditln0kq3u3dm"
|
||||
uid="uid://dc3bsqg4ltuet"
|
||||
path="res://.godot/imported/menu_music.mp3-aa66988442ee0305322e3502470ef258.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
BIN
assets/sounds/music/menu_music1.mp3
Normal file
19
assets/sounds/music/menu_music1.mp3.import
Normal file
@ -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
|
||||
BIN
assets/stars/small_star.png
Normal file
|
After Width: | Height: | Size: 238 B |
40
assets/stars/small_star.png.import
Normal file
@ -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
|
||||
247
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
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
@ -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"))
|
||||
|
||||
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||