Added win condition for level 1 and added boss fight for level 5
This commit is contained in:
10
Levels/Interactables/Teleporter.gd
Normal file
10
Levels/Interactables/Teleporter.gd
Normal file
@@ -0,0 +1,10 @@
|
||||
extends Area2D
|
||||
|
||||
export var x_location: int
|
||||
export var y_location: int
|
||||
|
||||
|
||||
func _on_teleporter_body_entered(body: Node) -> void:
|
||||
if body.is_in_group('player'):
|
||||
body.set_deferred('position', Vector2(x_location, y_location))
|
||||
return
|
Reference in New Issue
Block a user