cleanups
This commit is contained in:
+1
-11
@@ -1,16 +1,5 @@
|
|||||||
extends StaticBody3D
|
extends StaticBody3D
|
||||||
|
|
||||||
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
|
||||||
func _ready():
|
|
||||||
pass # Replace with function body.
|
|
||||||
|
|
||||||
|
|
||||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
||||||
func _process(delta):
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
func eindig():
|
func eindig():
|
||||||
$".."/Room/Doorframe/Door.visible = false
|
$".."/Room/Doorframe/Door.visible = false
|
||||||
$".."/Room/Doorframe/Door/Deur.set_collision_layer(0)
|
$".."/Room/Doorframe/Door/Deur.set_collision_layer(0)
|
||||||
@@ -22,3 +11,4 @@ func eindig():
|
|||||||
$"../Einde/Wincamera/AudioStreamPlayer3D2".stream.loop = false
|
$"../Einde/Wincamera/AudioStreamPlayer3D2".stream.loop = false
|
||||||
$"../Einde/Wincamera/AudioStreamPlayer3D3".stream.loop = false
|
$"../Einde/Wincamera/AudioStreamPlayer3D3".stream.loop = false
|
||||||
$"../Muziek".playing = false
|
$"../Muziek".playing = false
|
||||||
|
$"../Gui".visible = false
|
||||||
|
|||||||
@@ -1,13 +1,8 @@
|
|||||||
extends CanvasLayer
|
extends CanvasLayer
|
||||||
|
|
||||||
@onready var bottle_service = $Control/BottleService
|
@onready var bottle_service = $Control/BottleService
|
||||||
var timer = 0
|
|
||||||
const clear_time = 5
|
const clear_time = 5
|
||||||
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
|
||||||
func _ready():
|
|
||||||
pass # Replace with function body.
|
|
||||||
|
|
||||||
func message(msg: String, title: String = ""):
|
func message(msg: String, title: String = ""):
|
||||||
var popup = RichTextLabel.new()
|
var popup = RichTextLabel.new()
|
||||||
popup.custom_minimum_size = Vector2(200,100)
|
popup.custom_minimum_size = Vector2(200,100)
|
||||||
@@ -24,12 +19,6 @@ func message(msg: String, title: String = ""):
|
|||||||
close.pressed.connect(_on_close_pressed.bind(close))
|
close.pressed.connect(_on_close_pressed.bind(close))
|
||||||
popup.add_child(close)
|
popup.add_child(close)
|
||||||
bottle_service.add_child(popup)
|
bottle_service.add_child(popup)
|
||||||
timer = 0
|
|
||||||
|
|
||||||
func _process(delta):
|
|
||||||
timer += delta
|
|
||||||
#$"Control/HFlowContainer/SubViewportContainer/SubViewport/Camera3D/Item Position".get_child(0).rotation.y += delta
|
|
||||||
#$Control/SubViewportContainer/SubViewport/Camera3D/sleutel.rotation.y += delta
|
|
||||||
|
|
||||||
func add_item(mesh: Node):
|
func add_item(mesh: Node):
|
||||||
var subviewport = preload("res://GUI-item.tscn").instantiate()
|
var subviewport = preload("res://GUI-item.tscn").instantiate()
|
||||||
|
|||||||
+2
-2
@@ -8,7 +8,7 @@ var start = false
|
|||||||
@onready var anim = $Draakje
|
@onready var anim = $Draakje
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
get_tree().get_root().print_tree()
|
#get_tree().get_root().print_tree()
|
||||||
anim.play("default")
|
anim.play("default")
|
||||||
$Draakje/Hoest.playing = true
|
$Draakje/Hoest.playing = true
|
||||||
var size = get_viewport_rect().size
|
var size = get_viewport_rect().size
|
||||||
@@ -25,7 +25,7 @@ func _process(delta):
|
|||||||
opacity_panel -= delta * (1.1 - opacity_panel)
|
opacity_panel -= delta * (1.1 - opacity_panel)
|
||||||
bg.bg_color.a = opacity_panel
|
bg.bg_color.a = opacity_panel
|
||||||
if opacity_panel <= 0:
|
if opacity_panel <= 0:
|
||||||
print("free willy")
|
print("unloading splash screen")
|
||||||
queue_free()
|
queue_free()
|
||||||
|
|
||||||
#Recenter draakje
|
#Recenter draakje
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ func _on_lock_input_event(_camera, event, _position, _normal, _shape_idx):
|
|||||||
$Lock/DeurOpen.playing = true
|
$Lock/DeurOpen.playing = true
|
||||||
$"../Gui".clear_items()
|
$"../Gui".clear_items()
|
||||||
|
|
||||||
|
|
||||||
func _on_lever_input_event(_camera, event, _position, _normal, _shape_idx):
|
func _on_lever_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"):
|
||||||
$Lever/LeverOmhaal.playing = true
|
$Lever/LeverOmhaal.playing = true
|
||||||
|
|||||||
Reference in New Issue
Block a user