battery art

This commit is contained in:
Altaezio
2026-02-26 18:31:40 +01:00
parent b3cd816a14
commit 34a8273063
17 changed files with 255 additions and 48 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=12 format=3 uid="uid://bjs67nvh61otf"]
[gd_scene format=3 uid="uid://bjs67nvh61otf"]
[ext_resource type="PackedScene" uid="uid://cm5b7w7j6527f" path="res://stages/title_screen/planet_3d.tscn" id="5_bi8m0"]
[ext_resource type="Theme" uid="uid://bgcmd213j6gk1" path="res://gui/ressources/hud.tres" id="5_twywe"]
@@ -9,7 +9,6 @@
[ext_resource type="Script" uid="uid://bmb4beevw5r40" path="res://stages/region_selection/scripts/region_selection.gd" id="8_jxqjc"]
[sub_resource type="FastNoiseLite" id="FastNoiseLite_gqvix"]
seed = 1021033283
frequency = 1.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ee13y"]
@@ -46,33 +45,33 @@ adjustment_brightness = 1.04
adjustment_contrast = 1.2
adjustment_saturation = 0.88
[node name="RegionSelectionScreen" type="Node3D"]
[node name="RegionSelectionScreen" type="Node3D" unique_id=1689785704]
script = ExtResource("8_jxqjc")
[node name="Planet3d" parent="." instance=ExtResource("5_bi8m0")]
[node name="Planet3d" parent="." unique_id=1061481452 instance=ExtResource("5_bi8m0")]
unique_name_in_owner = true
transform = Transform3D(0.17364822, 0, -0.9848077, 0, 1, 0, 0.9848077, 0, 0.17364822, 0.0020446777, 0, 0)
noise = SubResource("FastNoiseLite_gqvix")
[node name="RegionPointContainer" type="Node3D" parent="Planet3d"]
[node name="RegionPointContainer" type="Node3D" parent="Planet3d" unique_id=235517820]
unique_name_in_owner = true
[node name="Camera3D" type="Camera3D" parent="."]
[node name="Camera3D" type="Camera3D" parent="." unique_id=778670888]
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 0, 0, -79.21178)
current = true
fov = 34.0
script = ExtResource("6_gcxbq")
_sprite_layer = 1
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=421604487]
environment = SubResource("Environment_187ay")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=1857207701]
transform = Transform3D(0.8423772, -0.34588623, 0.4132353, -0.5388884, -0.5406809, 0.6459594, 0, -0.76682913, -0.6418513, 0, 14.918039, 0)
[node name="Hud" type="CanvasLayer" parent="."]
[node name="Hud" type="CanvasLayer" parent="." unique_id=1116972494]
[node name="MarginContainer" type="MarginContainer" parent="Hud"]
[node name="MarginContainer" type="MarginContainer" parent="Hud" unique_id=1379729006]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
@@ -80,14 +79,14 @@ grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("5_twywe")
[node name="Label" type="Label" parent="Hud/MarginContainer"]
[node name="Label" type="Label" parent="Hud/MarginContainer" unique_id=57986359]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 0
text = "CHOOSE_A_REGION"
label_settings = ExtResource("6_gqvix")
[node name="ReturnButton" type="Button" parent="Hud/MarginContainer"]
[node name="ReturnButton" type="Button" parent="Hud/MarginContainer" unique_id=475983266]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 8
@@ -95,7 +94,7 @@ size_flags_vertical = 8
theme = ExtResource("5_twywe")
text = "RETURN"
[node name="TravelValidation" parent="Hud" instance=ExtResource("7_gqvix")]
[node name="TravelValidation" parent="Hud" unique_id=205669320 instance=ExtResource("7_gqvix")]
unique_name_in_owner = true
visible = false
anchors_preset = 8
@@ -112,29 +111,29 @@ grow_vertical = 2
size_flags_horizontal = 4
size_flags_vertical = 4
[node name="TravelValidationContainer" type="VBoxContainer" parent="Hud/TravelValidation/ScreenContainer" index="0"]
[node name="TravelValidationContainer" type="VBoxContainer" parent="Hud/TravelValidation/ScreenContainer" index="0" unique_id=1135507235]
layout_mode = 2
theme = ExtResource("5_twywe")
alignment = 1
[node name="TravelValidationLabel" type="Label" parent="Hud/TravelValidation/ScreenContainer/TravelValidationContainer"]
[node name="TravelValidationLabel" type="Label" parent="Hud/TravelValidation/ScreenContainer/TravelValidationContainer" unique_id=1203605320]
unique_name_in_owner = true
layout_mode = 2
text = "TRAVEL_TO_REGION_%s"
label_settings = ExtResource("6_gqvix")
horizontal_alignment = 1
[node name="TravelValidationButtons" type="HBoxContainer" parent="Hud/TravelValidation/ScreenContainer/TravelValidationContainer"]
[node name="TravelValidationButtons" type="HBoxContainer" parent="Hud/TravelValidation/ScreenContainer/TravelValidationContainer" unique_id=560440640]
layout_mode = 2
theme = ExtResource("5_twywe")
alignment = 1
[node name="TravelValidationGoButton" type="Button" parent="Hud/TravelValidation/ScreenContainer/TravelValidationContainer/TravelValidationButtons"]
[node name="TravelValidationGoButton" type="Button" parent="Hud/TravelValidation/ScreenContainer/TravelValidationContainer/TravelValidationButtons" unique_id=338629922]
layout_mode = 2
theme = ExtResource("5_twywe")
text = "GO"
[node name="TravelValidationNoNowButton" type="Button" parent="Hud/TravelValidation/ScreenContainer/TravelValidationContainer/TravelValidationButtons"]
[node name="TravelValidationNoNowButton" type="Button" parent="Hud/TravelValidation/ScreenContainer/TravelValidationContainer/TravelValidationButtons" unique_id=61219289]
layout_mode = 2
theme = ExtResource("5_twywe")
text = "NOT_NOW"

View File

@@ -30,7 +30,6 @@ region = NodePath("../..")
y_sort_enabled = true
[node name="Player" parent="Entities" unique_id=75851644 instance=ExtResource("5_ovqi1")]
z_index = 1
[node name="RechargeStation" parent="Entities" unique_id=2068738444 instance=ExtResource("7_6d8m3")]
unique_name_in_owner = true

View File

@@ -76,10 +76,13 @@ func _ready():
data.add_plant_data(e.data, false)
ground_layer = GroundLayer.new(self)
ground_layer.name = "GroundLayer"
add_child(ground_layer)
rock_layer = RockLayer.new(self)
rock_layer.name = "RockLayer"
add_child(rock_layer)
decontamination_layer = DecontaminationLayer.new(self)
decontamination_layer.name = "DecontaminationLayer"
add_child(decontamination_layer)
%AstraDoor.global_position = data.player_spawn
@@ -92,6 +95,7 @@ func _ready():
edit_map_origin()
spawn_object_random_move(%RechargeStation)
%RechargeStation.update()
spawn_object_random_move(%BoreaDoor)
spawn_object_random_move(%ShipGarageDoor)

View File

@@ -11,7 +11,7 @@ const CRISTAL_LOOT_CHANCE : float = 1
enum TileType { EMPTY,ROCK,CRISTAL }
func setup():
z_index = 2
z_index = -1
func place_rocks(coords : Array[Vector2i], type := TileType.ROCK,on_finished : Callable = (func(): pass)):
if type != TileType.EMPTY: