State persistance between scenes

This commit is contained in:
Marco 2025-03-24 16:56:35 +01:00
commit 35254935e4
13 changed files with 142 additions and 27 deletions

View file

@ -65,7 +65,9 @@ theme = ExtResource("1_il8fq")
[node name="Label" type="Label" parent="ScrollContainer/HBoxContainer/HFlowContainer"]
layout_mode = 2
text = "Note: The options currently do something"
theme_override_constants/line_spacing = -4
text = "VSync and FullScreen detailed mode
selection coming soon"
[node name="Resolution" type="VBoxContainer" parent="ScrollContainer/HBoxContainer/HFlowContainer"]
visible = false
@ -88,16 +90,6 @@ layout_mode = 2
size_flags_vertical = 0
text = "Full Screen"
[node name="CheckBox3" type="CheckBox" parent="ScrollContainer/HBoxContainer/HFlowContainer"]
layout_mode = 2
size_flags_vertical = 0
disabled = true
text = "Disabled"
[node name="CheckBox4" type="CheckBox" parent="ScrollContainer/HBoxContainer/HFlowContainer"]
layout_mode = 2
text = "adsfdsaf"
[node name="VBoxContainer3" type="VBoxContainer" parent="ScrollContainer/HBoxContainer"]
layout_mode = 2

View file

@ -1,8 +1,7 @@
[gd_scene load_steps=33 format=4 uid="uid://bx31ou6tw3kd1"]
[gd_scene load_steps=32 format=4 uid="uid://bx31ou6tw3kd1"]
[ext_resource type="Script" uid="uid://doxmbokehw8ci" path="res://Scripts/GameManager.cs" id="1_6sq7s"]
[ext_resource type="PackedScene" uid="uid://c4pr2707hbeph" path="res://Scenes/Actors/fsm_player.tscn" id="2_cicvv"]
[ext_resource type="Script" uid="uid://epnwjptvks3t" path="res://Scripts/Resources/LootItem.cs" id="3_8anae"]
[ext_resource type="Script" uid="uid://mja0rk7n2kln" path="res://Scripts/Resources/MapStartDataResource.cs" id="4_tgwif"]
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="5_vmlpc"]
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="6_sv42c"]
@ -31,7 +30,7 @@
[sub_resource type="Resource" id="Resource_53p3c"]
script = ExtResource("4_tgwif")
EggIndex = 0
StartingEquipment = Array[ExtResource("3_8anae")]([null])
StartingEquipment = [null]
[sub_resource type="Resource" id="Resource_2ugqu"]
script = ExtResource("11_esmuk")
@ -180,6 +179,7 @@ position = Vector2(292, 408)
[node name="LevelTeleporter" parent="Tilemaps/Actors" instance=ExtResource("18_tbppe")]
position = Vector2(112, 304)
LevelPath = "res://Scenes/Maps/Level2.tscn"
SaveInventory = true
[node name="ControlPad" parent="Tilemaps" node_paths=PackedStringArray("Targets") instance=ExtResource("19_nxss7")]
position = Vector2(134, 371)

View file

@ -581,6 +581,7 @@ position = Vector2(-1688, -232)
[node name="LevelTeleporter" parent="Parallax2D/Factory Tilemaps/LevelProps" instance=ExtResource("44_q5xi2")]
position = Vector2(-2000, -867)
LevelPath = "res://Scenes/Maps/RebelBase.tscn"
SaveInventory = true
IsEnabled = true
[node name="BigTank" parent="Parallax2D/Factory Tilemaps/LevelProps" instance=ExtResource("45_5qg27")]
@ -649,7 +650,7 @@ IsEnabled = true
Target = NodePath("../DebugTeleporter")
[node name="DebugTeleporter" parent="Parallax2D/Factory Tilemaps/LevelProps" instance=ExtResource("30_8fdby")]
position = Vector2(-1118, 206)
position = Vector2(-2002, -817)
Invisible = true
metadata/_edit_group_ = true