Buildings
BIN
assets/buildings/aetherium_mine.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
40
assets/buildings/aetherium_mine.png.import
Normal file
@ -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
|
||||
BIN
assets/buildings/carbon_ore_mine.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
40
assets/buildings/carbon_ore_mine.png.import
Normal file
@ -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
|
||||
BIN
assets/buildings/chronite_mine.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
40
assets/buildings/chronite_mine.png.import
Normal file
@ -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
|
||||
BIN
assets/buildings/helium_mine.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
40
assets/buildings/helium_mine.png.import
Normal file
@ -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
|
||||
BIN
assets/buildings/neutronium_mine.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
40
assets/buildings/neutronium_mine.png.import
Normal file
@ -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
|
||||
BIN
assets/buildings/platinum_mine.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
40
assets/buildings/platinum_mine.png.import
Normal file
@ -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
|
||||
BIN
assets/buildings/quantium_mine.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
40
assets/buildings/quantium_mine.png.import
Normal file
@ -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
|
||||
BIN
assets/buildings/silicon_mine.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
40
assets/buildings/silicon_mine.png.import
Normal file
@ -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
|
||||
BIN
assets/buildings/solarium_mine.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
40
assets/buildings/solarium_mine.png.import
Normal file
@ -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
|
||||
BIN
assets/buildings/stardust_mine.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
40
assets/buildings/stardust_mine.png.import
Normal file
@ -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
|
||||
BIN
assets/buildings/titanium_ore_mine.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
40
assets/buildings/titanium_ore_mine.png.import
Normal file
@ -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
|
||||
@ -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
|
||||
|
||||
@ -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")
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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
|
||||
]
|
||||
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -4,6 +4,7 @@ class_name Ship
|
||||
var ship_type : String
|
||||
var speed := 100.0
|
||||
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
|
||||
|
||||
@ -1,15 +1,17 @@
|
||||
extends Node2D
|
||||
|
||||
const SHIP_TYPES = {
|
||||
"transport": {
|
||||
"name": "Transportowiec",
|
||||
"cost": {"iron": 10},
|
||||
"speed": 80,
|
||||
"speed": 2,
|
||||
"cargo_capacity": 50,
|
||||
"texture": "res://assets/ships/transport.png"
|
||||
},
|
||||
"frigate": {
|
||||
"name": "Fregata",
|
||||
"cost": {"iron": 10, "copper": 10},
|
||||
"speed": 120,
|
||||
"speed": 5,
|
||||
"attack": 10,
|
||||
"hp": 50,
|
||||
"texture": "res://assets/ships/fregata.png"
|
||||
|
||||
@ -61,7 +61,14 @@ 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
|
||||
|
||||
# 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)
|
||||
|
||||