Files
escape/Room.tscn
T
2023-01-29 22:35:02 +01:00

89 lines
4.6 KiB
Plaintext

[gd_scene load_steps=14 format=3 uid="uid://oyt6grfn555b"]
[ext_resource type="PackedScene" uid="uid://uclpovq4c8qo" path="res://Player.tscn" id="1_pmt73"]
[ext_resource type="Script" path="res://lichtknop.gd" id="2_3gw8d"]
[ext_resource type="AudioStream" uid="uid://dr8lncxad2pwm" path="res://click.wav" id="3_xbgmy"]
[ext_resource type="PackedScene" uid="uid://dmf833mkxpbsw" path="res://tekst.tscn" id="4_ha128"]
[ext_resource type="PackedScene" uid="uid://f1172fi8o77k" path="res://Slot.tscn" id="5_4wvuj"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_rahav"]
[sub_resource type="BoxMesh" id="BoxMesh_jo6fd"]
material = SubResource("StandardMaterial3D_rahav")
flip_faces = true
size = Vector3(4, 2, 4)
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_5jeew"]
data = PackedVector3Array(2, 1.25, 2, -2, 1.25, 2, -2, -1.25, 2, 2, -1.25, 2, 2, 1.25, 2, -2, -1.25, 2, -2, 1.25, -2, 2, 1.25, -2, 2, -1.25, -2, -2, -1.25, -2, -2, 1.25, -2, 2, -1.25, -2, 2, 1.25, -2, 2, 1.25, 2, 2, -1.25, 2, 2, -1.25, -2, 2, 1.25, -2, 2, -1.25, 2, -2, 1.25, 2, -2, 1.25, -2, -2, -1.25, -2, -2, -1.25, 2, -2, 1.25, 2, -2, -1.25, -2, -2, 1.25, 2, 2, 1.25, 2, 2, 1.25, -2, -2, 1.25, -2, -2, 1.25, 2, 2, 1.25, -2, 2, -1.25, 2, -2, -1.25, 2, -2, -1.25, -2, 2, -1.25, -2, 2, -1.25, 2, -2, -1.25, -2)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_fu6bs"]
albedo_color = Color(1, 0, 0.0470588, 1)
[sub_resource type="BoxMesh" id="BoxMesh_j4kk6"]
material = SubResource("StandardMaterial3D_fu6bs")
size = Vector3(0.5, 0.5, 0.2)
[sub_resource type="Environment" id="Environment_mkdd8"]
ambient_light_source = 1
ssr_max_steps = 128
ssr_fade_out = 5.65685
glow_enabled = true
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_rhkkr"]
data = PackedVector3Array(-0.05, 0.05, 0.05, 0.05, 0.05, 0.05, -0.05, -0.05, 0.05, 0.05, 0.05, 0.05, 0.05, -0.05, 0.05, -0.05, -0.05, 0.05, 0.05, 0.05, -0.05, -0.05, 0.05, -0.05, 0.05, -0.05, -0.05, -0.05, 0.05, -0.05, -0.05, -0.05, -0.05, 0.05, -0.05, -0.05, 0.05, 0.05, 0.05, 0.05, 0.05, -0.05, 0.05, -0.05, 0.05, 0.05, 0.05, -0.05, 0.05, -0.05, -0.05, 0.05, -0.05, 0.05, -0.05, 0.05, -0.05, -0.05, 0.05, 0.05, -0.05, -0.05, -0.05, -0.05, 0.05, 0.05, -0.05, -0.05, 0.05, -0.05, -0.05, -0.05, 0.05, 0.05, 0.05, -0.05, 0.05, 0.05, 0.05, 0.05, -0.05, -0.05, 0.05, 0.05, -0.05, 0.05, -0.05, 0.05, 0.05, -0.05, -0.05, -0.05, 0.05, 0.05, -0.05, 0.05, -0.05, -0.05, -0.05, 0.05, -0.05, 0.05, 0.05, -0.05, -0.05, -0.05, -0.05, -0.05)
[sub_resource type="BoxMesh" id="BoxMesh_nilbs"]
size = Vector3(0.1, 0.1, 0.1)
[node name="Room" type="Node3D"]
[node name="Walls" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.25, 0)
mesh = SubResource("BoxMesh_jo6fd")
[node name="StaticBody3D" type="StaticBody3D" parent="Walls"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Walls/StaticBody3D"]
shape = SubResource("ConcavePolygonShape3D_5jeew")
[node name="Player" parent="." instance=ExtResource("1_pmt73")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0106132, -2.38419e-07, 0.313933)
[node name="RedBox" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.557885, 0.25, -1.48253)
mesh = SubResource("BoxMesh_j4kk6")
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_mkdd8")
[node name="Lichtknopje" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.929229, 1.32078, -1.96962)
script = ExtResource("2_3gw8d")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Lichtknopje"]
shape = SubResource("ConcavePolygonShape3D_rhkkr")
[node name="Audio" type="AudioStreamPlayer3D" parent="Lichtknopje"]
transform = Transform3D(-0.999706, 0, 0.0242578, 0, 1, 0, -0.0242578, 0, -0.999706, 0, 0, 0)
stream = ExtResource("3_xbgmy")
unit_size = 1.0
[node name="Mesh" type="MeshInstance3D" parent="Lichtknopje"]
mesh = SubResource("BoxMesh_nilbs")
skeleton = NodePath("../..")
[node name="Light" type="OmniLight3D" parent="Lichtknopje"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.929229, -0.07078, 1.96962)
[node name="OmniLight3D2" type="OmniLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.25, 0)
light_energy = 0.01
[node name="tekst" parent="." instance=ExtResource("4_ha128")]
transform = Transform3D(0.15, 0, 0, 0, 0.15, 0, 0, 0, 0.15, -0.148372, 0.252077, 0.0359521)
[node name="Slot" parent="." instance=ExtResource("5_4wvuj")]
transform = Transform3D(-0.1, 0, -8.74228e-09, 0, 0.1, 0, 8.74228e-09, 0, -0.1, 1.04774, 1.27105, 1.97717)
[connection signal="input_event" from="Lichtknopje" to="Lichtknopje" method="_on_input_event"]