copy from thegates-jam repo

This commit is contained in:
Nordup 2024-03-31 09:25:42 +04:00
parent c1a7ad74e1
commit 1a335de566
523 changed files with 22408 additions and 0 deletions

19
levels/portal/portal.gd Normal file
View file

@ -0,0 +1,19 @@
extends Node3D
signal portal_entered(url: String)
@export var url: String
func _on_portal_entered(body):
if not body is CharacterBody3D: return
await get_tree().create_timer(0.2).timeout
print("portal_entered: " + url)
portal_entered.emit(url)
func shut_down(_body) -> void:
$Portal/MeshInstance3D.visible = false
$Portal/MeshInstance3D2.visible = false
$Portal/OmniLight3D.visible = false
$Portal/CollisionShape3D.set_deferred("disabled", true)