Created example scene (intro.tscn)
This commit is contained in:
parent
71eae88a33
commit
8d313bf2c2
4 changed files with 36 additions and 5 deletions
5
levels/intro.gd
Normal file
5
levels/intro.gd
Normal file
|
@ -0,0 +1,5 @@
|
|||
extends Node2D
|
||||
|
||||
func _on_area_2d_body_entered(body: Node2D) -> void:
|
||||
if body == Levels.player:
|
||||
Levels.load_entrypoint("intro_start")
|
Reference in a new issue