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

10 lines
253 B
GDScript3
Raw Normal View History

2024-09-28 14:44:17 +02:00
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")