From 7ee9a14b0119f17808f10b40be3caf68a191bfdb Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 26 Aug 2021 00:18:39 +0200 Subject: [PATCH] Small changes to the test dungeon. --- game/test_dungeon/Dungeon.tscn | 12 ++++++++++++ game/test_dungeon/Dungtest.tscn | 13 +++---------- 2 files changed, 15 insertions(+), 10 deletions(-) create mode 100644 game/test_dungeon/Dungeon.tscn diff --git a/game/test_dungeon/Dungeon.tscn b/game/test_dungeon/Dungeon.tscn new file mode 100644 index 00000000..eab7fb86 --- /dev/null +++ b/game/test_dungeon/Dungeon.tscn @@ -0,0 +1,12 @@ +[gd_scene load_steps=6 format=2] + +[ext_resource path="res://scripts/dungeons/dungeon.gd" type="Script" id=1] +[ext_resource path="res://test_rooms/Room5.tres" type="PropData" id=2] +[ext_resource path="res://test_rooms/Room4.tres" type="PropData" id=3] +[ext_resource path="res://test_rooms/Room3.tres" type="PropData" id=4] +[ext_resource path="res://test_rooms/Room1.tres" type="PropData" id=5] + +[node name="Dungeon" type="Spatial"] +script = ExtResource( 1 ) +start_room = ExtResource( 5 ) +rooms = [ ExtResource( 4 ), ExtResource( 3 ), ExtResource( 2 ) ] diff --git a/game/test_dungeon/Dungtest.tscn b/game/test_dungeon/Dungtest.tscn index 6d2f6ea7..357bf6ee 100644 --- a/game/test_dungeon/Dungtest.tscn +++ b/game/test_dungeon/Dungtest.tscn @@ -1,11 +1,7 @@ -[gd_scene load_steps=9 format=2] +[gd_scene load_steps=5 format=2] -[ext_resource path="res://scripts/dungeons/dungeon.gd" type="Script" id=1] -[ext_resource path="res://test_rooms/Room1.tres" type="PropData" id=2] +[ext_resource path="res://test_dungeon/Dungeon.tscn" type="PackedScene" id=1] [ext_resource path="res://debug/FreeLookCamera.gd" type="Script" id=3] -[ext_resource path="res://test_rooms/Room3.tres" type="PropData" id=4] -[ext_resource path="res://test_rooms/Room5.tres" type="PropData" id=5] -[ext_resource path="res://test_rooms/Room4.tres" type="PropData" id=6] [sub_resource type="ProceduralSky" id=2] @@ -23,10 +19,7 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 1, -3 ) current = true script = ExtResource( 3 ) -[node name="Dungeon" type="Spatial" parent="."] -script = ExtResource( 1 ) -start_room = ExtResource( 2 ) -rooms = [ ExtResource( 4 ), ExtResource( 6 ), ExtResource( 5 ) ] +[node name="Dungeon" parent="." instance=ExtResource( 1 )] [node name="WorldEnvironment" type="WorldEnvironment" parent="."] environment = SubResource( 1 )