Updated Hub World to have portals to levels and disabled the level select menu

This commit is contained in:
VoidTwo
2021-12-09 17:31:24 -06:00
parent 2147d38874
commit 037752c118
18 changed files with 389 additions and 15 deletions

View File

@@ -0,0 +1,11 @@
extends Area2D
signal enter_level(level)
export var level_path: String = 'res://Levels/LEVEL.tscn'
func _on_level_portal_body_entered(body: Node) -> void:
if body.is_in_group('player'):
emit_signal('enter_level', level_path)
return