377 lines
12 KiB
Plaintext
377 lines
12 KiB
Plaintext
[gd_scene load_steps=31 format=2]
|
|
|
|
[ext_resource path="res://Player.gd" type="Script" id=1]
|
|
[ext_resource path="res://Camera.gd" type="Script" id=2]
|
|
[ext_resource path="res://Main.gd" type="Script" id=3]
|
|
[ext_resource path="res://assets/ground.png" type="Texture" id=4]
|
|
[ext_resource path="res://MoodStabilizer.gd" type="Script" id=5]
|
|
[ext_resource path="res://AntiDepressant.gd" type="Script" id=6]
|
|
[ext_resource path="res://HUD.gd" type="Script" id=7]
|
|
[ext_resource path="res://Candle.gd" type="Script" id=8]
|
|
|
|
[sub_resource type="CubeMesh" id=1]
|
|
|
|
[sub_resource type="SpatialMaterial" id=6]
|
|
albedo_texture = ExtResource( 4 )
|
|
uv1_scale = Vector3( 10, 10, 10 )
|
|
uv1_triplanar = true
|
|
uv2_triplanar = true
|
|
|
|
[sub_resource type="BoxShape" id=2]
|
|
|
|
[sub_resource type="CapsuleShape" id=3]
|
|
|
|
[sub_resource type="CapsuleMesh" id=11]
|
|
|
|
[sub_resource type="SpatialMaterial" id=12]
|
|
albedo_color = Color( 1, 0.890196, 0, 1 )
|
|
|
|
[sub_resource type="CapsuleShape" id=13]
|
|
|
|
[sub_resource type="CapsuleMesh" id=9]
|
|
|
|
[sub_resource type="SpatialMaterial" id=10]
|
|
albedo_color = Color( 0.85098, 0, 1, 1 )
|
|
|
|
[sub_resource type="CapsuleShape" id=8]
|
|
|
|
[sub_resource type="CubeMesh" id=4]
|
|
|
|
[sub_resource type="BoxShape" id=5]
|
|
|
|
[sub_resource type="CubeMesh" id=14]
|
|
|
|
[sub_resource type="BoxShape" id=15]
|
|
|
|
[sub_resource type="ParticlesMaterial" id=18]
|
|
emission_shape = 5
|
|
emission_ring_radius = 2.0
|
|
emission_ring_inner_radius = 0.0
|
|
emission_ring_height = 1.0
|
|
emission_ring_axis = Vector3( 0, 0, 1 )
|
|
gravity = Vector3( 0, 9.8, 0 )
|
|
initial_velocity = 1.0
|
|
initial_velocity_random = 1.0
|
|
anim_speed_random = 0.47
|
|
|
|
[sub_resource type="SpatialMaterial" id=19]
|
|
albedo_color = Color( 1, 0.4, 0, 1 )
|
|
emission_enabled = true
|
|
emission = Color( 1, 0.117647, 0, 1 )
|
|
emission_energy = 1.0
|
|
emission_operator = 0
|
|
emission_on_uv2 = false
|
|
|
|
[sub_resource type="SphereMesh" id=20]
|
|
material = SubResource( 19 )
|
|
radius = 0.311
|
|
height = 2.024
|
|
is_hemisphere = true
|
|
|
|
[sub_resource type="CubeMesh" id=21]
|
|
|
|
[sub_resource type="BoxShape" id=22]
|
|
|
|
[sub_resource type="CapsuleMesh" id=7]
|
|
|
|
[sub_resource type="PanoramaSky" id=17]
|
|
|
|
[sub_resource type="Environment" id=16]
|
|
background_sky = SubResource( 17 )
|
|
ambient_light_color = Color( 0.0470588, 0.0470588, 0.0470588, 1 )
|
|
ambient_light_energy = 1.45
|
|
ambient_light_sky_contribution = 0.0
|
|
|
|
[node name="Main" type="Node"]
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="Ground" type="StaticBody" parent="."]
|
|
transform = Transform( 500, 0, 0, 0, 1, 0, 0, 0, 500, 0, -1, 0 )
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="Ground"]
|
|
mesh = SubResource( 1 )
|
|
material/0 = SubResource( 6 )
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Ground"]
|
|
shape = SubResource( 2 )
|
|
|
|
[node name="Player" type="KinematicBody" parent="."]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Player"]
|
|
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 1.68515, 0 )
|
|
shape = SubResource( 3 )
|
|
|
|
[node name="CameraPivot" type="Position3D" parent="Player"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.36526, 0 )
|
|
|
|
[node name="Camera" type="Camera" parent="Player/CameraPivot"]
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="Flashlight" type="SpotLight" parent="Player/CameraPivot"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.392762, -0.758436 )
|
|
shadow_enabled = true
|
|
spot_range = 30.0
|
|
spot_attenuation = 4.14106
|
|
|
|
[node name="Collectibles" type="Node" parent="."]
|
|
|
|
[node name="AntiDepressants" type="Node" parent="Collectibles"]
|
|
|
|
[node name="AntiDepressant" type="Area" parent="Collectibles/AntiDepressants"]
|
|
transform = Transform( 0.5, 0, 0, 0, 0.353553, -0.353553, 0, 0.353553, 0.353553, -16.9333, 1.3376, 0 )
|
|
script = ExtResource( 6 )
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="Collectibles/AntiDepressants/AntiDepressant"]
|
|
mesh = SubResource( 11 )
|
|
material/0 = SubResource( 12 )
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Collectibles/AntiDepressants/AntiDepressant"]
|
|
shape = SubResource( 13 )
|
|
|
|
[node name="Timer" type="Timer" parent="Collectibles/AntiDepressants/AntiDepressant"]
|
|
one_shot = true
|
|
|
|
[node name="AntiDepressant2" type="Area" parent="Collectibles/AntiDepressants"]
|
|
transform = Transform( 0.5, 0, 0, 0, 0.353553, -0.353553, 0, 0.353553, 0.353553, -16.9333, 1.3376, 5.39893 )
|
|
script = ExtResource( 6 )
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="Collectibles/AntiDepressants/AntiDepressant2"]
|
|
mesh = SubResource( 11 )
|
|
material/0 = SubResource( 12 )
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Collectibles/AntiDepressants/AntiDepressant2"]
|
|
shape = SubResource( 13 )
|
|
|
|
[node name="Timer" type="Timer" parent="Collectibles/AntiDepressants/AntiDepressant2"]
|
|
one_shot = true
|
|
|
|
[node name="MoodStabilizers" type="Node" parent="Collectibles"]
|
|
|
|
[node name="MoodStabilizer" type="Area" parent="Collectibles/MoodStabilizers"]
|
|
transform = Transform( 0.5, 0, 0, 0, 0.353553, -0.353553, 0, 0.353553, 0.353553, 2.9262, 5.87371, -5.98535 )
|
|
script = ExtResource( 5 )
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="Collectibles/MoodStabilizers/MoodStabilizer"]
|
|
mesh = SubResource( 9 )
|
|
skeleton = NodePath("")
|
|
material/0 = SubResource( 10 )
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Collectibles/MoodStabilizers/MoodStabilizer"]
|
|
shape = SubResource( 8 )
|
|
|
|
[node name="Timer" type="Timer" parent="Collectibles/MoodStabilizers/MoodStabilizer"]
|
|
one_shot = true
|
|
|
|
[node name="MoodStabilizer2" type="Area" parent="Collectibles/MoodStabilizers"]
|
|
transform = Transform( 0.5, 0, 0, 0, 0.353553, -0.353553, 0, 0.353553, 0.353553, 2.9262, 5.87371, -8.70988 )
|
|
script = ExtResource( 5 )
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="Collectibles/MoodStabilizers/MoodStabilizer2"]
|
|
mesh = SubResource( 9 )
|
|
skeleton = NodePath("")
|
|
material/0 = SubResource( 10 )
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Collectibles/MoodStabilizers/MoodStabilizer2"]
|
|
shape = SubResource( 8 )
|
|
|
|
[node name="Timer" type="Timer" parent="Collectibles/MoodStabilizers/MoodStabilizer2"]
|
|
one_shot = true
|
|
|
|
[node name="HUD" type="CanvasLayer" parent="."]
|
|
script = ExtResource( 7 )
|
|
|
|
[node name="AntiDep" type="Label" parent="HUD"]
|
|
margin_left = 127.0
|
|
margin_top = 570.0
|
|
margin_right = 167.0
|
|
margin_bottom = 584.0
|
|
text = "0"
|
|
|
|
[node name="MoodStab" type="Label" parent="HUD"]
|
|
margin_left = 983.0
|
|
margin_top = 570.0
|
|
margin_right = 1023.0
|
|
margin_bottom = 584.0
|
|
text = "0"
|
|
|
|
[node name="AntiDepText" type="Label" parent="HUD"]
|
|
margin_left = 15.0
|
|
margin_top = 570.0
|
|
margin_right = 119.0
|
|
margin_bottom = 584.0
|
|
text = "Anti-Depressant:"
|
|
|
|
[node name="MoodStabText" type="Label" parent="HUD"]
|
|
margin_left = 874.0
|
|
margin_top = 571.0
|
|
margin_right = 973.0
|
|
margin_bottom = 585.0
|
|
text = "Mood Stabilizer:"
|
|
|
|
[node name="debug" type="Node" parent="HUD"]
|
|
|
|
[node name="Mood" type="Label" parent="HUD/debug"]
|
|
margin_right = 40.0
|
|
margin_bottom = 14.0
|
|
text = "0"
|
|
|
|
[node name="AntiDepActive" type="Label" parent="HUD/debug"]
|
|
margin_top = 15.0
|
|
margin_right = 40.0
|
|
margin_bottom = 29.0
|
|
text = "0"
|
|
|
|
[node name="MoodStabActive" type="Label" parent="HUD/debug"]
|
|
margin_top = 29.0
|
|
margin_right = 40.0
|
|
margin_bottom = 43.0
|
|
text = "0"
|
|
|
|
[node name="Obstacles" type="Node" parent="."]
|
|
|
|
[node name="Cube" type="StaticBody" parent="Obstacles"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.38033, -7.65238 )
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="Obstacles/Cube"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.3771, 0 )
|
|
mesh = SubResource( 4 )
|
|
material/0 = null
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Obstacles/Cube"]
|
|
shape = SubResource( 5 )
|
|
|
|
[node name="Cube2" type="StaticBody" parent="Obstacles"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 4.48708, 3.53697, -7.65238 )
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="Obstacles/Cube2"]
|
|
mesh = SubResource( 4 )
|
|
material/0 = null
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Obstacles/Cube2"]
|
|
shape = SubResource( 5 )
|
|
|
|
[node name="house" type="Node" parent="Obstacles"]
|
|
|
|
[node name="wall" type="StaticBody" parent="Obstacles/house"]
|
|
transform = Transform( -4.37114e-07, 0, 1, 0, 5, 0, -10, 0, -4.37114e-08, -12, 5, 25 )
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="Obstacles/house/wall"]
|
|
transform = Transform( 1, 0, -4.44089e-16, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
|
|
mesh = SubResource( 14 )
|
|
material/0 = null
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Obstacles/house/wall"]
|
|
shape = SubResource( 15 )
|
|
|
|
[node name="wall2" type="StaticBody" parent="Obstacles/house"]
|
|
transform = Transform( -4.37114e-07, 0, 1, 0, 5, 0, -10, 0, -4.37114e-08, 6, 5, 25 )
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="Obstacles/house/wall2"]
|
|
transform = Transform( 1, 0, -4.44089e-16, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
|
|
mesh = SubResource( 14 )
|
|
material/0 = null
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Obstacles/house/wall2"]
|
|
shape = SubResource( 15 )
|
|
|
|
[node name="wall3" type="StaticBody" parent="Obstacles/house"]
|
|
transform = Transform( 10, 0, 0, 0, 5, 0, 0, 0, 1, -3, 5, 34 )
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="Obstacles/house/wall3"]
|
|
transform = Transform( 1, 0, -4.44089e-16, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
|
|
mesh = SubResource( 14 )
|
|
material/0 = null
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Obstacles/house/wall3"]
|
|
shape = SubResource( 15 )
|
|
|
|
[node name="table" type="StaticBody" parent="Obstacles/house"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 1, 30 )
|
|
|
|
[node name="candle" type="StaticBody" parent="Obstacles/house/table"]
|
|
transform = Transform( 0.1, 0, 0, 0, 0.3, 0, 0, 0, 0.1, 0, 1.3, 0 )
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="Obstacles/house/table/candle"]
|
|
transform = Transform( 1, 0, -4.44089e-16, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
|
|
mesh = SubResource( 14 )
|
|
material/0 = null
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Obstacles/house/table/candle"]
|
|
shape = SubResource( 15 )
|
|
|
|
[node name="Candle" type="OmniLight" parent="Obstacles/house/table/candle"]
|
|
transform = Transform( 10, 0, 0, 0, 3.33333, 0, 0, 0, 10, 0, 1.62651, 0 )
|
|
light_color = Color( 1, 0.4, 0, 1 )
|
|
shadow_enabled = true
|
|
omni_range = 3.685
|
|
script = ExtResource( 8 )
|
|
|
|
[node name="Particles" type="Particles" parent="Obstacles/house/table/candle"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.97687, 0 )
|
|
cast_shadow = 0
|
|
process_material = SubResource( 18 )
|
|
draw_pass_1 = SubResource( 20 )
|
|
|
|
[node name="wick" type="StaticBody" parent="Obstacles/house/table/candle"]
|
|
transform = Transform( 0.1, 0, 0, 0, 0.3, 0, 0, 0, 0.1, 0, 1.20929, 0 )
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="Obstacles/house/table/candle/wick"]
|
|
mesh = SubResource( 21 )
|
|
material/0 = null
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Obstacles/house/table/candle/wick"]
|
|
shape = SubResource( 22 )
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="Obstacles/house/table"]
|
|
transform = Transform( 1, 0, -4.44089e-16, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
|
|
mesh = SubResource( 14 )
|
|
material/0 = null
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Obstacles/house/table"]
|
|
shape = SubResource( 15 )
|
|
|
|
[node name="roof" type="StaticBody" parent="Obstacles/house"]
|
|
transform = Transform( 10, 0, 0, 0, -4.37114e-07, -1, 0, 10, -4.37114e-08, -3, 9, 25 )
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="Obstacles/house/roof"]
|
|
transform = Transform( 1, 0, -4.44089e-16, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
|
|
mesh = SubResource( 14 )
|
|
material/0 = null
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Obstacles/house/roof"]
|
|
shape = SubResource( 15 )
|
|
|
|
[node name="Lighting" type="Node" parent="."]
|
|
|
|
[node name="SpotLight" type="SpotLight" parent="Lighting"]
|
|
transform = Transform( 1, 0, 0, 0, 0.5, 0.866025, 0, -0.866025, 0.5, 0, 13.7321, 0 )
|
|
light_energy = 1.175
|
|
shadow_enabled = true
|
|
spot_range = 32.621
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="Lighting/SpotLight"]
|
|
transform = Transform( 0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0 )
|
|
mesh = SubResource( 7 )
|
|
material/0 = null
|
|
|
|
[node name="Sun" type="DirectionalLight" parent="Lighting"]
|
|
transform = Transform( 0.906308, -0.397131, 0.144544, 0, 0.34202, 0.939693, -0.422618, -0.851651, 0.309975, 0, 58.3521, 1.32686 )
|
|
light_color = Color( 1, 0.964706, 0.858824, 1 )
|
|
light_energy = 0.706
|
|
shadow_enabled = true
|
|
|
|
[node name="Timer" type="Node" parent="."]
|
|
|
|
[node name="StableTimer" type="Timer" parent="Timer"]
|
|
one_shot = true
|
|
|
|
[node name="ManiaTimer" type="Timer" parent="Timer"]
|
|
one_shot = true
|
|
|
|
[node name="DepressionTimer" type="Timer" parent="Timer"]
|
|
one_shot = true
|
|
|
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
|
environment = SubResource( 16 )
|