Fixed debugger errors in many files and optimized some scenes/code

This commit is contained in:
VoidTwo
2021-12-12 23:55:59 -06:00
parent fc6dfdef4d
commit ef5ce684eb
39 changed files with 657 additions and 740 deletions

View File

@@ -1,29 +1,13 @@
extends Camera2D
# Declare member variables here. Examples:
# var a: int = 2
# var b: String = "text"
signal enter_portal
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta: float) -> void:
# pass
func _on_PortalDarkForest_body_entered(body: Node) -> void:
self.limit_bottom = -224
self.limit_top = -736
self.limit_left = -32
self.limit_right = 448
var player = get_parent()
player.position = Vector2(256,-232)
emit_signal('enter_portal')
func _on_PortalDarkForest_body_entered(_body: Node) -> void:
limit_bottom = -224
limit_top = -736
limit_left = -32
limit_right = 448
get_parent().position = Vector2(256, -232)
emit_signal('enter_portal')
return