updates. herorganizatie en schilderij

This commit is contained in:
2023-01-31 15:46:07 +01:00
parent 2550625baf
commit 2f6967084e
25 changed files with 198 additions and 57 deletions
+18
View File
@@ -0,0 +1,18 @@
extends Node3D
func _ready():
pass
func get_number():
return 1000 * $Body/"1"/Cylinder/StaticBody3D.number + \
100 * $Body/"2"/Cylinder/StaticBody3D.number + \
10 * $Body/"3"/Cylinder/StaticBody3D.number + \
$Body/"4"/Cylinder/StaticBody3D.number
func _on_static_body_3d_input_event(camera, event, position, normal, shape_idx):
if event is InputEventMouseButton and event.is_action_pressed("interact"):
$Body/Knop/Audio.playing = true
if get_number() == 1984:
$Lamp.light_color = Color.LIGHT_GREEN
$Congratulations.playing = true