initial commit

This commit is contained in:
2023-01-29 22:35:02 +01:00
commit 0f84919ff5
24 changed files with 546 additions and 0 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