Remade the test rooms with TiledWalls. Also committing the rest of the test stuff I made during the last few days to test the portal system.

This commit is contained in:
Relintai 2021-08-18 17:54:43 +02:00
parent 82c9c627b7
commit 65fba11bcd
7 changed files with 264 additions and 867 deletions

22
game/test_rooms/Room1.gd Normal file
View File

@ -0,0 +1,22 @@
tool
extends Room
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func _notification(what):
if what == NOTIFICATION_ENTER_GAMEPLAY:
print("aaaa")
elif what == NOTIFICATION_EXIT_GAMEPLAY:
print("bbbb")
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass

View File

@ -1,318 +1,64 @@
[gd_scene load_steps=14 format=2] [gd_scene load_steps=6 format=2]
[ext_resource path="res://modules/core_models/wall_xn.gltf" type="MeshDataResource" id=1]
[ext_resource path="res://modules/planets/test_planet/voxel_library/textures/test_brick_albedo.png" type="Texture" id=2]
[ext_resource path="res://modules/core_models/wall_xp.gltf" type="MeshDataResource" id=3]
[ext_resource path="res://modules/planets/test_planet/voxel_library/textures/stone_dungeon_1_albedo.png" type="Texture" id=4] [ext_resource path="res://modules/planets/test_planet/voxel_library/textures/stone_dungeon_1_albedo.png" type="Texture" id=4]
[ext_resource path="res://modules/core_models/wall_zn.gltf" type="MeshDataResource" id=5] [ext_resource path="res://modules/core_models/wall_zn.gltf" type="MeshDataResource" id=5]
[ext_resource path="res://modules/core_models/wall_zp.gltf" type="MeshDataResource" id=6] [ext_resource path="res://test_rooms/Room1.gd" type="Script" id=9]
[ext_resource path="res://modules/core_models/ceiling.gltf" type="MeshDataResource" id=7] [ext_resource path="res://test_rooms/test2_tiledwalldata.tres" type="TiledWallData" id=10]
[ext_resource path="res://modules/core_models/floor.gltf" type="MeshDataResource" id=8]
[sub_resource type="SpatialMaterial" id=1]
albedo_texture = ExtResource( 4 )
[sub_resource type="SpatialMaterial" id=2]
albedo_texture = ExtResource( 4 )
[sub_resource type="SpatialMaterial" id=3] [sub_resource type="SpatialMaterial" id=3]
albedo_texture = ExtResource( 4 ) albedo_texture = ExtResource( 4 )
[sub_resource type="SpatialMaterial" id=4]
albedo_texture = ExtResource( 4 )
[sub_resource type="SpatialMaterial" id=5]
albedo_texture = ExtResource( 4 )
[node name="Room" type="Room"] [node name="Room" type="Room"]
points = PoolVector3Array( 5.01, -0.01, -6.01, 5.01, -0.01, 0.00999975, 5.01, 3.01, 0.00999975, 5.01, 3.01, -6.01, -0.0100001, -0.01, -6.01, -0.0100001, 3.01, -6.01, -0.0100001, -0.01, 0.00999975, -0.0100001, 0.745, 0.00999975, -0.0100001, 3.01, 0.00999975, 0.826667, 3.01, 0.00999975, 0.826667, 0.745, 0.00999975 )
script = ExtResource( 9 )
[node name="Portal" type="Portal" parent="."] [node name="Portal" type="Portal" parent="."]
transform = Transform( -1, 0, -9.61651e-07, 0, 1, 0, 9.61651e-07, 0, -1, 2, 1, 0 ) transform = Transform( -1, 0, -9.61651e-07, 0, 1, 0, 9.61651e-07, 0, -1, 2, 1, 0 )
points = PoolVector2Array( -1, 1, -1, -1, 0, -1, 0, 1 ) points = PoolVector2Array( -1, 1, -1, -1, 0, -1, 0, 1 )
[node name="Wallxp" type="Spatial" parent="."] [node name="WallXP" type="TiledWall" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 5, 0, 0 ) transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 5, 0, 0 )
width = 6
heigth = 3
data = ExtResource( 10 )
[node name="WallSeg" type="Spatial" parent="Wallxp"] [node name="WallXN" type="TiledWall" parent="."]
transform = Transform( 1.19249e-08, 0, -1, 0, 1, 0, 1, 0, 1.19249e-08, 0, 0, -6 )
width = 6
heigth = 3
data = ExtResource( 10 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="Wallxp/WallSeg"] [node name="WallZN" type="TiledWall" parent="."]
mesh_data = ExtResource( 1 ) transform = Transform( -1, 0, 3.17865e-08, 0, 1, 0, -3.17865e-08, 0, -1, 5, 0, -6 )
texture = ExtResource( 2 ) width = 5
material = SubResource( 1 ) heigth = 3
data = ExtResource( 10 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="Wallxp/WallSeg"] [node name="Floor" type="TiledWall" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 ) transform = Transform( -1, 0, 3.17865e-08, -3.17865e-08, -5.96046e-08, -1, 2.66454e-15, -1, 5.96046e-08, 5, 0, 0 )
mesh_data = ExtResource( 1 ) width = 5
texture = ExtResource( 2 ) heigth = 6
material = SubResource( 1 ) data = ExtResource( 10 )
[node name="MeshDataInstance3" type="MeshDataInstance" parent="Wallxp/WallSeg"] [node name="Ceiling" type="TiledWall" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 ) transform = Transform( -1, 0, 3.17865e-08, 3.17865e-08, 5.96046e-08, 1, -1.77636e-15, 1, -5.96046e-08, 5, 3, -6 )
mesh_data = ExtResource( 1 ) width = 5
texture = ExtResource( 2 ) heigth = 6
material = SubResource( 1 ) data = ExtResource( 10 )
[node name="WallSeg2" type="Spatial" parent="Wallxp"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="Wallxp/WallSeg2"]
mesh_data = ExtResource( 1 )
texture = ExtResource( 4 )
material = SubResource( 1 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="Wallxp/WallSeg2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
mesh_data = ExtResource( 1 )
texture = ExtResource( 4 )
material = SubResource( 1 )
[node name="MeshDataInstance3" type="MeshDataInstance" parent="Wallxp/WallSeg2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
mesh_data = ExtResource( 1 )
texture = ExtResource( 4 )
material = SubResource( 1 )
[node name="WallSeg3" type="Spatial" parent="Wallxp"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="Wallxp/WallSeg3"]
mesh_data = ExtResource( 1 )
texture = ExtResource( 4 )
material = SubResource( 1 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="Wallxp/WallSeg3"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
mesh_data = ExtResource( 1 )
texture = ExtResource( 4 )
material = SubResource( 1 )
[node name="MeshDataInstance3" type="MeshDataInstance" parent="Wallxp/WallSeg3"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
mesh_data = ExtResource( 1 )
texture = ExtResource( 4 )
material = SubResource( 1 )
[node name="WallSeg4" type="Spatial" parent="Wallxp"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -3 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="Wallxp/WallSeg4"]
mesh_data = ExtResource( 1 )
texture = ExtResource( 4 )
material = SubResource( 1 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="Wallxp/WallSeg4"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
mesh_data = ExtResource( 1 )
texture = ExtResource( 4 )
material = SubResource( 1 )
[node name="MeshDataInstance3" type="MeshDataInstance" parent="Wallxp/WallSeg4"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
mesh_data = ExtResource( 1 )
texture = ExtResource( 4 )
material = SubResource( 1 )
[node name="WallSeg5" type="Spatial" parent="Wallxp"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -4 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="Wallxp/WallSeg5"]
mesh_data = ExtResource( 1 )
texture = ExtResource( 4 )
material = SubResource( 1 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="Wallxp/WallSeg5"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
mesh_data = ExtResource( 1 )
texture = ExtResource( 4 )
material = SubResource( 1 )
[node name="MeshDataInstance3" type="MeshDataInstance" parent="Wallxp/WallSeg5"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
mesh_data = ExtResource( 1 )
texture = ExtResource( 4 )
material = SubResource( 1 )
[node name="WallSeg6" type="Spatial" parent="Wallxp"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -5 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="Wallxp/WallSeg6"]
mesh_data = ExtResource( 1 )
texture = ExtResource( 4 )
material = SubResource( 1 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="Wallxp/WallSeg6"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
mesh_data = ExtResource( 1 )
texture = ExtResource( 4 )
material = SubResource( 1 )
[node name="MeshDataInstance3" type="MeshDataInstance" parent="Wallxp/WallSeg6"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
mesh_data = ExtResource( 1 )
texture = ExtResource( 4 )
material = SubResource( 1 )
[node name="wallxm" type="Spatial" parent="."]
[node name="WallSegment" type="Spatial" parent="wallxm"]
[node name="MeshDataInstance" type="MeshDataInstance" parent="wallxm/WallSegment"]
mesh_data = ExtResource( 3 )
texture = ExtResource( 4 )
material = SubResource( 2 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="wallxm/WallSegment"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
mesh_data = ExtResource( 3 )
texture = ExtResource( 4 )
material = SubResource( 2 )
[node name="MeshDataInstance3" type="MeshDataInstance" parent="wallxm/WallSegment"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
mesh_data = ExtResource( 3 )
texture = ExtResource( 4 )
material = SubResource( 2 )
[node name="WallSegment2" type="Spatial" parent="wallxm"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="wallxm/WallSegment2"]
mesh_data = ExtResource( 3 )
texture = ExtResource( 4 )
material = SubResource( 2 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="wallxm/WallSegment2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
mesh_data = ExtResource( 3 )
texture = ExtResource( 4 )
material = SubResource( 2 )
[node name="MeshDataInstance3" type="MeshDataInstance" parent="wallxm/WallSegment2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
mesh_data = ExtResource( 3 )
texture = ExtResource( 4 )
material = SubResource( 2 )
[node name="WallSegment3" type="Spatial" parent="wallxm"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="wallxm/WallSegment3"]
mesh_data = ExtResource( 3 )
texture = ExtResource( 4 )
material = SubResource( 2 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="wallxm/WallSegment3"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
mesh_data = ExtResource( 3 )
texture = ExtResource( 4 )
material = SubResource( 2 )
[node name="MeshDataInstance3" type="MeshDataInstance" parent="wallxm/WallSegment3"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
mesh_data = ExtResource( 3 )
texture = ExtResource( 4 )
material = SubResource( 2 )
[node name="WallSegment4" type="Spatial" parent="wallxm"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -3 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="wallxm/WallSegment4"]
mesh_data = ExtResource( 3 )
texture = ExtResource( 4 )
material = SubResource( 2 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="wallxm/WallSegment4"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
mesh_data = ExtResource( 3 )
texture = ExtResource( 4 )
material = SubResource( 2 )
[node name="MeshDataInstance3" type="MeshDataInstance" parent="wallxm/WallSegment4"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
mesh_data = ExtResource( 3 )
texture = ExtResource( 4 )
material = SubResource( 2 )
[node name="WallSegment5" type="Spatial" parent="wallxm"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -4 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="wallxm/WallSegment5"]
mesh_data = ExtResource( 3 )
texture = ExtResource( 4 )
material = SubResource( 2 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="wallxm/WallSegment5"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
mesh_data = ExtResource( 3 )
texture = ExtResource( 4 )
material = SubResource( 2 )
[node name="MeshDataInstance3" type="MeshDataInstance" parent="wallxm/WallSegment5"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
mesh_data = ExtResource( 3 )
texture = ExtResource( 4 )
material = SubResource( 2 )
[node name="WallSegment6" type="Spatial" parent="wallxm"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -5 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="wallxm/WallSegment6"]
mesh_data = ExtResource( 3 )
texture = ExtResource( 4 )
material = SubResource( 2 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="wallxm/WallSegment6"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
mesh_data = ExtResource( 3 )
texture = ExtResource( 4 )
material = SubResource( 2 )
[node name="MeshDataInstance3" type="MeshDataInstance" parent="wallxm/WallSegment6"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
mesh_data = ExtResource( 3 )
texture = ExtResource( 4 )
material = SubResource( 2 )
[node name="wallzp" type="Spatial" parent="."] [node name="wallzp" type="Spatial" parent="."]
[node name="wallsegment" type="Spatial" parent="wallzp"] [node name="WallZN2" type="TiledWall" parent="wallzp"]
transform = Transform( 1, 0, 5.56363e-08, 0, 1, 0, -5.56363e-08, 0, 1, 0, 0, 0 )
width = 2
heigth = 3
data = ExtResource( 10 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="wallzp/wallsegment"] [node name="WallZN3" type="TiledWall" parent="wallzp"]
mesh_data = ExtResource( 5 ) transform = Transform( 1, 0, 5.56363e-08, 0, 1, 0, -5.56363e-08, 0, 1, 3, 0, 0 )
texture = ExtResource( 4 ) width = 2
material = SubResource( 3 ) heigth = 3
data = ExtResource( 10 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="wallzp/wallsegment"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
mesh_data = ExtResource( 5 )
texture = ExtResource( 4 )
material = SubResource( 3 )
[node name="MeshDataInstance3" type="MeshDataInstance" parent="wallzp/wallsegment"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
mesh_data = ExtResource( 5 )
texture = ExtResource( 4 )
material = SubResource( 3 )
[node name="wallsegment2" type="Spatial" parent="wallzp"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="wallzp/wallsegment2"]
mesh_data = ExtResource( 5 )
texture = ExtResource( 4 )
material = SubResource( 3 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="wallzp/wallsegment2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
mesh_data = ExtResource( 5 )
texture = ExtResource( 4 )
material = SubResource( 3 )
[node name="MeshDataInstance3" type="MeshDataInstance" parent="wallzp/wallsegment2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
mesh_data = ExtResource( 5 )
texture = ExtResource( 4 )
material = SubResource( 3 )
[node name="wallsegment3" type="Spatial" parent="wallzp"] [node name="wallsegment3" type="Spatial" parent="wallzp"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, 0 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, 0 )
@ -322,576 +68,3 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
mesh_data = ExtResource( 5 ) mesh_data = ExtResource( 5 )
texture = ExtResource( 4 ) texture = ExtResource( 4 )
material = SubResource( 3 ) material = SubResource( 3 )
[node name="wallsegment4" type="Spatial" parent="wallzp"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, 0 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="wallzp/wallsegment4"]
mesh_data = ExtResource( 5 )
texture = ExtResource( 4 )
material = SubResource( 3 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="wallzp/wallsegment4"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
mesh_data = ExtResource( 5 )
texture = ExtResource( 4 )
material = SubResource( 3 )
[node name="MeshDataInstance3" type="MeshDataInstance" parent="wallzp/wallsegment4"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
mesh_data = ExtResource( 5 )
texture = ExtResource( 4 )
material = SubResource( 3 )
[node name="wallsegment5" type="Spatial" parent="wallzp"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, 0 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="wallzp/wallsegment5"]
mesh_data = ExtResource( 5 )
texture = ExtResource( 4 )
material = SubResource( 3 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="wallzp/wallsegment5"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
mesh_data = ExtResource( 5 )
texture = ExtResource( 4 )
material = SubResource( 3 )
[node name="MeshDataInstance3" type="MeshDataInstance" parent="wallzp/wallsegment5"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
mesh_data = ExtResource( 5 )
texture = ExtResource( 4 )
material = SubResource( 3 )
[node name="wallzm" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -6 )
[node name="wallsegment" type="Spatial" parent="wallzm"]
[node name="MeshDataInstance" type="MeshDataInstance" parent="wallzm/wallsegment"]
mesh_data = ExtResource( 6 )
texture = ExtResource( 4 )
material = SubResource( 4 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="wallzm/wallsegment"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
mesh_data = ExtResource( 6 )
texture = ExtResource( 4 )
material = SubResource( 4 )
[node name="MeshDataInstance3" type="MeshDataInstance" parent="wallzm/wallsegment"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
mesh_data = ExtResource( 6 )
texture = ExtResource( 4 )
material = SubResource( 4 )
[node name="wallsegment2" type="Spatial" parent="wallzm"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="wallzm/wallsegment2"]
mesh_data = ExtResource( 6 )
texture = ExtResource( 4 )
material = SubResource( 4 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="wallzm/wallsegment2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
mesh_data = ExtResource( 6 )
texture = ExtResource( 4 )
material = SubResource( 4 )
[node name="MeshDataInstance3" type="MeshDataInstance" parent="wallzm/wallsegment2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
mesh_data = ExtResource( 6 )
texture = ExtResource( 4 )
material = SubResource( 4 )
[node name="wallsegment3" type="Spatial" parent="wallzm"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, 0 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="wallzm/wallsegment3"]
mesh_data = ExtResource( 6 )
texture = ExtResource( 4 )
material = SubResource( 4 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="wallzm/wallsegment3"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
mesh_data = ExtResource( 6 )
texture = ExtResource( 4 )
material = SubResource( 4 )
[node name="MeshDataInstance3" type="MeshDataInstance" parent="wallzm/wallsegment3"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
mesh_data = ExtResource( 6 )
texture = ExtResource( 4 )
material = SubResource( 4 )
[node name="wallsegment4" type="Spatial" parent="wallzm"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, 0 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="wallzm/wallsegment4"]
mesh_data = ExtResource( 6 )
texture = ExtResource( 4 )
material = SubResource( 4 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="wallzm/wallsegment4"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
mesh_data = ExtResource( 6 )
texture = ExtResource( 4 )
material = SubResource( 4 )
[node name="MeshDataInstance3" type="MeshDataInstance" parent="wallzm/wallsegment4"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
mesh_data = ExtResource( 6 )
texture = ExtResource( 4 )
material = SubResource( 4 )
[node name="wallsegment5" type="Spatial" parent="wallzm"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, 0 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="wallzm/wallsegment5"]
mesh_data = ExtResource( 6 )
texture = ExtResource( 4 )
material = SubResource( 4 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="wallzm/wallsegment5"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
mesh_data = ExtResource( 6 )
texture = ExtResource( 4 )
material = SubResource( 4 )
[node name="MeshDataInstance3" type="MeshDataInstance" parent="wallzm/wallsegment5"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
mesh_data = ExtResource( 6 )
texture = ExtResource( 4 )
material = SubResource( 4 )
[node name="fc" type="Spatial" parent="."]
[node name="line" type="Spatial" parent="fc"]
[node name="Segment" type="Spatial" parent="fc/line"]
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line/Segment"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line/Segment"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment2" type="Spatial" parent="fc/line"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line/Segment2"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line/Segment2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment3" type="Spatial" parent="fc/line"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line/Segment3"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line/Segment3"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment4" type="Spatial" parent="fc/line"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -3 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line/Segment4"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line/Segment4"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment5" type="Spatial" parent="fc/line"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -4 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line/Segment5"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line/Segment5"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment6" type="Spatial" parent="fc/line"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -5 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line/Segment6"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line/Segment6"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="line2" type="Spatial" parent="fc"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0 )
[node name="Segment" type="Spatial" parent="fc/line2"]
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line2/Segment"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line2/Segment"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment2" type="Spatial" parent="fc/line2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line2/Segment2"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line2/Segment2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment3" type="Spatial" parent="fc/line2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line2/Segment3"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line2/Segment3"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment4" type="Spatial" parent="fc/line2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -3 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line2/Segment4"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line2/Segment4"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment5" type="Spatial" parent="fc/line2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -4 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line2/Segment5"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line2/Segment5"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment6" type="Spatial" parent="fc/line2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -5 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line2/Segment6"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line2/Segment6"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="line3" type="Spatial" parent="fc"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, 0 )
[node name="Segment" type="Spatial" parent="fc/line3"]
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line3/Segment"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line3/Segment"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment2" type="Spatial" parent="fc/line3"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line3/Segment2"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line3/Segment2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment3" type="Spatial" parent="fc/line3"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line3/Segment3"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line3/Segment3"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment4" type="Spatial" parent="fc/line3"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -3 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line3/Segment4"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line3/Segment4"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment5" type="Spatial" parent="fc/line3"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -4 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line3/Segment5"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line3/Segment5"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment6" type="Spatial" parent="fc/line3"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -5 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line3/Segment6"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line3/Segment6"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="line4" type="Spatial" parent="fc"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, 0 )
[node name="Segment" type="Spatial" parent="fc/line4"]
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line4/Segment"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line4/Segment"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment2" type="Spatial" parent="fc/line4"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line4/Segment2"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line4/Segment2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment3" type="Spatial" parent="fc/line4"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line4/Segment3"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line4/Segment3"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment4" type="Spatial" parent="fc/line4"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -3 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line4/Segment4"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line4/Segment4"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment5" type="Spatial" parent="fc/line4"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -4 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line4/Segment5"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line4/Segment5"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment6" type="Spatial" parent="fc/line4"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -5 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line4/Segment6"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line4/Segment6"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="line5" type="Spatial" parent="fc"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, 0 )
[node name="Segment" type="Spatial" parent="fc/line5"]
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line5/Segment"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line5/Segment"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment2" type="Spatial" parent="fc/line5"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line5/Segment2"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line5/Segment2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment3" type="Spatial" parent="fc/line5"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line5/Segment3"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line5/Segment3"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment4" type="Spatial" parent="fc/line5"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -3 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line5/Segment4"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line5/Segment4"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment5" type="Spatial" parent="fc/line5"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -4 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line5/Segment5"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line5/Segment5"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="Segment6" type="Spatial" parent="fc/line5"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -5 )
[node name="MeshDataInstance" type="MeshDataInstance" parent="fc/line5/Segment6"]
mesh_data = ExtResource( 8 )
texture = ExtResource( 4 )
material = SubResource( 5 )
[node name="MeshDataInstance2" type="MeshDataInstance" parent="fc/line5/Segment6"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -1 )
mesh_data = ExtResource( 7 )
texture = ExtResource( 4 )
material = SubResource( 5 )

114
game/test_rooms/Room2.tscn Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,25 @@
tool
extends RoomManager
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func _enter_tree():
call_deferred("rooms_convert")
func _notification(what):
if what == NOTIFICATION_ENTER_GAMEPLAY:
print("NOTIFICATION_ENTER_GAMEPLAY")
elif what == NOTIFICATION_EXIT_GAMEPLAY:
print("NOTIFICATION_EXIT_GAMEPLAY")
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass

View File

@ -0,0 +1,31 @@
tool
extends VisibilityNotifier
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
connect("screen_entered", self, "screen_enter")
connect("screen_exited", self, "screen_exit")
pass # Replace with function body.
func screen_enter():
print("screen_enter")
func screen_exit():
print("screen_exit")
func _notification(what):
if what == NOTIFICATION_ENTER_GAMEPLAY:
print("aaaa")
elif what == NOTIFICATION_EXIT_GAMEPLAY:
print("bbbb")
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass

View File

@ -0,0 +1,23 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://test_rooms/Room1.tscn" type="PackedScene" id=1]
[ext_resource path="res://test_rooms/Room2.tscn" type="PackedScene" id=2]
[ext_resource path="res://test_rooms/RoomManagerGD.gd" type="Script" id=3]
[node name="Spatial" type="Spatial"]
[node name="RoomManager" type="RoomManager" parent="."]
roomlist = NodePath(".")
gameplay_monitor = true
script = ExtResource( 3 )
[node name="Room" parent="RoomManager" instance=ExtResource( 2 )]
transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 5, 0, 0 )
[node name="Room2" parent="RoomManager" instance=ExtResource( 1 )]
[node name="Camera" type="Camera" parent="."]
transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 3.97602, 1, 0.929775 )
current = true
[node name="DirectionalLight" type="DirectionalLight" parent="."]

View File

@ -0,0 +1,9 @@
[gd_resource type="TiledWallData" load_steps=3 format=2]
[ext_resource path="res://modules/core/materials/6_standard_material_prop_nouv2.tres" type="Material" id=5]
[ext_resource path="res://modules/planets/test_planet/voxel_library/textures/stone_dungeon_1_albedo.png" type="Texture" id=6]
[resource]
tiling_type = 3
textures = [ ExtResource( 6 ) ]
materials = [ ExtResource( 5 ) ]