mooiere safe. soort van

This commit is contained in:
2023-01-31 22:05:28 +01:00
parent 9b7b25ff94
commit e046ed821e
5 changed files with 43 additions and 56 deletions
Binary file not shown.
+10 -10
View File
File diff suppressed because one or more lines are too long
+30 -30
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -31,7 +31,7 @@ ssr_max_steps = 128
ssr_fade_out = 5.65685 ssr_fade_out = 5.65685
glow_enabled = true glow_enabled = true
volumetric_fog_enabled = true volumetric_fog_enabled = true
volumetric_fog_density = 0.01 volumetric_fog_density = 0.02
volumetric_fog_anisotropy = 0.9 volumetric_fog_anisotropy = 0.9
volumetric_fog_length = 16.0 volumetric_fog_length = 16.0
volumetric_fog_detail_spread = 5.2233 volumetric_fog_detail_spread = 5.2233
@@ -107,7 +107,7 @@ transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, -0.182896, 0.257219, 0.
transform = Transform3D(0.3, 0, 0, 0, 0.3, 0, 0, 0, 0.3, -1.66055, 1.15536, -0.729811) transform = Transform3D(0.3, 0, 0, 0, 0.3, 0, 0, 0, 0.3, -1.66055, 1.15536, -0.729811)
[node name="FlashLight" type="MeshInstance3D" parent="safe"] [node name="FlashLight" type="MeshInstance3D" parent="safe"]
transform = Transform3D(0.266296, 0.138128, -0.00264013, 0, 0.00573306, 0.299945, 0.138153, -0.266248, 0.00508897, 0, -0.716513, 0) transform = Transform3D(0.193185, -0.0517638, -2.26267e-09, 0, -8.74228e-09, 0.2, -0.0517638, -0.193185, -8.44439e-09, 0.00842619, -0.772965, -0.35037)
mesh = SubResource("CapsuleMesh_3d1gr") mesh = SubResource("CapsuleMesh_3d1gr")
[node name="FlashLight" type="StaticBody3D" parent="safe/FlashLight"] [node name="FlashLight" type="StaticBody3D" parent="safe/FlashLight"]
+1 -14
View File
@@ -6,15 +6,7 @@ var i = 0
func _ready(): func _ready():
sequence = $".."/Painting.sequence sequence = $".."/Painting.sequence
var bmat = StandardMaterial3D.new()
bmat.emission_enabled = true
bmat.albedo_color = Color.LIGHT_SLATE_GRAY
bmat.emission = Color.LIGHT_BLUE
bmat.emission_intensity = 0.05
$ButtonUp.set_surface_override_material(0, bmat)
$ButtonLeft.set_surface_override_material(0, bmat)
$ButtonDown.set_surface_override_material(0, bmat)
$ButtonRight.set_surface_override_material(0, bmat)
func add_sequence_guess(dir): func add_sequence_guess(dir):
if sequence[i] == dir: if sequence[i] == dir:
@@ -22,10 +14,6 @@ func add_sequence_guess(dir):
i += 1 i += 1
if (i == sequence.size()): if (i == sequence.size()):
$Door.visible = false $Door.visible = false
$ButtonUp.visible = false
$ButtonDown.visible = false
$ButtonLeft.visible = false
$ButtonRight.visible = false
i = 0 i = 0
else: else:
$Reset.playing = true $Reset.playing = true
@@ -47,7 +35,6 @@ func _on_right_input_event(camera, event, position, normal, shape_idx):
if event is InputEventMouseButton and event.is_action_pressed("interact"): if event is InputEventMouseButton and event.is_action_pressed("interact"):
add_sequence_guess(1) add_sequence_guess(1)
func _on_flash_light_input_event(camera, event, position, normal, shape_idx): func _on_flash_light_input_event(camera, event, position, normal, shape_idx):
if event is InputEventMouseButton and event.is_action_pressed("interact"): if event is InputEventMouseButton and event.is_action_pressed("interact"):
$FlashLight.visible = false $FlashLight.visible = false