Initial commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
extends Area2D
|
||||
|
||||
|
||||
# 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_body_entered(body: Node2D) -> void:
|
||||
Global.player_entrance_name = "West Entrance"
|
||||
get_tree().change_scene_to_file("res://scenes/kitchen_mirror/kitchen_mirror.tscn")
|
||||
@@ -0,0 +1 @@
|
||||
uid://b7u48u6urn7pt
|
||||
@@ -0,0 +1,11 @@
|
||||
extends Node2D
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
if Global.player_entrance_name:
|
||||
$Player.global_position = get_node(Global.player_entrance_name).global_position
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
@@ -0,0 +1 @@
|
||||
uid://cyebbcwew3oq5
|
||||
@@ -0,0 +1,27 @@
|
||||
extends Area2D
|
||||
|
||||
var inside = false
|
||||
# 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 _input(event):
|
||||
if inside and Input.is_action_just_pressed("interact"):
|
||||
$AudioStreamPlayer2D.play()
|
||||
|
||||
%Player.play_animation("drink",2100)
|
||||
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
$Label.visible = true
|
||||
inside = true
|
||||
|
||||
|
||||
func _on_body_exited(body: Node2D) -> void:
|
||||
$Label.visible = false
|
||||
inside = true
|
||||
@@ -0,0 +1 @@
|
||||
uid://cvx3b5jt4dluc
|
||||
@@ -0,0 +1,16 @@
|
||||
extends Area2D
|
||||
|
||||
|
||||
# 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_body_entered(body: Node2D) -> void:
|
||||
Global.player_entrance_name = "South Entrance"
|
||||
get_tree().change_scene_to_file("res://scenes/kitchen_mirror/kitchen_mirror.tscn")
|
||||
@@ -0,0 +1 @@
|
||||
uid://bhc2174723t3m
|
||||
@@ -0,0 +1,16 @@
|
||||
extends Area2D
|
||||
|
||||
|
||||
# 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_body_entered(body: Node2D) -> void:
|
||||
Global.player_entrance_name = "East Entrance"
|
||||
get_tree().change_scene_to_file("res://scenes/kitchen_mirror/kitchen_mirror.tscn")
|
||||
@@ -0,0 +1 @@
|
||||
uid://77kbxobqvmqp
|
||||
Reference in New Issue
Block a user