added music/sounds
This commit is contained in:
@@ -5,6 +5,8 @@ extends Camera2D
|
||||
# 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:
|
||||
@@ -17,9 +19,11 @@ func _ready() -> void:
|
||||
|
||||
|
||||
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)
|
||||
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')
|
||||
|
||||
|
Reference in New Issue
Block a user