diff --git a/assets/buildings/aetherium_mine.png b/assets/buildings/aetherium_mine.png new file mode 100644 index 0000000..cb0c8af Binary files /dev/null and b/assets/buildings/aetherium_mine.png differ diff --git a/assets/buildings/aetherium_mine.png.import b/assets/buildings/aetherium_mine.png.import new file mode 100644 index 0000000..12315fa --- /dev/null +++ b/assets/buildings/aetherium_mine.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cjurnikyig17x" +path="res://.godot/imported/aetherium_mine.png-62f55e010e994e848af2ae1dd138d82b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/buildings/aetherium_mine.png" +dest_files=["res://.godot/imported/aetherium_mine.png-62f55e010e994e848af2ae1dd138d82b.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/buildings/carbon_ore_mine.png b/assets/buildings/carbon_ore_mine.png new file mode 100644 index 0000000..6c2343e Binary files /dev/null and b/assets/buildings/carbon_ore_mine.png differ diff --git a/assets/buildings/carbon_ore_mine.png.import b/assets/buildings/carbon_ore_mine.png.import new file mode 100644 index 0000000..65c47dd --- /dev/null +++ b/assets/buildings/carbon_ore_mine.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://loty6ene5oil" +path="res://.godot/imported/carbon_ore_mine.png-f74ce43b8af1a81e31177ffd3f0ca9ec.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/buildings/carbon_ore_mine.png" +dest_files=["res://.godot/imported/carbon_ore_mine.png-f74ce43b8af1a81e31177ffd3f0ca9ec.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/buildings/chronite_mine.png b/assets/buildings/chronite_mine.png new file mode 100644 index 0000000..e9d8951 Binary files /dev/null and b/assets/buildings/chronite_mine.png differ diff --git a/assets/buildings/chronite_mine.png.import b/assets/buildings/chronite_mine.png.import new file mode 100644 index 0000000..ee2f9c3 --- /dev/null +++ b/assets/buildings/chronite_mine.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cs655qxbgdoqa" +path="res://.godot/imported/chronite_mine.png-20f81b7ad89c13be06ec69172041ca7d.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/buildings/chronite_mine.png" +dest_files=["res://.godot/imported/chronite_mine.png-20f81b7ad89c13be06ec69172041ca7d.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/buildings/helium_mine.png b/assets/buildings/helium_mine.png new file mode 100644 index 0000000..c86b308 Binary files /dev/null and b/assets/buildings/helium_mine.png differ diff --git a/assets/buildings/helium_mine.png.import b/assets/buildings/helium_mine.png.import new file mode 100644 index 0000000..889e9d6 --- /dev/null +++ b/assets/buildings/helium_mine.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ei2naey6ycvm" +path="res://.godot/imported/helium_mine.png-fc5dd7e2ea60c9cfed1d3937aaaa6f5f.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/buildings/helium_mine.png" +dest_files=["res://.godot/imported/helium_mine.png-fc5dd7e2ea60c9cfed1d3937aaaa6f5f.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/buildings/neutronium_mine.png b/assets/buildings/neutronium_mine.png new file mode 100644 index 0000000..628a87e Binary files /dev/null and b/assets/buildings/neutronium_mine.png differ diff --git a/assets/buildings/neutronium_mine.png.import b/assets/buildings/neutronium_mine.png.import new file mode 100644 index 0000000..f669678 --- /dev/null +++ b/assets/buildings/neutronium_mine.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ccsyixytn6wp5" +path="res://.godot/imported/neutronium_mine.png-375ae420ad980f6f71e27779cda60b2c.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/buildings/neutronium_mine.png" +dest_files=["res://.godot/imported/neutronium_mine.png-375ae420ad980f6f71e27779cda60b2c.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/buildings/platinum_mine.png b/assets/buildings/platinum_mine.png new file mode 100644 index 0000000..1f0cd0c Binary files /dev/null and b/assets/buildings/platinum_mine.png differ diff --git a/assets/buildings/platinum_mine.png.import b/assets/buildings/platinum_mine.png.import new file mode 100644 index 0000000..9a0d6e0 --- /dev/null +++ b/assets/buildings/platinum_mine.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dpcdtmxejkk7f" +path="res://.godot/imported/platinum_mine.png-e73972f0af23eea4f3d7f15fbfe5537f.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/buildings/platinum_mine.png" +dest_files=["res://.godot/imported/platinum_mine.png-e73972f0af23eea4f3d7f15fbfe5537f.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/buildings/quantium_mine.png b/assets/buildings/quantium_mine.png new file mode 100644 index 0000000..3aff1f2 Binary files /dev/null and b/assets/buildings/quantium_mine.png differ diff --git a/assets/buildings/quantium_mine.png.import b/assets/buildings/quantium_mine.png.import new file mode 100644 index 0000000..f603f98 --- /dev/null +++ b/assets/buildings/quantium_mine.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://s5hrmq527qib" +path="res://.godot/imported/quantium_mine.png-34bf044e8d945840eaab43d35cae0de4.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/buildings/quantium_mine.png" +dest_files=["res://.godot/imported/quantium_mine.png-34bf044e8d945840eaab43d35cae0de4.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/buildings/silicon_mine.png b/assets/buildings/silicon_mine.png new file mode 100644 index 0000000..344add5 Binary files /dev/null and b/assets/buildings/silicon_mine.png differ diff --git a/assets/buildings/silicon_mine.png.import b/assets/buildings/silicon_mine.png.import new file mode 100644 index 0000000..98799a6 --- /dev/null +++ b/assets/buildings/silicon_mine.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ddburrhll11o3" +path="res://.godot/imported/silicon_mine.png-4b01bd0a2a5a35267a9c50716ab10aea.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/buildings/silicon_mine.png" +dest_files=["res://.godot/imported/silicon_mine.png-4b01bd0a2a5a35267a9c50716ab10aea.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/buildings/solarium_mine.png b/assets/buildings/solarium_mine.png new file mode 100644 index 0000000..db2d739 Binary files /dev/null and b/assets/buildings/solarium_mine.png differ diff --git a/assets/buildings/solarium_mine.png.import b/assets/buildings/solarium_mine.png.import new file mode 100644 index 0000000..2365160 --- /dev/null +++ b/assets/buildings/solarium_mine.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://gkmim2apbmw5" +path="res://.godot/imported/solarium_mine.png-19ed3268d265ad516d4ddd905d30f5b1.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/buildings/solarium_mine.png" +dest_files=["res://.godot/imported/solarium_mine.png-19ed3268d265ad516d4ddd905d30f5b1.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/buildings/stardust_mine.png b/assets/buildings/stardust_mine.png new file mode 100644 index 0000000..fa82b0a Binary files /dev/null and b/assets/buildings/stardust_mine.png differ diff --git a/assets/buildings/stardust_mine.png.import b/assets/buildings/stardust_mine.png.import new file mode 100644 index 0000000..27a97c3 --- /dev/null +++ b/assets/buildings/stardust_mine.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cslsut4kd446t" +path="res://.godot/imported/stardust_mine.png-ea677c90ac1706993c27a3c612997b0d.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/buildings/stardust_mine.png" +dest_files=["res://.godot/imported/stardust_mine.png-ea677c90ac1706993c27a3c612997b0d.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/buildings/titanium_ore_mine.png b/assets/buildings/titanium_ore_mine.png new file mode 100644 index 0000000..19a9faf Binary files /dev/null and b/assets/buildings/titanium_ore_mine.png differ diff --git a/assets/buildings/titanium_ore_mine.png.import b/assets/buildings/titanium_ore_mine.png.import new file mode 100644 index 0000000..e833129 --- /dev/null +++ b/assets/buildings/titanium_ore_mine.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c2gwpp55f6twd" +path="res://.godot/imported/titanium_ore_mine.png-f7a62e68b4469623daef22bc385e5ab4.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/buildings/titanium_ore_mine.png" +dest_files=["res://.godot/imported/titanium_ore_mine.png-f7a62e68b4469623daef22bc385e5ab4.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/planet_panel.tscn b/scenes/planet_panel.tscn index a6b395a..7d24614 100644 --- a/scenes/planet_panel.tscn +++ b/scenes/planet_panel.tscn @@ -65,7 +65,7 @@ offset_right = -11.0 offset_bottom = -8.0 grow_horizontal = 2 grow_vertical = 0 -columns = 3 +columns = 6 [node name="Button" type="Button" parent="."] layout_mode = 1 diff --git a/scenes/ship.tscn b/scenes/ship.tscn index 0bae8a7..284f80e 100644 --- a/scenes/ship.tscn +++ b/scenes/ship.tscn @@ -1,9 +1,12 @@ -[gd_scene load_steps=2 format=3 uid="uid://ctvmetux3loj7"] +[gd_scene load_steps=3 format=3 uid="uid://ctvmetux3loj7"] [ext_resource type="Script" uid="uid://d4adbk672ye2t" path="res://scripts/ship.gd" id="1_q631a"] +[ext_resource type="Texture2D" uid="uid://d35tsxrdu12mi" path="res://assets/ships/fregata.png" id="2_2gnfn"] [node name="ship" type="Node2D"] script = ExtResource("1_q631a") [node name="Sprite2D" type="Sprite2D" parent="."] +rotation = 1.5707964 scale = Vector2(0.03125, 0.035156246) +texture = ExtResource("2_2gnfn") diff --git a/scripts/BuildingsList.gd b/scripts/BuildingsList.gd index ddeccea..465a9a8 100644 --- a/scripts/BuildingsList.gd +++ b/scripts/BuildingsList.gd @@ -17,7 +17,7 @@ var BUILDINGS = { "name": "Water Purifier", "description": "Pozwala wydobywać i oczyszczać wodę do użytku kolonii.", "resource": "water", - "cost": {"iron": 10}, + "cost": {"iron": 0}, "bonuses": { }, @@ -95,6 +95,116 @@ var BUILDINGS = { "build_time": 15.0, "texture": "res://assets/buildings/aluminium_ore_mine.png", "required_tech": "advanced_mining" + }, + "titanium_ore_mine": { + "name": "Titanium ore mine", + "description": "Wydobywa tytan", + "resource": "titanium", + "cost": {"iron": 100, "copper": 100}, + "bonuses": {}, + "build_time": 15.0, + "texture": "res://assets/buildings/titanium_ore_mine.png", + "required_tech": "advanced_mining" + }, + "carbon_ore_mine": { + "name": "Carbon ore mine", + "description": "Wydobywa węgiel", + "resource": "carbon", + "cost": {"iron": 100, "copper": 100}, + "bonuses": {}, + "build_time": 15.0, + "texture": "res://assets/buildings/carbon_ore_mine.png", + "required_tech": "advanced_mining" + }, + "silicon_ore_mine": { + "name": "Silicon mine", + "description": "Wydobywa krzem", + "resource": "silicon", + "cost": {"iron": 100, "copper": 100}, + "bonuses": {}, + "build_time": 15.0, + "texture": "res://assets/buildings/silicon_mine.png", + "required_tech": "advanced_mining" + }, + "platinum_mine": { + "name": "Platinum mine", + "description": "Wydobywa platynę", + "resource": "platinum", + "cost": {"iron": 100, "copper": 100}, + "bonuses": {}, + "build_time": 15.0, + "texture": "res://assets/buildings/platinum_mine.png", + "required_tech": "advanced_mining" + }, + "helium_mine": { + "name": "Helium-3 mine", + "description": "Wydobywa Hel-3", + "resource": "helium-3", + "cost": {"iron": 100, "copper": 100}, + "bonuses": {}, + "build_time": 15.0, + "texture": "res://assets/buildings/helium_mine.png", + "required_tech": "advanced_mining" + }, + "neutronium_mine": { + "name": "Neutronium ore mine", + "description": "Wydobywa neutronium", + "resource": "neutronium", + "cost": {"iron": 100, "copper": 100}, + "bonuses": {}, + "build_time": 15.0, + "texture": "res://assets/buildings/neutronium_mine.png", + "required_tech": "advanced_mining" + }, + "quantium_mine": { + "name": "Quantium mine", + "description": "Wydobywa kwantynium", + "resource": "quantium", + "cost": {"iron": 100, "copper": 100}, + "bonuses": {}, + "build_time": 15.0, + "texture": "res://assets/buildings/quantium_mine.png", + "required_tech": "advanced_mining" + }, + "aetherium_mine": { + "name": "Aetherium ore mine", + "description": "Wydobywa eter", + "resource": "aetherium", + "cost": {"iron": 100, "copper": 100}, + "bonuses": {}, + "build_time": 15.0, + "texture": "res://assets/buildings/aetherium_mine.png", + "required_tech": "advanced_mining" + }, + "stardust_mine": { + "name": "Stardust mine", + "description": "Wydobywa gwiezdny pył", + "resource": "stardust", + "cost": {"iron": 100, "copper": 100}, + "bonuses": {}, + "build_time": 15.0, + "texture": "res://assets/buildings/stardust_mine.png", + "required_tech": "advanced_mining" + }, + "solarium_mine": { + "name": "Solarium mine", + "description": "Wydobywa solarium", + "resource": "solarium", + "cost": {"iron": 100, "copper": 100}, + "bonuses": {}, + "build_time": 15.0, + "texture": "res://assets/buildings/solarium_mine.png", + "required_tech": "advanced_mining" + }, + "chronite_mine": { + "name": "Chronite mine", + "description": "Wydobywa chrominium", + "resource": "chronite", + "cost": {"iron": 100, "copper": 100}, + "bonuses": {}, + "build_time": 15.0, + "texture": "res://assets/buildings/chronite_mine.png", + "required_tech": "advanced_mining" } } diff --git a/scripts/PlayerData.gd b/scripts/PlayerData.gd index ca36f63..990adfe 100644 --- a/scripts/PlayerData.gd +++ b/scripts/PlayerData.gd @@ -8,8 +8,8 @@ var race: String = "Ludzie" # Zasoby globalne var resources := { - "iron": 18.0, - "copper": 0.0, + "iron": 181.0, + "copper": 110.0, "water": 0.0, "carbon": 0.0, "aluminium": 0.0, diff --git a/scripts/dictionary.gd b/scripts/dictionary.gd index 4571ffa..9dc7e8c 100644 --- a/scripts/dictionary.gd +++ b/scripts/dictionary.gd @@ -4,20 +4,19 @@ const RESOURCE_TYPES = [ {"name": "iron", "chance": 100, "mining_difficulty": 1.0}, # żelazo – powszechne {"name": "copper", "chance": 80, "mining_difficulty": 0.9}, # miedź – bardzo częsta {"name": "water", "chance": 75, "mining_difficulty": 1.5}, # woda – potrzebna do życia - {"name": "carbon", "chance": 70, "mining_difficulty": 1.0}, # węgiel – podstawowy pierwiastek - {"name": "aluminium", "chance": 45, "mining_difficulty": 0.5}, # lekki metal - {"name": "silicon", "chance": 40, "mining_difficulty": 1.0}, # do elektroniki - {"name": "titanium", "chance": 35, "mining_difficulty": 1.0}, # mocny, ale rzadszy - {"name": "uranium", "chance": 20, "mining_difficulty": 1.0}, # radioaktywny, cenny - {"name": "platinum", "chance": 20, "mining_difficulty": 1.0}, # szlachetny metal - {"name": "helium-3", "chance": 15, "mining_difficulty": 1.0}, # paliwo przyszłości - {"name": "neutronium", "chance": 15, "mining_difficulty": 1.0}, # ultra-gęsty materiał - {"name": "quantium", "chance": 12, "mining_difficulty": 1.0}, # niestabilny pierwiastek kwantowy - {"name": "aetherium", "chance": 10, "mining_difficulty": 1.0}, # energetyczny surowiec z wymiaru Aether - {"name": "stardust", "chance": 7, "mining_difficulty": 1.0}, # kosmiczny pył o właściwościach magicznych - {"name": "xenonite", "chance": 6, "mining_difficulty": 1.0}, # materiał używany przez obce cywilizacje - {"name": "solarium", "chance": 5, "mining_difficulty": 1.0}, # czysta energia słoneczna w postaci stałej - {"name": "chronite", "chance": 2, "mining_difficulty": 1.0} # minerał manipulujący czasem + {"name": "carbon", "chance": 70, "mining_difficulty": 0.9}, # węgiel – podstawowy pierwiastek + {"name": "aluminium", "chance": 45, "mining_difficulty": 0.8}, # lekki metal + {"name": "silicon", "chance": 40, "mining_difficulty": 0.7}, # do elektroniki + {"name": "titanium", "chance": 35, "mining_difficulty": 0.7}, # mocny, ale rzadszy + {"name": "uranium", "chance": 20, "mining_difficulty": 0.6}, # radioaktywny, cenny + {"name": "platinum", "chance": 20, "mining_difficulty": 0.6}, # szlachetny metal + {"name": "helium-3", "chance": 15, "mining_difficulty": 0.5}, # paliwo przyszłości + {"name": "neutronium", "chance": 15, "mining_difficulty": 0.4}, # ultra-gęsty materiał + {"name": "quantium", "chance": 12, "mining_difficulty": 0.3}, # niestabilny pierwiastek kwantowy + {"name": "aetherium", "chance": 10, "mining_difficulty": 0.25}, # energetyczny surowiec z wymiaru Aether + {"name": "stardust", "chance": 7, "mining_difficulty": 0.2}, # kosmiczny pył o właściwościach magicznych + {"name": "solarium", "chance": 5, "mining_difficulty": 0.15}, # czysta energia słoneczna w postaci stałej + {"name": "chronite", "chance": 2, "mining_difficulty": 0.1} # minerał manipulujący czasem ] diff --git a/scripts/planet.gd b/scripts/planet.gd index 987f3f5..cc5d922 100644 --- a/scripts/planet.gd +++ b/scripts/planet.gd @@ -199,7 +199,7 @@ func _res_growth(delta): func check_growth(mining_difficulty: float) -> float: # Zwraca przyrost zaokrąglony do 2 miejsc po przecinku - var growth = res_rich * log(1 + population / 500.0) * mining_difficulty + var growth = res_rich * log(1 + population / 10000.0) * mining_difficulty return round(growth * 100) / 100.0 diff --git a/scripts/ship.gd b/scripts/ship.gd index f155442..ac6071f 100644 --- a/scripts/ship.gd +++ b/scripts/ship.gd @@ -3,7 +3,8 @@ class_name Ship var ship_type : String var speed := 100.0 -var target_position +var target_position +var direction := Vector2.RIGHT func setup(type): @@ -13,3 +14,7 @@ func setup(type): var tex_path = ShipsType.SHIP_TYPES[type]["texture"] var texture = load(tex_path) $Sprite2D.texture = texture + +func _process(delta: float) -> void: + #position += direction * speed * delta + pass diff --git a/scripts/ships_type.gd b/scripts/ships_type.gd index d10b2d5..cf173fa 100644 --- a/scripts/ships_type.gd +++ b/scripts/ships_type.gd @@ -3,7 +3,7 @@ const SHIP_TYPES = { "transport": { "name": "Transport", "cost": {"iron": 10}, - "speed": 80, + "speed": 2, "cargo_capacity": 50, "required_tech": null, "texture": "res://assets/ships/transport.png" @@ -11,7 +11,7 @@ const SHIP_TYPES = { "frigate": { "name": "Frigate", "cost": {"iron": 10, "copper": 10}, - "speed": 120, + "speed": 5, "attack": 10, "hp": 50, "required_tech": null, diff --git a/scripts/station_panel.gd b/scripts/station_panel.gd index b532ead..dcc69ff 100644 --- a/scripts/station_panel.gd +++ b/scripts/station_panel.gd @@ -61,9 +61,16 @@ func build_ship(type: String): # POZYCJA SPAWNU — np. obok stacji ship.position = current_station.position + Vector2(15, 15) - + # Ustawiamy prędkość z listy statków + ship.speed = ShipsType.SHIP_TYPES[type].speed - # Dodaj do sceny + # Nadajemy kierunek (np. losowy) + ship.direction = Vector2(randf() * 2 - 1, randf() * 2 - 1).normalized() + + # Obrót zgodnie z kierunkiem + ship.rotation = ship.direction.angle() + + # Dodaj do sceny get_tree().root.get_node("Galaxy").add_child(ship) print("Zbudowano statek:", type)