Commit ed49caab authored by Julia Santos's avatar Julia Santos

Set up the rest of the rooms and established proper movement between all of them

parent 78afdd09
extends "res://Item.gd"
signal enter
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func passEvent(handler):
connect("enter", handler,"_balcony_enter")
pass
func mouseInteraction():
emit_signal("enter")
pass
extends "res://Item.gd"
signal exit
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func passEvent(handler):
connect("exit", handler,"_balcony_to_neighbor")
pass
func mouseInteraction():
emit_signal("exit")
pass
[gd_scene load_steps=9 format=2] [gd_scene load_steps=12 format=2]
[ext_resource path="res://assets/Thesis Clickables/other plants.png" type="Texture" id=1] [ext_resource path="res://assets/Thesis Clickables/other plants.png" type="Texture" id=1]
[ext_resource path="res://Item.gd" type="Script" id=2] [ext_resource path="res://Item.gd" type="Script" id=2]
[ext_resource path="res://assets/Thesis Clickables/pot.png" type="Texture" id=3] [ext_resource path="res://assets/Thesis Clickables/pot.png" type="Texture" id=3]
[ext_resource path="res://assets/Thesis Clickables/nana.png" type="Texture" id=4] [ext_resource path="res://assets/Thesis Clickables/nana.png" type="Texture" id=4]
[ext_resource path="res://Dialogue Contro - Living room.gd" type="Script" id=5] [ext_resource path="res://Dialogue Contro - Living room.gd" type="Script" id=5]
[ext_resource path="res://Door to living room.gd" type="Script" id=6]
[sub_resource type="RectangleShape2D" id=1] [sub_resource type="RectangleShape2D" id=6]
extents = Vector2( 19.9228, 36.7719 ) extents = Vector2( 19.9228, 36.7719 )
[sub_resource type="RectangleShape2D" id=2] [sub_resource type="RectangleShape2D" id=4]
extents = Vector2( 15.6685, 16.4124 ) extents = Vector2( 15.6685, 16.4124 )
[sub_resource type="RectangleShape2D" id=3] [sub_resource type="RectangleShape2D" id=7]
extents = Vector2( 34.6417, 40.1913 )
[sub_resource type="StreamTexture" id=8]
flags = 4
load_path = "res://.import/Balcony door.png-b1c8d05a5eb532517313dc4785195288.stex"
[sub_resource type="RectangleShape2D" id=5]
extents = Vector2( 15.6685, 16.4124 ) extents = Vector2( 15.6685, 16.4124 )
[node name="Node2D" type="Node2D"] [node name="Node2D" type="Node2D"]
...@@ -36,11 +44,12 @@ __meta__ = { ...@@ -36,11 +44,12 @@ __meta__ = {
"_edit_group_": true "_edit_group_": true
} }
interactable = true interactable = true
flavorText = "Great listeners! Terrible conversationalists."
[node name="CollisionShape2D" type="CollisionShape2D" parent="Other plants"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Other plants"]
position = Vector2( -16.8367, -2.11676 ) position = Vector2( -16.8367, -2.11676 )
scale = Vector2( 5, 5 ) scale = Vector2( 5, 5 )
shape = SubResource( 1 ) shape = SubResource( 6 )
[node name="Sprite" type="Sprite" parent="Other plants/CollisionShape2D"] [node name="Sprite" type="Sprite" parent="Other plants/CollisionShape2D"]
position = Vector2( 0.449585, 0.542709 ) position = Vector2( 0.449585, 0.542709 )
...@@ -61,13 +70,34 @@ flavorText = "Ew... It's so dirty. Is it even water? I'm not feeding that to my ...@@ -61,13 +70,34 @@ flavorText = "Ew... It's so dirty. Is it even water? I'm not feeding that to my
[node name="CollisionShape2D" type="CollisionShape2D" parent="Pot"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Pot"]
position = Vector2( -16.8367, -2.11676 ) position = Vector2( -16.8367, -2.11676 )
scale = Vector2( 5, 5 ) scale = Vector2( 5, 5 )
shape = SubResource( 2 ) shape = SubResource( 4 )
[node name="Sprite" type="Sprite" parent="Pot/CollisionShape2D"] [node name="Sprite" type="Sprite" parent="Pot/CollisionShape2D"]
position = Vector2( -0.00619507, -0.0649719 ) position = Vector2( -0.00619507, -0.0649719 )
scale = Vector2( 0.155235, 0.155235 ) scale = Vector2( 0.155235, 0.155235 )
texture = ExtResource( 3 ) texture = ExtResource( 3 )
[node name="Door to living room" type="StaticBody2D" parent="."]
position = Vector2( 507.45, 233.4 )
scale = Vector2( 0.829244, 0.829244 )
input_pickable = true
script = ExtResource( 6 )
__meta__ = {
"_edit_group_": true
}
interactable = true
flavorText = "Clicked"
[node name="CollisionShape2D" type="CollisionShape2D" parent="Door to living room"]
position = Vector2( -16.8367, -2.11676 )
scale = Vector2( 5, 5 )
shape = SubResource( 7 )
[node name="Sprite" type="Sprite" parent="Door to living room/CollisionShape2D"]
position = Vector2( 0.574005, 0.358818 )
scale = Vector2( 0.343423, 0.403654 )
texture = SubResource( 8 )
[node name="Nana" type="StaticBody2D" parent="."] [node name="Nana" type="StaticBody2D" parent="."]
position = Vector2( 240.299, 200.173 ) position = Vector2( 240.299, 200.173 )
scale = Vector2( 0.829244, 0.829244 ) scale = Vector2( 0.829244, 0.829244 )
...@@ -77,11 +107,12 @@ __meta__ = { ...@@ -77,11 +107,12 @@ __meta__ = {
"_edit_group_": true "_edit_group_": true
} }
retrievable = true retrievable = true
flavorText = "That's enough shenanigans from you for today."
[node name="CollisionShape2D" type="CollisionShape2D" parent="Nana"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Nana"]
position = Vector2( -16.8367, -2.11676 ) position = Vector2( -16.8367, -2.11676 )
scale = Vector2( 5, 5 ) scale = Vector2( 5, 5 )
shape = SubResource( 3 ) shape = SubResource( 5 )
[node name="Sprite" type="Sprite" parent="Nana/CollisionShape2D"] [node name="Sprite" type="Sprite" parent="Nana/CollisionShape2D"]
position = Vector2( -0.00619507, -0.0649719 ) position = Vector2( -0.00619507, -0.0649719 )
......
extends "res://Item.gd"
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
extends "res://Item.gd"
signal cabinet
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func mouseInteraction():
emit_signal("cabinet")
func passEvent(handler):
connect("cabinet", handler,"_open_cabinet")
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
extends "res://Item.gd"
signal laptop
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func mouseInteraction():
emit_signal("laptop")
func passEvent(handler):
connect("laptop", handler,"_in_desk")
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
[gd_scene load_steps=5 format=2] [gd_scene load_steps=8 format=2]
[ext_resource path="res://Dialogue Contro - Living room.gd" type="Script" id=1] [ext_resource path="res://Dialogue Contro - Living room.gd" type="Script" id=1]
[ext_resource path="res://assets/Thesis Clickables/laptop.png" type="Texture" id=2] [ext_resource path="res://assets/Thesis Clickables/laptop.png" type="Texture" id=2]
[ext_resource path="res://Item.gd" type="Script" id=3] [ext_resource path="res://Item.gd" type="Script" id=3]
[ext_resource path="res://Return_laptop.gd" type="Script" id=4]
[sub_resource type="RectangleShape2D" id=1] [sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 40.1362, 40.1913 ) extents = Vector2( 40.1362, 40.1913 )
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 17.4279, 15.7667 )
[sub_resource type="StreamTexture" id=3]
flags = 4
load_path = "res://.import/return arrow.png-ba7c2fea6c5a220a249845f29bbe9177.stex"
[node name="Node2D" type="Node2D"] [node name="Node2D" type="Node2D"]
[node name="BG" type="Sprite" parent="."] [node name="BG" type="Sprite" parent="."]
position = Vector2( 72.6217, -17.9236 )
offset = Vector2( -72.6217, 17.9236 )
[node name="Dialogue control" type="Control" parent="."] [node name="Dialogue control" type="Control" parent="."]
margin_right = 40.0 margin_right = 40.0
...@@ -27,8 +37,6 @@ script = ExtResource( 3 ) ...@@ -27,8 +37,6 @@ script = ExtResource( 3 )
__meta__ = { __meta__ = {
"_edit_group_": true "_edit_group_": true
} }
interactable = true
flavorText = "I... don't get it... I probably should've studied first huh? Where are my notes?"
[node name="CollisionShape2D" type="CollisionShape2D" parent="Laptop"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Laptop"]
position = Vector2( -16.8367, -2.11676 ) position = Vector2( -16.8367, -2.11676 )
...@@ -39,3 +47,23 @@ shape = SubResource( 1 ) ...@@ -39,3 +47,23 @@ shape = SubResource( 1 )
position = Vector2( -0.573227, 0.64563 ) position = Vector2( -0.573227, 0.64563 )
scale = Vector2( 0.403654, 0.403654 ) scale = Vector2( 0.403654, 0.403654 )
texture = ExtResource( 2 ) texture = ExtResource( 2 )
[node name="Return" type="StaticBody2D" parent="."]
position = Vector2( 100.642, 396.476 )
scale = Vector2( 0.8, 0.8 )
input_pickable = true
script = ExtResource( 4 )
__meta__ = {
"_edit_group_": true
}
interactable = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Return"]
position = Vector2( -2.31012, 0.749359 )
scale = Vector2( 5, 5 )
shape = SubResource( 2 )
[node name="Sprite" type="Sprite" parent="Return/CollisionShape2D"]
position = Vector2( -0.670166, 0.427979 )
scale = Vector2( 0.0395079, 0.0395079 )
texture = SubResource( 3 )
extends "res://Item.gd"
signal enter
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func passEvent(handler):
connect("enter", handler,"_hallway_to_living")
pass
func mouseInteraction():
emit_signal("enter")
pass
extends "res://Item.gd"
signal exit
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func passEvent(handler):
connect("exit", handler,"_balcony_exit")
pass
func mouseInteraction():
emit_signal("exit")
pass
extends "res://Item.gd"
signal enter
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func passEvent(handler):
connect("enter", handler,"_hallway_to_neighbor")
pass
func mouseInteraction():
emit_signal("enter")
pass
...@@ -8,6 +8,7 @@ onready var inventory = get_parent().get_node("UI/Inventory") ...@@ -8,6 +8,7 @@ onready var inventory = get_parent().get_node("UI/Inventory")
onready var deselect = get_parent().get_node("UI/Button") onready var deselect = get_parent().get_node("UI/Button")
onready var energy = get_parent().get_node("UI/Energy bar") onready var energy = get_parent().get_node("UI/Energy bar")
onready var dialogue = get_parent().get_node("UI/Dialogue Box/RichTextLabel") onready var dialogue = get_parent().get_node("UI/Dialogue Box/RichTextLabel")
onready var movementHandle = get_parent().get_node("UI/Movement Handler")
#rooms #rooms
onready var bedroom = get_parent().get_node("Bedroom") onready var bedroom = get_parent().get_node("Bedroom")
...@@ -17,10 +18,19 @@ onready var laundryBasket = get_parent().get_node("Laundry basket") ...@@ -17,10 +18,19 @@ onready var laundryBasket = get_parent().get_node("Laundry basket")
onready var laundryArea = get_parent().get_node("Laundry area") onready var laundryArea = get_parent().get_node("Laundry area")
onready var laundryNotepad = get_parent().get_node("Laundry - Notepad") onready var laundryNotepad = get_parent().get_node("Laundry - Notepad")
onready var fridge = get_parent().get_node("Fridge") onready var fridge = get_parent().get_node("Fridge")
onready var desk = get_parent().get_node("Desk")
onready var insideCabinet = get_parent().get_node("Inside cabinet")
onready var livingRoom = get_parent().get_node("Living room")
onready var hallway = get_parent().get_node("Hallway")
onready var balcony = get_parent().get_node("Balcony")
onready var neighborsRoom = get_parent().get_node("Neighbor's room")
onready var neighborsBalcony = get_parent().get_node("Neighbor's balcony")
#functioning stuff #functioning stuff
onready var quests = notepad.get_node("Quests") onready var quests = notepad.get_node("Quests")
onready var groceries = false #if groceries were put away onready var groceries = false #if groceries were put away
onready var lockedNotepad #if ur locked from certain areas bc u havent gotten the notebook yet
#items in the rooms that need access to the event handler #items in the rooms that need access to the event handler
export(Array, NodePath) onready var eventItems export(Array, NodePath) onready var eventItems
...@@ -30,70 +40,31 @@ func _ready(): ...@@ -30,70 +40,31 @@ func _ready():
for item in eventItems: for item in eventItems:
get_node(item).passEvent(self) get_node(item).passEvent(self)
connect_stools() connect_stools()
lockedNotepad = true
func zoom_in(): # for close up perspectives without some UI
moxie.hide()
inventory.hide()
left.hide()
right.hide() right.hide()
deselect.hide() left.hide()
func zoom_out(): # for returning from close up perspectives
moxie.show()
inventory.show()
get_parent().get_node("UI/Movement Handler").check_arrows() # show arrows depending on situation
deselect.show()
# ----------------- Quest progression-related events -----------------
func _get_notebook(): # when To Do list is retrieved for the first time func _get_notebook(): # when To Do list is retrieved for the first time
notepad.show() notepad.show()
right.show() right.show()
_return_laundry() _return_laundry()
quests.add("Eat") quests.add("Eat")
movementHandle.enableMovement()
func _laundry_basket(): # looking at the laundry basket view lockedNotepad = false
bedroom.hide() bedroom.get_node("Laundry basket").finished()
laundryBasket.show()
zoom_in()
func _return_laundry(): # returning from laundry basket view
laundryBasket.hide()
bedroom.show()
zoom_out()
func _bathroom_enter():
bedroom.hide()
bathroom.show()
func _bathroom_exit():
bathroom.hide()
bedroom.show()
func _open_fridge(): # looking into the fridge
kitchen.hide()
fridge.show()
zoom_in()
notepad.hide()
func _return_fridge(): # returning from fridge view
fridge.hide()
kitchen.show()
zoom_out()
notepad.show()
func connect_stools(): # connecting the two instances of the stool so that one disappears when the other is retrieved
get_parent().get_node("Laundry area/Stool").giveStool(get_parent().get_node("Kitchen/Stool"))
get_parent().get_node("Kitchen/Stool").giveStool(get_parent().get_node("Laundry area/Stool"))
func _groceries_put_away(): # when the groceries are put away func _groceries_put_away(): # when the groceries are put away
fridge.get_node("Granola bar").show() fridge.get_node("Granola bar").show()
groceries = true groceries = true
laundryArea.get_node("Laundry door").flavorText = "I think I'm still missing something..." laundryArea.get_node("Laundry door").flavorText = "I think I'm still missing something..."
func give_energy_bar(): # returns energy bar node
return energy
func _enter_notebook_laundry(): func _eaten(): # completing first "Eat" quest
if groceries: quests.finishQuest("Eat")
# ----------------- Notebook puzzle events -----------------
func _enter_notebook_laundry(): # trying to engage in the notebook puzzle for doing laundry
if groceries: # if the groceries have been put away
dialogue.text = "Alright, lets do this!" dialogue.text = "Alright, lets do this!"
laundryArea.hide() laundryArea.hide()
laundryNotepad.show() laundryNotepad.show()
...@@ -102,20 +73,21 @@ func _enter_notebook_laundry(): ...@@ -102,20 +73,21 @@ func _enter_notebook_laundry():
notepad.get_node("Quests").hide() notepad.get_node("Quests").hide()
notepad.get_node("Title").text = "Words" notepad.get_node("Title").text = "Words"
var notepad_words = notepad.get_node("Words") var notepad_words = notepad.get_node("Words")
notepad.get_node("Words").clear()
notepad_words.show() notepad_words.show()
notepad_words.add_item("Open") notepad_words.add_item("Open")
notepad_words.add_item("Close") notepad_words.add_item("Close")
notepad_words.add_item("Turn on") notepad_words.add_item("Turn on")
notepad_words.add_item("Put in") notepad_words.add_item("Put in")
notepad_words.add_item("Look") notepad_words.add_item("Look")
else: else: # if not, don't progress yet
dialogue.text = "The groceries are still in the way." dialogue.text = "The groceries are still in the way."
func _laundry_finished(): func _laundry_finished(): # finishing notebook puzzle for laundry
print("Finished laundry") print("Finished laundry")
quests.finishQuest("Do laundry") quests.finishQuest("Do laundry")
func _return_laundry_notepad(): func _return_laundry_notepad(): # exiting laundry notebook puzzle
zoom_out() zoom_out()
laundryArea.show() laundryArea.show()
laundryNotepad.hide() laundryNotepad.hide()
...@@ -123,7 +95,126 @@ func _return_laundry_notepad(): ...@@ -123,7 +95,126 @@ func _return_laundry_notepad():
notepad.get_node("Quests").show() notepad.get_node("Quests").show()
notepad.get_node("Title").text = "To do" notepad.get_node("Title").text = "To do"
notepad.get_node("Words").hide() notepad.get_node("Words").hide()
notepad.get_node("Words").clear()
# ----------------- Movement-related events (traversing between rooms, locking/unlocking, etc) -----------------
func _eaten(): func _bathroom_enter(): # entering bathroom
quests.finishQuest("Eat") if !lockedNotepad:
bedroom.hide()
bathroom.show()
movementHandle.disableMovement()
func _bathroom_exit(): # exiting bathroom
bathroom.hide()
bedroom.show()
movementHandle.enableMovement()
func _balcony_enter():
movementHandle.disableMovement()
balcony.show()
livingRoom.hide()
func _balcony_exit():
movementHandle.enableMovement()
balcony.hide()
livingRoom.show()
func _living_to_hallway():
movementHandle.disableMovement()
livingRoom.hide()
hallway.show()
func _hallway_to_living():
movementHandle.enableMovement()
hallway.hide()
livingRoom.show()
func _hallway_to_neighbor():
movementHandle.disableMovement()
hallway.hide()
neighborsRoom.show()
func _neighbor_to_hallway():
hallway.show()
neighborsRoom.hide()
func _neighbor_to_balcony():
movementHandle.disableMovement()
neighborsRoom.hide()
neighborsBalcony.show()
func _balcony_to_neighbor():
neighborsRoom.show()
neighborsBalcony.hide()
# ----------------- Zooming in and out of specific views -----------------
func zoom_in(): # for close up perspectives without some UI
moxie.hide()
inventory.hide()
left.hide()
right.hide()
deselect.hide()
movementHandle.disableMovement()
func zoom_out(): # for returning from close up perspectives
moxie.show()
inventory.show()
if !lockedNotepad:
print("Notepad isnt locked")
#get_parent().get_node("UI/Movement Handler").check_arrows() # show arrows depending on situation
movementHandle.enableMovement()
deselect.show()
func _laundry_basket(): # looking at the laundry basket view
bedroom.hide()
laundryBasket.show()
zoom_in()
func _return_laundry(): # returning from laundry basket view
laundryBasket.hide()
bedroom.show()
zoom_out()
func _open_fridge(): # looking into the fridge
kitchen.hide()
fridge.show()
zoom_in()
notepad.hide()
func _return_fridge(): # returning from fridge view
fridge.hide()
kitchen.show()
zoom_out()
notepad.show()
func _open_cabinet():
zoom_in()
inventory.show()
kitchen.hide()
insideCabinet.show()
func _close_cabinet():
zoom_out()
kitchen.show()
insideCabinet.hide()
func _in_desk():
zoom_in()
inventory.show()
desk.show()
bedroom.hide()
func _out_desk():
zoom_out()
desk.hide()
bedroom.show()
# ----------------- To be removed -----------------
func connect_stools(): # connecting the two instances of the stool so that one disappears when the other is retrieved
get_parent().get_node("Laundry area/Stool").giveStool(get_parent().get_node("Kitchen/Stool"))
get_parent().get_node("Kitchen/Stool").giveStool(get_parent().get_node("Laundry area/Stool"))
# ----------------- Other -----------------
func give_energy_bar(): # returns energy bar node
return energy
#func is_special_view(): # whether or not the game is in a special screen that can't has designated enter/exit
# return specialView
extends "res://Item.gd"
signal enter
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func passEvent(handler):
connect("enter", handler,"_living_to_hallway")
pass
func mouseInteraction():
emit_signal("enter")
pass
[gd_scene load_steps=9 format=2] [gd_scene load_steps=11 format=2]
[ext_resource path="res://Dialogue Contro - Living room.gd" type="Script" id=1] [ext_resource path="res://Dialogue Contro - Living room.gd" type="Script" id=1]
[ext_resource path="res://assets/Thesis Clickables/trash chute.png" type="Texture" id=2] [ext_resource path="res://assets/Thesis Clickables/trash chute.png" type="Texture" id=2]
[ext_resource path="res://assets/Thesis Clickables/door to neighbor's apartment.png" type="Texture" id=3] [ext_resource path="res://assets/Thesis Clickables/door to neighbor's apartment.png" type="Texture" id=3]
[ext_resource path="res://assets/Thesis Clickables/door to moxie's apartment.png" type="Texture" id=4] [ext_resource path="res://assets/Thesis Clickables/door to moxie's apartment.png" type="Texture" id=4]
[ext_resource path="res://Item.gd" type="Script" id=5] [ext_resource path="res://Item.gd" type="Script" id=5]
[ext_resource path="res://Door to Moxie.gd" type="Script" id=6]
[ext_resource path="res://Door to neighbor.gd" type="Script" id=7]
[sub_resource type="RectangleShape2D" id=1] [sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 23.7124, 45.104 ) extents = Vector2( 23.7124, 45.104 )
...@@ -52,12 +54,11 @@ texture = ExtResource( 2 ) ...@@ -52,12 +54,11 @@ texture = ExtResource( 2 )
position = Vector2( 222.66, 308.526 ) position = Vector2( 222.66, 308.526 )
scale = Vector2( 0.829244, 0.829244 ) scale = Vector2( 0.829244, 0.829244 )
input_pickable = true input_pickable = true
script = ExtResource( 5 ) script = ExtResource( 7 )
__meta__ = { __meta__ = {
"_edit_group_": true "_edit_group_": true
} }
interactable = true interactable = true
flavorText = "What is [neighbor's name] doing in there?! That sound is really ticking me off... Should I go inside?"
[node name="CollisionShape2D" type="CollisionShape2D" parent="Door to neighbor"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Door to neighbor"]
position = Vector2( -16.8367, -2.11676 ) position = Vector2( -16.8367, -2.11676 )
...@@ -70,14 +71,15 @@ scale = Vector2( 0.276784, 0.525959 ) ...@@ -70,14 +71,15 @@ scale = Vector2( 0.276784, 0.525959 )
texture = ExtResource( 3 ) texture = ExtResource( 3 )
[node name="Door to Moxie" type="StaticBody2D" parent="."] [node name="Door to Moxie" type="StaticBody2D" parent="."]
position = Vector2( 550.239, 307.267 ) position = Vector2( 548.979, 308.527 )
scale = Vector2( 0.829244, 0.829244 ) scale = Vector2( 0.829244, 0.829244 )
input_pickable = true input_pickable = true
script = ExtResource( 5 ) script = ExtResource( 6 )
__meta__ = { __meta__ = {
"_edit_group_": true "_edit_group_": true
} }
interactable = true interactable = true
flavorText = "Door to apartment. Home sweet home."
[node name="CollisionShape2D" type="CollisionShape2D" parent="Door to Moxie"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Door to Moxie"]
position = Vector2( -16.8367, -2.11676 ) position = Vector2( -16.8367, -2.11676 )
......
[gd_scene load_steps=8 format=2] [gd_scene load_steps=11 format=2]
[ext_resource path="res://assets/Thesis Clickables/Lab Notes.png" type="Texture" id=1] [ext_resource path="res://assets/Thesis Clickables/Lab Notes.png" type="Texture" id=1]
[ext_resource path="res://Item.gd" type="Script" id=2] [ext_resource path="res://Item.gd" type="Script" id=2]
[ext_resource path="res://assets/Thesis Clickables/Nana's food.png" type="Texture" id=3] [ext_resource path="res://assets/Thesis Clickables/Nana's food.png" type="Texture" id=3]
[ext_resource path="res://assets/Thesis Clickables/scissors.png" type="Texture" id=4] [ext_resource path="res://assets/Thesis Clickables/scissors.png" type="Texture" id=4]
[ext_resource path="res://Dialogue control - Inside cabinet.gd" type="Script" id=5] [ext_resource path="res://Dialogue control - Inside cabinet.gd" type="Script" id=5]
[ext_resource path="res://Return_cabinet.gd" type="Script" id=6]
[sub_resource type="RectangleShape2D" id=1] [sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 10.2686, 10.4499 ) extents = Vector2( 10.2686, 10.4499 )
...@@ -12,6 +13,13 @@ extents = Vector2( 10.2686, 10.4499 ) ...@@ -12,6 +13,13 @@ extents = Vector2( 10.2686, 10.4499 )
[sub_resource type="RectangleShape2D" id=2] [sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 16.2132, 16.4708 ) extents = Vector2( 16.2132, 16.4708 )
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 17.4279, 15.7667 )
[sub_resource type="StreamTexture" id=4]
flags = 4
load_path = "res://.import/return arrow.png-ba7c2fea6c5a220a249845f29bbe9177.stex"
[node name="Node2D" type="Node2D"] [node name="Node2D" type="Node2D"]
position = Vector2( 643.819, 277.182 ) position = Vector2( 643.819, 277.182 )
...@@ -84,3 +92,23 @@ shape = SubResource( 2 ) ...@@ -84,3 +92,23 @@ shape = SubResource( 2 )
position = Vector2( 0.178162, -0.0184937 ) position = Vector2( 0.178162, -0.0184937 )
scale = Vector2( 0.156774, 0.156774 ) scale = Vector2( 0.156774, 0.156774 )
texture = ExtResource( 3 ) texture = ExtResource( 3 )
[node name="Return" type="StaticBody2D" parent="."]
position = Vector2( -531.583, 110.476 )
scale = Vector2( 0.8, 0.8 )
input_pickable = true
script = ExtResource( 6 )
__meta__ = {
"_edit_group_": true
}
interactable = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Return"]
position = Vector2( -2.31012, 0.749359 )
scale = Vector2( 5, 5 )
shape = SubResource( 3 )
[node name="Sprite" type="Sprite" parent="Return/CollisionShape2D"]
position = Vector2( -0.670166, 0.427979 )
scale = Vector2( 0.0395079, 0.0395079 )
texture = SubResource( 4 )
[gd_scene load_steps=12 format=2] [gd_scene load_steps=15 format=2]
[ext_resource path="res://assets/Placeholder BGs/kitchen area.png" type="Texture" id=1] [ext_resource path="res://assets/Placeholder BGs/kitchen area.png" type="Texture" id=1]
[ext_resource path="res://assets/placeholder item.png" type="Texture" id=2] [ext_resource path="res://assets/placeholder item.png" type="Texture" id=2]
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
[ext_resource path="res://assets/Thesis Clickables/stool.png" type="Texture" id=5] [ext_resource path="res://assets/Thesis Clickables/stool.png" type="Texture" id=5]
[ext_resource path="res://Stool.gd" type="Script" id=6] [ext_resource path="res://Stool.gd" type="Script" id=6]
[ext_resource path="res://Fridge.gd" type="Script" id=7] [ext_resource path="res://Fridge.gd" type="Script" id=7]
[ext_resource path="res://Cabinet.gd" type="Script" id=8]
[sub_resource type="RectangleShape2D" id=1] [sub_resource type="RectangleShape2D" id=1]
...@@ -18,6 +19,13 @@ flags = 4 ...@@ -18,6 +19,13 @@ flags = 4
load_path = "res://.import/placeholder item.png-cd6e4c1231156687d87915032ec4361d.stex" load_path = "res://.import/placeholder item.png-cd6e4c1231156687d87915032ec4361d.stex"
[sub_resource type="RectangleShape2D" id=4] [sub_resource type="RectangleShape2D" id=4]
extents = Vector2( 24.763, 19.0705 )
[sub_resource type="StreamTexture" id=5]
flags = 4
load_path = "res://.import/placeholder item.png-cd6e4c1231156687d87915032ec4361d.stex"
[sub_resource type="RectangleShape2D" id=6]
extents = Vector2( 15.4169, 13.9691 ) extents = Vector2( 15.4169, 13.9691 )
[node name="Node2D" type="Node2D"] [node name="Node2D" type="Node2D"]
...@@ -81,6 +89,27 @@ position = Vector2( -0.158181, -0.0184715 ) ...@@ -81,6 +89,27 @@ position = Vector2( -0.158181, -0.0184715 )
scale = Vector2( 0.101337, 0.101337 ) scale = Vector2( 0.101337, 0.101337 )
texture = SubResource( 3 ) texture = SubResource( 3 )
[node name="Cabinet" type="StaticBody2D" parent="."]
position = Vector2( 126.289, 172.826 )
scale = Vector2( 0.829244, 0.829244 )
input_pickable = true
script = ExtResource( 8 )
__meta__ = {
"_edit_group_": true
}
interactable = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Cabinet"]
position = Vector2( 7.28166, -20.2055 )
scale = Vector2( 5, 5 )
shape = SubResource( 4 )
[node name="Sprite" type="Sprite" parent="Cabinet/CollisionShape2D"]
visible = false
position = Vector2( -0.158181, -0.0184715 )
scale = Vector2( 0.101337, 0.101337 )
texture = SubResource( 5 )
[node name="Stool" type="StaticBody2D" parent="."] [node name="Stool" type="StaticBody2D" parent="."]
visible = false visible = false
position = Vector2( 112.641, 527.75 ) position = Vector2( 112.641, 527.75 )
...@@ -96,7 +125,7 @@ flavorText = "A sturdy stool." ...@@ -96,7 +125,7 @@ flavorText = "A sturdy stool."
[node name="CollisionShape2D" type="CollisionShape2D" parent="Stool"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Stool"]
position = Vector2( 1.25211, 0.295086 ) position = Vector2( 1.25211, 0.295086 )
scale = Vector2( 5, 5 ) scale = Vector2( 5, 5 )
shape = SubResource( 4 ) shape = SubResource( 6 )
[node name="Sprite" type="Sprite" parent="Stool/CollisionShape2D"] [node name="Sprite" type="Sprite" parent="Stool/CollisionShape2D"]
visible = false visible = false
......
extends "res://Item.gd"
signal laptop
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func mouseInteraction():
emit_signal("laptop")
func passEvent(handler):
connect("laptop", handler,"_in_desk")
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
...@@ -31,3 +31,5 @@ func objInteraction(selected): # when an object is used on it ...@@ -31,3 +31,5 @@ func objInteraction(selected): # when an object is used on it
# Called every frame. 'delta' is the elapsed time since the previous frame. # Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta): #func _process(delta):
# pass # pass
func finished():
interactable = false
[gd_scene load_steps=13 format=2] [gd_scene load_steps=15 format=2]
[ext_resource path="res://Dialogue Contro - Living room.gd" type="Script" id=1] [ext_resource path="res://Dialogue Contro - Living room.gd" type="Script" id=1]
[ext_resource path="res://assets/Thesis Clickables/yoga mat.png" type="Texture" id=2] [ext_resource path="res://assets/Thesis Clickables/yoga mat.png" type="Texture" id=2]
...@@ -7,20 +7,22 @@ ...@@ -7,20 +7,22 @@
[ext_resource path="res://Item.gd" type="Script" id=5] [ext_resource path="res://Item.gd" type="Script" id=5]
[ext_resource path="res://assets/Thesis Clickables/Lab Notes.png" type="Texture" id=6] [ext_resource path="res://assets/Thesis Clickables/Lab Notes.png" type="Texture" id=6]
[ext_resource path="res://assets/Thesis Clickables/front door.png" type="Texture" id=7] [ext_resource path="res://assets/Thesis Clickables/front door.png" type="Texture" id=7]
[ext_resource path="res://Balcony door.gd" type="Script" id=8]
[ext_resource path="res://Front door.gd" type="Script" id=9]
[sub_resource type="RectangleShape2D" id=1] [sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 34.6417, 40.1913 ) extents = Vector2( 34.6417, 40.1913 )
[sub_resource type="RectangleShape2D" id=5] [sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 27.4713, 40.5453 ) extents = Vector2( 27.4713, 40.5453 )
[sub_resource type="RectangleShape2D" id=2] [sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 20.5876, 32.5145 ) extents = Vector2( 20.5876, 32.5145 )
[sub_resource type="RectangleShape2D" id=3] [sub_resource type="RectangleShape2D" id=4]
extents = Vector2( 13.704, 29.6463 ) extents = Vector2( 13.704, 29.6463 )
[sub_resource type="RectangleShape2D" id=4] [sub_resource type="RectangleShape2D" id=5]
extents = Vector2( 13.704, 13.2977 ) extents = Vector2( 13.704, 13.2977 )
[node name="Node2D" type="Node2D"] [node name="Node2D" type="Node2D"]
...@@ -39,7 +41,7 @@ __meta__ = { ...@@ -39,7 +41,7 @@ __meta__ = {
position = Vector2( 707.236, 234.589 ) position = Vector2( 707.236, 234.589 )
scale = Vector2( 0.829244, 0.829244 ) scale = Vector2( 0.829244, 0.829244 )
input_pickable = true input_pickable = true
script = ExtResource( 5 ) script = ExtResource( 8 )
__meta__ = { __meta__ = {
"_edit_group_": true "_edit_group_": true
} }
...@@ -59,7 +61,7 @@ texture = ExtResource( 3 ) ...@@ -59,7 +61,7 @@ texture = ExtResource( 3 )
position = Vector2( 225.607, 272.643 ) position = Vector2( 225.607, 272.643 )
scale = Vector2( 0.829244, 0.829244 ) scale = Vector2( 0.829244, 0.829244 )
input_pickable = true input_pickable = true
script = ExtResource( 5 ) script = ExtResource( 9 )
__meta__ = { __meta__ = {
"_edit_group_": true "_edit_group_": true
} }
...@@ -68,7 +70,7 @@ interactable = true ...@@ -68,7 +70,7 @@ interactable = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Front door"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Front door"]
position = Vector2( -16.8367, -2.11676 ) position = Vector2( -16.8367, -2.11676 )
scale = Vector2( 5, 5 ) scale = Vector2( 5, 5 )
shape = SubResource( 5 ) shape = SubResource( 2 )
[node name="Sprite" type="Sprite" parent="Front door/CollisionShape2D"] [node name="Sprite" type="Sprite" parent="Front door/CollisionShape2D"]
position = Vector2( 0.143784, -0.788452 ) position = Vector2( 0.143784, -0.788452 )
...@@ -84,11 +86,12 @@ __meta__ = { ...@@ -84,11 +86,12 @@ __meta__ = {
"_edit_group_": true "_edit_group_": true
} }
interactable = true interactable = true
flavorText = "Plants"
[node name="CollisionShape2D" type="CollisionShape2D" parent="Plants"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Plants"]
position = Vector2( -16.8367, -2.11676 ) position = Vector2( -16.8367, -2.11676 )
scale = Vector2( 5, 5 ) scale = Vector2( 5, 5 )
shape = SubResource( 2 ) shape = SubResource( 3 )
[node name="Sprite" type="Sprite" parent="Plants/CollisionShape2D"] [node name="Sprite" type="Sprite" parent="Plants/CollisionShape2D"]
position = Vector2( -0.42981, 1.07585 ) position = Vector2( -0.42981, 1.07585 )
...@@ -104,11 +107,12 @@ __meta__ = { ...@@ -104,11 +107,12 @@ __meta__ = {
"_edit_group_": true "_edit_group_": true
} }
retrievable = true retrievable = true
flavorText = "There it is!"
[node name="CollisionShape2D" type="CollisionShape2D" parent="Yoga mat"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Yoga mat"]
position = Vector2( -16.8367, -2.11676 ) position = Vector2( -16.8367, -2.11676 )
scale = Vector2( 5, 5 ) scale = Vector2( 5, 5 )
shape = SubResource( 3 ) shape = SubResource( 4 )
[node name="Sprite" type="Sprite" parent="Yoga mat/CollisionShape2D"] [node name="Sprite" type="Sprite" parent="Yoga mat/CollisionShape2D"]
position = Vector2( -0.142975, 0.215393 ) position = Vector2( -0.142975, 0.215393 )
...@@ -124,11 +128,12 @@ __meta__ = { ...@@ -124,11 +128,12 @@ __meta__ = {
"_edit_group_": true "_edit_group_": true
} }
retrievable = true retrievable = true
flavorText = "My lab notes! I wonder how it got there."
[node name="CollisionShape2D" type="CollisionShape2D" parent="Lab notes"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Lab notes"]
position = Vector2( -16.8367, -2.11676 ) position = Vector2( -16.8367, -2.11676 )
scale = Vector2( 5, 5 ) scale = Vector2( 5, 5 )
shape = SubResource( 4 ) shape = SubResource( 5 )
[node name="Sprite" type="Sprite" parent="Lab notes/CollisionShape2D"] [node name="Sprite" type="Sprite" parent="Lab notes/CollisionShape2D"]
position = Vector2( -0.716614, 0.78894 ) position = Vector2( -0.716614, 0.78894 )
......
extends Control extends Control
onready var rooms = [self.owner.get_node("Bedroom"), self.owner.get_node("Laundry area"), self.owner.get_node("Kitchen")] # array of all the screens available to Moxie at the moment onready var rooms = [self.owner.get_node("Bedroom"), self.owner.get_node("Laundry area"), self.owner.get_node("Kitchen"), self.owner.get_node("Living room")] # array of all the screens available to Moxie at the moment
onready var current # index of the room Moxie is currently in onready var current # index of the room Moxie is currently in
onready var left = get_parent().get_node("Left") onready var left = get_parent().get_node("Left")
onready var right = get_parent().get_node("Right") onready var right = get_parent().get_node("Right")
func _ready(): # Called when the node enters the scene tree for the first time. func _ready(): # Called when the node enters the scene tree for the first time.
current = 0 current = 0
rooms[1].hide() #still not sure we need to do this but just in case rooms[1].hide() #still not sure we need to do this but just in case
...@@ -36,3 +37,10 @@ func check_arrows(): ...@@ -36,3 +37,10 @@ func check_arrows():
right.show() right.show()
if current >= 1: if current >= 1:
left.show() left.show()
func disableMovement(): # disables right and left arrow movement
right.hide()
left.hide()
func enableMovement(): # enables right and left arrow movement
check_arrows()
...@@ -48,18 +48,15 @@ bg_color = Color( 0.145098, 0.145098, 0.164706, 1 ) ...@@ -48,18 +48,15 @@ bg_color = Color( 0.145098, 0.145098, 0.164706, 1 )
script = ExtResource( 4 ) script = ExtResource( 4 )
items = [ NodePath("Pants"), NodePath("Shirt"), NodePath("Sando"), NodePath("Towel"), NodePath("Laundry basket"), NodePath("Laptop"), NodePath("Pile of clothes"), NodePath("Bathroom door") ] items = [ NodePath("Pants"), NodePath("Shirt"), NodePath("Sando"), NodePath("Towel"), NodePath("Laundry basket"), NodePath("Laptop"), NodePath("Pile of clothes"), NodePath("Bathroom door") ]
[node name="Laundry basket" parent="Bedroom" index="2"]
position = Vector2( 492.444, 254.362 )
[node name="Desk" parent="." instance=ExtResource( 26 )] [node name="Desk" parent="." instance=ExtResource( 26 )]
visible = false visible = false
script = ExtResource( 4 ) script = ExtResource( 4 )
items = [ NodePath("Laptop") ] items = [ NodePath("Laptop"), NodePath("Return") ]
[node name="Kitchen" parent="." instance=ExtResource( 8 )] [node name="Kitchen" parent="." instance=ExtResource( 8 )]
visible = false visible = false
script = ExtResource( 4 ) script = ExtResource( 4 )
items = [ NodePath("Cleaning mat"), NodePath("Fridge"), NodePath("Stool") ] items = [ NodePath("Cleaning mat"), NodePath("Fridge"), NodePath("Stool"), NodePath("Cabinet") ]
[node name="Laundry basket" parent="." instance=ExtResource( 13 )] [node name="Laundry basket" parent="." instance=ExtResource( 13 )]
visible = false visible = false
...@@ -90,7 +87,7 @@ items = [ NodePath("Mirror"), NodePath("Lab Note - Bathroom"), NodePath("Toilet" ...@@ -90,7 +87,7 @@ items = [ NodePath("Mirror"), NodePath("Lab Note - Bathroom"), NodePath("Toilet"
[node name="Inside cabinet" parent="." instance=ExtResource( 21 )] [node name="Inside cabinet" parent="." instance=ExtResource( 21 )]
visible = false visible = false
script = ExtResource( 4 ) script = ExtResource( 4 )
items = [ NodePath("Lab notes"), NodePath("Scissors"), NodePath("Nana\'s food") ] items = [ NodePath("Lab notes"), NodePath("Scissors"), NodePath("Nana\'s food"), NodePath("Return") ]
[node name="Living room" parent="." instance=ExtResource( 27 )] [node name="Living room" parent="." instance=ExtResource( 27 )]
visible = false visible = false
...@@ -105,22 +102,22 @@ items = [ NodePath("Door to neighbor"), NodePath("Door to Moxie"), NodePath("Tra ...@@ -105,22 +102,22 @@ items = [ NodePath("Door to neighbor"), NodePath("Door to Moxie"), NodePath("Tra
[node name="Balcony" parent="." instance=ExtResource( 24 )] [node name="Balcony" parent="." instance=ExtResource( 24 )]
visible = false visible = false
script = ExtResource( 4 ) script = ExtResource( 4 )
items = [ NodePath("Other plants"), NodePath("Nana"), NodePath("Pot") ] items = [ NodePath("Other plants"), NodePath("Nana"), NodePath("Pot"), NodePath("Door to living room") ]
[node name="Neighbor\'s room" parent="." instance=ExtResource( 22 )] [node name="Neighbor\'s room" parent="." instance=ExtResource( 22 )]
visible = false visible = false
script = ExtResource( 4 ) script = ExtResource( 4 )
items = [ NodePath("Ladder"), NodePath("Balcony door"), NodePath("Neighbor"), NodePath("Reptile memorabilia"), NodePath("Toolbox"), NodePath("Screwdriver") ] items = [ NodePath("Ladder"), NodePath("Neighbor to balcony"), NodePath("Neighbor"), NodePath("Reptile memorabilia"), NodePath("Toolbox"), NodePath("Screwdriver"), NodePath("Neighbor to hallway") ]
[node name="Neighbor\'s balcony" parent="." instance=ExtResource( 23 )] [node name="Neighbor\'s balcony" parent="." instance=ExtResource( 23 )]
visible = false visible = false
script = ExtResource( 4 ) script = ExtResource( 4 )
items = [ NodePath("Nana from afar"), NodePath("Other balcony") ] items = [ NodePath("Nana from afar"), NodePath("Other balcony"), NodePath("Balcony to neighbor\'s room") ]
[node name="Event Handler" type="Node2D" parent="."] [node name="Event Handler" type="Node2D" parent="."]
position = Vector2( 460.602, 18.6417 ) position = Vector2( 460.602, 18.6417 )
script = ExtResource( 12 ) script = ExtResource( 12 )
eventItems = [ NodePath("../Laundry basket/To do list"), NodePath("../Bedroom/Laundry basket"), NodePath("../Laundry basket/Return"), NodePath("../Fridge/Return"), NodePath("../Kitchen/Fridge"), NodePath("../Laundry area/Groceries"), NodePath("../Fridge/Energy handler"), NodePath("../Laundry area/Dialogue control"), NodePath("../Laundry - Notepad/Return"), NodePath("../Laundry - Notepad/Dialogue control"), NodePath("../Bedroom/Bathroom door"), NodePath("../Bathroom/Door - to Bedroom") ] eventItems = [ NodePath("../Laundry basket/To do list"), NodePath("../Bedroom/Laundry basket"), NodePath("../Laundry basket/Return"), NodePath("../Fridge/Return"), NodePath("../Kitchen/Fridge"), NodePath("../Laundry area/Groceries"), NodePath("../Fridge/Energy handler"), NodePath("../Laundry area/Dialogue control"), NodePath("../Laundry - Notepad/Return"), NodePath("../Laundry - Notepad/Dialogue control"), NodePath("../Bedroom/Bathroom door"), NodePath("../Bathroom/Door - to Bedroom"), NodePath("../Living room/Balcony door"), NodePath("../Balcony/Door to living room"), NodePath("../Living room/Front door"), NodePath("../Hallway/Door to Moxie"), NodePath("../Hallway/Door to neighbor"), NodePath("../Neighbor\'s room/Neighbor to hallway"), NodePath("../Neighbor\'s balcony/Balcony to neighbor\'s room"), NodePath("../Neighbor\'s room/Neighbor to balcony"), NodePath("../Bedroom/Laptop"), NodePath("../Desk/Return"), NodePath("../Inside cabinet/Return"), NodePath("../Kitchen/Cabinet") ]
[node name="Moxie" type="Sprite" parent="."] [node name="Moxie" type="Sprite" parent="."]
position = Vector2( 214.135, 386.725 ) position = Vector2( 214.135, 386.725 )
......
extends "res://Item.gd"
signal enter
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func passEvent(handler):
connect("enter", handler,"_neighbor_to_balcony")
pass
func mouseInteraction():
emit_signal("enter")
pass
extends "res://Item.gd"
signal exit
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func passEvent(handler):
connect("exit", handler,"_neighbor_to_hallway")
pass
func mouseInteraction():
emit_signal("exit")
pass
[gd_scene load_steps=7 format=2] [gd_scene load_steps=10 format=2]
[ext_resource path="res://assets/Thesis Clickables/nana from a distance.png" type="Texture" id=1] [ext_resource path="res://assets/Thesis Clickables/nana from a distance.png" type="Texture" id=1]
[ext_resource path="res://Dialogue Control - Neighbor's balcony.gd" type="Script" id=2] [ext_resource path="res://Dialogue Control - Neighbor's balcony.gd" type="Script" id=2]
[ext_resource path="res://assets/Thesis Clickables/other balcony.png" type="Texture" id=3] [ext_resource path="res://assets/Thesis Clickables/other balcony.png" type="Texture" id=3]
[ext_resource path="res://Item.gd" type="Script" id=4] [ext_resource path="res://Item.gd" type="Script" id=4]
[ext_resource path="res://Balcony to neighbor's room.gd" type="Script" id=5]
[sub_resource type="RectangleShape2D" id=2] [sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 44.7209, 45.4241 ) extents = Vector2( 44.7209, 45.4241 )
[sub_resource type="RectangleShape2D" id=1] [sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 9.32722, 9.90557 ) extents = Vector2( 9.32722, 9.90557 )
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 22.9649, 32.4101 )
[sub_resource type="StreamTexture" id=4]
flags = 4
load_path = "res://.import/Balcony door.png-b1c8d05a5eb532517313dc4785195288.stex"
[node name="Node2D" type="Node2D"] [node name="Node2D" type="Node2D"]
[node name="BG" type="Sprite" parent="."] [node name="BG" type="Sprite" parent="."]
...@@ -24,7 +32,7 @@ __meta__ = { ...@@ -24,7 +32,7 @@ __meta__ = {
} }
[node name="Other balcony" type="StaticBody2D" parent="."] [node name="Other balcony" type="StaticBody2D" parent="."]
position = Vector2( 680.89, 245.721 ) position = Vector2( 785.279, 249.088 )
scale = Vector2( 0.829244, 0.829244 ) scale = Vector2( 0.829244, 0.829244 )
input_pickable = true input_pickable = true
script = ExtResource( 4 ) script = ExtResource( 4 )
...@@ -37,7 +45,7 @@ flavorText = "Don't worry Nana! Mommy's coming! Hmmm... There's gotta be a way t ...@@ -37,7 +45,7 @@ flavorText = "Don't worry Nana! Mommy's coming! Hmmm... There's gotta be a way t
[node name="CollisionShape2D" type="CollisionShape2D" parent="Other balcony"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Other balcony"]
position = Vector2( -16.8367, -2.11676 ) position = Vector2( -16.8367, -2.11676 )
scale = Vector2( 5, 5 ) scale = Vector2( 5, 5 )
shape = SubResource( 2 ) shape = SubResource( 1 )
[node name="Sprite" type="Sprite" parent="Other balcony/CollisionShape2D"] [node name="Sprite" type="Sprite" parent="Other balcony/CollisionShape2D"]
position = Vector2( -0.399353, -0.500828 ) position = Vector2( -0.399353, -0.500828 )
...@@ -45,7 +53,7 @@ scale = Vector2( 0.455877, 0.455877 ) ...@@ -45,7 +53,7 @@ scale = Vector2( 0.455877, 0.455877 )
texture = ExtResource( 3 ) texture = ExtResource( 3 )
[node name="Nana from afar" type="StaticBody2D" parent="."] [node name="Nana from afar" type="StaticBody2D" parent="."]
position = Vector2( 676.632, 183.884 ) position = Vector2( 781.021, 187.251 )
scale = Vector2( 0.829244, 0.829244 ) scale = Vector2( 0.829244, 0.829244 )
input_pickable = true input_pickable = true
script = ExtResource( 4 ) script = ExtResource( 4 )
...@@ -58,9 +66,28 @@ flavorText = "I can see Banana from here. So near yet so far." ...@@ -58,9 +66,28 @@ flavorText = "I can see Banana from here. So near yet so far."
[node name="CollisionShape2D" type="CollisionShape2D" parent="Nana from afar"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Nana from afar"]
position = Vector2( -16.8367, -2.11676 ) position = Vector2( -16.8367, -2.11676 )
scale = Vector2( 5, 5 ) scale = Vector2( 5, 5 )
shape = SubResource( 1 ) shape = SubResource( 2 )
[node name="Sprite" type="Sprite" parent="Nana from afar/CollisionShape2D"] [node name="Sprite" type="Sprite" parent="Nana from afar/CollisionShape2D"]
position = Vector2( -0.158181, -0.0184715 ) position = Vector2( -0.158181, -0.0184715 )
scale = Vector2( 0.101337, 0.101337 ) scale = Vector2( 0.101337, 0.101337 )
texture = ExtResource( 1 ) texture = ExtResource( 1 )
[node name="Balcony to neighbor\'s room" type="StaticBody2D" parent="."]
position = Vector2( 188.762, 257.78 )
input_pickable = true
script = ExtResource( 5 )
__meta__ = {
"_edit_group_": true
}
interactable = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Balcony to neighbor\'s room"]
position = Vector2( -0.433167, 2.2196 )
scale = Vector2( 5, 5 )
shape = SubResource( 3 )
[node name="Sprite" type="Sprite" parent="Balcony to neighbor\'s room/CollisionShape2D"]
position = Vector2( 0.304169, 0.207489 )
scale = Vector2( 0.231109, 0.325438 )
texture = SubResource( 4 )
[gd_scene load_steps=16 format=2] [gd_scene load_steps=20 format=2]
[ext_resource path="res://Dialogue control - Neighbor's room.gd" type="Script" id=1] [ext_resource path="res://Dialogue control - Neighbor's room.gd" type="Script" id=1]
[ext_resource path="res://Item.gd" type="Script" id=2] [ext_resource path="res://Item.gd" type="Script" id=2]
...@@ -8,31 +8,40 @@ ...@@ -8,31 +8,40 @@
[ext_resource path="res://assets/Thesis Clickables/Balcony door.png" type="Texture" id=6] [ext_resource path="res://assets/Thesis Clickables/Balcony door.png" type="Texture" id=6]
[ext_resource path="res://item.gd" type="Script" id=7] [ext_resource path="res://item.gd" type="Script" id=7]
[ext_resource path="res://assets/Thesis Clickables/Reptile memorabilia.png" type="Texture" id=8] [ext_resource path="res://assets/Thesis Clickables/Reptile memorabilia.png" type="Texture" id=8]
[ext_resource path="res://Neighbor to hallway.gd" type="Script" id=9]
[ext_resource path="res://Neighbor to balcony.gd" type="Script" id=10]
[sub_resource type="RectangleShape2D" id=1] [sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 10.2686, 34.6917 ) extents = Vector2( 10.2686, 34.6917 )
[sub_resource type="RectangleShape2D" id=4] [sub_resource type="RectangleShape2D" id=10]
extents = Vector2( 22.9649, 32.4101 ) extents = Vector2( 22.9649, 32.4101 )
[sub_resource type="RectangleShape2D" id=2] [sub_resource type="RectangleShape2D" id=11]
extents = Vector2( 10.1137, 24.8506 ) extents = Vector2( 10.1137, 24.8506 )
[sub_resource type="RectangleShape2D" id=7] [sub_resource type="RectangleShape2D" id=4]
extents = Vector2( 21.453, 8.21959 ) extents = Vector2( 21.453, 8.21959 )
[sub_resource type="RectangleShape2D" id=3] [sub_resource type="RectangleShape2D" id=12]
extents = Vector2( 15.1935, 10.447 ) extents = Vector2( 15.1935, 10.447 )
[sub_resource type="RectangleShape2D" id=5] [sub_resource type="RectangleShape2D" id=13]
extents = Vector2( 5.55923, 10.447 ) extents = Vector2( 5.55923, 10.447 )
[sub_resource type="StreamTexture" id=6] [sub_resource type="StreamTexture" id=7]
flags = 4 flags = 4
load_path = "res://.import/Toolbox.png-aad5074879e9968712ed99f01d072f37.stex" load_path = "res://.import/Toolbox.png-aad5074879e9968712ed99f01d072f37.stex"
[sub_resource type="RectangleShape2D" id=8]
extents = Vector2( 21.6967, 40.5453 )
[sub_resource type="StreamTexture" id=9]
flags = 4
load_path = "res://.import/front door.png-58881902b918df4a261fe60f02da2bc4.stex"
[node name="Node2D" type="Node2D"] [node name="Node2D" type="Node2D"]
position = Vector2( 511.528, 367.897 ) position = Vector2( 628.701, 371.677 )
[node name="BG" type="Sprite" parent="."] [node name="BG" type="Sprite" parent="."]
...@@ -64,21 +73,21 @@ position = Vector2( 0.178131, 0.0814972 ) ...@@ -64,21 +73,21 @@ position = Vector2( 0.178131, 0.0814972 )
scale = Vector2( 0.101337, 0.344337 ) scale = Vector2( 0.101337, 0.344337 )
texture = ExtResource( 3 ) texture = ExtResource( 3 )
[node name="Balcony door" type="StaticBody2D" parent="."] [node name="Neighbor to balcony" type="StaticBody2D" parent="."]
position = Vector2( 301.261, -167.633 ) position = Vector2( 226.926, -167.633 )
input_pickable = true input_pickable = true
script = ExtResource( 2 ) script = ExtResource( 10 )
__meta__ = { __meta__ = {
"_edit_group_": true "_edit_group_": true
} }
interactable = true interactable = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Balcony door"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Neighbor to balcony"]
position = Vector2( -0.433167, 2.2196 ) position = Vector2( -0.433167, 2.2196 )
scale = Vector2( 5, 5 ) scale = Vector2( 5, 5 )
shape = SubResource( 4 ) shape = SubResource( 10 )
[node name="Sprite" type="Sprite" parent="Balcony door/CollisionShape2D"] [node name="Sprite" type="Sprite" parent="Neighbor to balcony/CollisionShape2D"]
position = Vector2( 0.304169, 0.207489 ) position = Vector2( 0.304169, 0.207489 )
scale = Vector2( 0.231109, 0.325438 ) scale = Vector2( 0.231109, 0.325438 )
texture = ExtResource( 6 ) texture = ExtResource( 6 )
...@@ -95,7 +104,7 @@ interactable = true ...@@ -95,7 +104,7 @@ interactable = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Neighbor"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Neighbor"]
position = Vector2( -0.433167, 2.2196 ) position = Vector2( -0.433167, 2.2196 )
scale = Vector2( 5, 5 ) scale = Vector2( 5, 5 )
shape = SubResource( 2 ) shape = SubResource( 11 )
[node name="Sprite" type="Sprite" parent="Neighbor/CollisionShape2D"] [node name="Sprite" type="Sprite" parent="Neighbor/CollisionShape2D"]
position = Vector2( 0.178162, -0.170486 ) position = Vector2( 0.178162, -0.170486 )
...@@ -114,7 +123,7 @@ interactable = true ...@@ -114,7 +123,7 @@ interactable = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Reptile memorabilia"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Reptile memorabilia"]
position = Vector2( -0.433167, 2.2196 ) position = Vector2( -0.433167, 2.2196 )
scale = Vector2( 5, 5 ) scale = Vector2( 5, 5 )
shape = SubResource( 7 ) shape = SubResource( 4 )
[node name="Sprite" type="Sprite" parent="Reptile memorabilia/CollisionShape2D"] [node name="Sprite" type="Sprite" parent="Reptile memorabilia/CollisionShape2D"]
position = Vector2( 0.430153, 0.459473 ) position = Vector2( 0.430153, 0.459473 )
...@@ -134,7 +143,7 @@ flavorText = "Lotsa reptile stickers. Oh hey a screwdriver!" ...@@ -134,7 +143,7 @@ flavorText = "Lotsa reptile stickers. Oh hey a screwdriver!"
[node name="CollisionShape2D" type="CollisionShape2D" parent="Toolbox"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Toolbox"]
position = Vector2( -0.433167, 2.2196 ) position = Vector2( -0.433167, 2.2196 )
scale = Vector2( 5, 5 ) scale = Vector2( 5, 5 )
shape = SubResource( 3 ) shape = SubResource( 12 )
[node name="Sprite" type="Sprite" parent="Toolbox/CollisionShape2D"] [node name="Sprite" type="Sprite" parent="Toolbox/CollisionShape2D"]
position = Vector2( 0.304199, -0.170502 ) position = Vector2( 0.304199, -0.170502 )
...@@ -155,9 +164,29 @@ flavorText = "Neighbor's screwdriver. Has a lil' gecko sticker on the handle." ...@@ -155,9 +164,29 @@ flavorText = "Neighbor's screwdriver. Has a lil' gecko sticker on the handle."
[node name="CollisionShape2D" type="CollisionShape2D" parent="Screwdriver"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Screwdriver"]
position = Vector2( -0.433167, 2.2196 ) position = Vector2( -0.433167, 2.2196 )
scale = Vector2( 5, 5 ) scale = Vector2( 5, 5 )
shape = SubResource( 5 ) shape = SubResource( 13 )
[node name="Sprite" type="Sprite" parent="Screwdriver/CollisionShape2D"] [node name="Sprite" type="Sprite" parent="Screwdriver/CollisionShape2D"]
position = Vector2( -0.0038681, -0.21283 ) position = Vector2( -0.0038681, -0.21283 )
scale = Vector2( 0.0526986, 0.1 ) scale = Vector2( 0.0526986, 0.1 )
texture = SubResource( 6 ) texture = SubResource( 7 )
[node name="Neighbor to hallway" type="StaticBody2D" parent="."]
position = Vector2( -517.179, -42.3673 )
scale = Vector2( 0.829244, 0.829244 )
input_pickable = true
script = ExtResource( 9 )
__meta__ = {
"_edit_group_": true
}
interactable = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Neighbor to hallway"]
position = Vector2( -16.8367, -2.11676 )
scale = Vector2( 5, 5 )
shape = SubResource( 8 )
[node name="Sprite" type="Sprite" parent="Neighbor to hallway/CollisionShape2D"]
position = Vector2( -0.00814819, -0.484581 )
scale = Vector2( 0.208332, 0.403654 )
texture = SubResource( 9 )
extends "res://Item.gd"
signal returnCabinet
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func passEvent(handler):
connect("returnCabinet", handler, "_close_cabinet")
func mouseInteraction():
emit_signal("returnCabinet")
extends "res://Item.gd"
signal laptop
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func mouseInteraction():
emit_signal("laptop")
func passEvent(handler):
connect("laptop", handler,"_out_desk")
pass
[gd_scene load_steps=23 format=2] [gd_scene load_steps=24 format=2]
[ext_resource path="res://assets/Placeholder BGs/room zoom out.png" type="Texture" id=1] [ext_resource path="res://assets/Placeholder BGs/room zoom out.png" type="Texture" id=1]
[ext_resource path="res://assets/placeholder item.png" type="Texture" id=2] [ext_resource path="res://assets/placeholder item.png" type="Texture" id=2]
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
[ext_resource path="res://assets/Thesis Clickables/clothes pile.png" type="Texture" id=8] [ext_resource path="res://assets/Thesis Clickables/clothes pile.png" type="Texture" id=8]
[ext_resource path="res://Laundry basket.gd" type="Script" id=9] [ext_resource path="res://Laundry basket.gd" type="Script" id=9]
[ext_resource path="res://Bathroom door.gd" type="Script" id=10] [ext_resource path="res://Bathroom door.gd" type="Script" id=10]
[ext_resource path="res://Laptop.gd" type="Script" id=11]
[sub_resource type="RectangleShape2D" id=1] [sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 14.2862, 14.7497 ) extents = Vector2( 14.2862, 14.7497 )
...@@ -67,7 +68,7 @@ scale = Vector2( 0.997353, 0.98961 ) ...@@ -67,7 +68,7 @@ scale = Vector2( 0.997353, 0.98961 )
texture = ExtResource( 1 ) texture = ExtResource( 1 )
[node name="Laundry basket" type="StaticBody2D" parent="."] [node name="Laundry basket" type="StaticBody2D" parent="."]
position = Vector2( 409.594, 302.84 ) position = Vector2( 408.964, 304.1 )
input_pickable = true input_pickable = true
script = ExtResource( 9 ) script = ExtResource( 9 )
__meta__ = { __meta__ = {
...@@ -153,12 +154,11 @@ position = Vector2( -254.782, 349.28 ) ...@@ -153,12 +154,11 @@ position = Vector2( -254.782, 349.28 )
rotation = -0.445059 rotation = -0.445059
scale = Vector2( 0.9, 0.9 ) scale = Vector2( 0.9, 0.9 )
input_pickable = true input_pickable = true
script = ExtResource( 3 ) script = ExtResource( 11 )
__meta__ = { __meta__ = {
"_edit_group_": true "_edit_group_": true
} }
interactable = true interactable = true
flavorText = "Can't find anything with all these clothes."
[node name="CollisionShape2D" type="CollisionShape2D" parent="Laptop"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Laptop"]
position = Vector2( -16.4264, -2.27527 ) position = Vector2( -16.4264, -2.27527 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment