Updated Hub World to have portals to levels and disabled the level select menu
This commit is contained in:
11
Levels/Interactables/Level Portal.gd
Normal file
11
Levels/Interactables/Level Portal.gd
Normal 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
|
Reference in New Issue
Block a user