This repository has been archived on 2025-09-28. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
rectangular/levels/intro.gd

9 lines
253 B
GDScript

extends Node2D
func _on_area_2d_body_entered(body: Node2D) -> void:
if body == NodeRegistry.player:
NodeRegistry.player.die()
func _on_next_level_body_entered(body: Node2D) -> void:
if body == NodeRegistry.player:
Levels.load_entrypoint("test")