Commit ea6c07be authored by Julia Santos's avatar Julia Santos

Fixed last custcene and made Nana disappear from the terrarium and balcony as needed

parent 345ec0f3
source_md5="6f3d5bc83f677d4009c6da903cef6c50"
dest_md5="8c9c4123d6ee4bf4e409f54d3e92274d"
source_md5="25ea2d877aa25a58c45cc16ed101c4b7"
dest_md5="988644182b402a58e129cbe9fe9abf6a"
source_md5="3b0ecf4a2964965c6d5e6fa284569ce3"
dest_md5="1a22f3ae7f3ba67df2629c945a946940"
...@@ -5,7 +5,7 @@ export(bool) var tracking = false ...@@ -5,7 +5,7 @@ export(bool) var tracking = false
# Called when the node enters the scene tree for the first time. # Called when the node enters the scene tree for the first time.
func _ready(): func _ready():
pass # Replace with function body. tracking = false
func _input(event): # executes when clicked on func _input(event): # executes when clicked on
if event is InputEventMouseButton: if event is InputEventMouseButton:
...@@ -31,11 +31,16 @@ func getShot(): ...@@ -31,11 +31,16 @@ func getShot():
anim.play("Shot 4") anim.play("Shot 4")
sceneProgress += 1 sceneProgress += 1
5: 5:
anim.play("Shot 5")
sceneProgress += 1
6:
anim.play("Shot 6")
sceneProgress += 1
7:
sceneProgress = 0 sceneProgress = 0
get_parent().queue_free() # dont need that scene anymore get_parent().queue_free() # dont need that scene anymore
tracking = false tracking = false
print("Deleting scene 1") print("Deleting scene 1")
func start(): func start():
tracking = true tracking = true
......
This diff is collapsed.
...@@ -7,7 +7,7 @@ onready var sceneDecimal = 0 ...@@ -7,7 +7,7 @@ onready var sceneDecimal = 0
# Called when the node enters the scene tree for the first time. # Called when the node enters the scene tree for the first time.
func _ready(): func _ready():
pass # Replace with function body. tracking = false
func _input(event): # executes when clicked on func _input(event): # executes when clicked on
if event is InputEventMouseButton: if event is InputEventMouseButton:
...@@ -21,14 +21,12 @@ func getShot(): ...@@ -21,14 +21,12 @@ func getShot():
shotName = "Shot " + str(sceneProgress + 1) + "." + str(sceneDecimal) shotName = "Shot " + str(sceneProgress + 1) + "." + str(sceneDecimal)
else: else:
shotName = "Shot " + str(sceneProgress + 1) shotName = "Shot " + str(sceneProgress + 1)
print(shotName)
if (sceneProgress+1) != 18: if (sceneProgress+1) != 18:
anim.play(shotName) anim.play(shotName)
match (sceneProgress + 1): match (sceneProgress + 1):
7, 8, 9, 10, 12: 7, 8, 9, 10, 12:
if sceneDecimal == 0: if sceneDecimal == 0:
sceneDecimal += 1 sceneDecimal += 1
print("Adding decimal for 6, 7, etc")
else: else:
sceneDecimal = 0 sceneDecimal = 0
sceneProgress += 1 sceneProgress += 1
......
This diff is collapsed.
...@@ -6,7 +6,7 @@ export(bool) var tracking = false ...@@ -6,7 +6,7 @@ export(bool) var tracking = false
# Called when the node enters the scene tree for the first time. # Called when the node enters the scene tree for the first time.
func _ready(): func _ready():
pass # Replace with function body. tracking = false
func _input(event): # executes when clicked on func _input(event): # executes when clicked on
if event is InputEventMouseButton: if event is InputEventMouseButton:
......
...@@ -47,6 +47,7 @@ onready var cleaningMaterials = 0 # how many times the cleaning materials have b ...@@ -47,6 +47,7 @@ onready var cleaningMaterials = 0 # how many times the cleaning materials have b
onready var canFrontDoor = false # whether or not Moxie has a reason to go to leave their apartment, and so go to the hallway onready var canFrontDoor = false # whether or not Moxie has a reason to go to leave their apartment, and so go to the hallway
onready var foundBanana = false # whether or not Moxie has spotted Banana in the balcony onready var foundBanana = false # whether or not Moxie has spotted Banana in the balcony
onready var plungerUsed = false # whether or not the plunger was used to travel between balconies onready var plungerUsed = false # whether or not the plunger was used to travel between balconies
onready var takenBanana = false
#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
...@@ -69,6 +70,8 @@ func _get_notebook(): # when To Do list is retrieved for the first time ...@@ -69,6 +70,8 @@ func _get_notebook(): # when To Do list is retrieved for the first time
movementHandle.enableMovement() movementHandle.enableMovement()
lockedNotepad = false lockedNotepad = false
bedroom.get_node("Laundry basket").finished() bedroom.get_node("Laundry basket").finished()
dialogue.text = "Found it! Guess I have unfinished business to deal with."
dialogue.playText()
func _groceries_put_away(): # when the groceries are put away func _groceries_put_away(): # when the groceries are put away
kitchen.get_node("Granola bar").show() kitchen.get_node("Granola bar").show()
...@@ -150,11 +153,18 @@ func _balcony_outer_lock(): ...@@ -150,11 +153,18 @@ func _balcony_outer_lock():
func getPlungered(): func getPlungered():
return plungerUsed return plungerUsed
func bananaTaken(): # when banana is taken from the balcony, hides her from neighbor's balcony
if !takenBanana:
neighborsBalcony.get_node("Nana from afar").queue_free()
takenBanana = true
# ----------------- Cutscene initiators ----------------- # ----------------- Cutscene initiators -----------------
func _start_cutscene_1(): func _start_cutscene_1():
inventory.unselect_all() inventory.unselect_all()
cutsceneHandler.get_node("1").show() cutsceneHandler.get_node("1").show()
cutsceneHandler.get_node("1/Scene control").start() cutsceneHandler.get_node("1/Scene control").start()
dialogue.text = "Laundry time! Let's see if I can practice breaking things down."
func _start_cutscene_2(): func _start_cutscene_2():
if !quests.hasQuest("Eat") and !quests.hasQuest("Do laundry"): if !quests.hasQuest("Eat") and !quests.hasQuest("Do laundry"):
...@@ -170,8 +180,9 @@ func _start_cutscene_2(): ...@@ -170,8 +180,9 @@ func _start_cutscene_2():
newQuests = true newQuests = true
movementHandle.finishTutorial() movementHandle.finishTutorial()
get_parent().get_node("Desk/Laptop").start() get_parent().get_node("Desk/Laptop").start()
#change sprite for terrarium bedroom.get_node("Terrarium").removeBanana()
bedroom.get_node("Terrarium").flavorText = "OMG! Where did Banana go??" bedroom.get_node("Terrarium").flavorText = "OMG! Where did Banana go??"
dialogue.text = "Alright, let's...try and get things done!"
func _start_cutscene_2b(): func _start_cutscene_2b():
inventory.unselect_all() inventory.unselect_all()
...@@ -216,7 +227,6 @@ func _laundry_finished(): # finishing notebook puzzle for laundry ...@@ -216,7 +227,6 @@ func _laundry_finished(): # finishing notebook puzzle for laundry
quests.finishQuest("Do laundry") quests.finishQuest("Do laundry")
inventory.remove_item_name("Dirty clothes") inventory.remove_item_name("Dirty clothes")
inventory.remove_item_name("Laundry detergent") inventory.remove_item_name("Laundry detergent")
func _return_laundry_notepad(): # exiting laundry notebook puzzle func _return_laundry_notepad(): # exiting laundry notebook puzzle
zoom_out() zoom_out()
......
...@@ -37,6 +37,8 @@ func add_item(text, icon=null, selectable=true): ...@@ -37,6 +37,8 @@ func add_item(text, icon=null, selectable=true):
if text == "Bobby pins": if text == "Bobby pins":
bobbyPins = true bobbyPins = true
print("Took bobby pins") print("Took bobby pins")
elif text == "Nana":
get_parent().get_parent().get_node("Event Handler").bananaTaken()
func updateUI(): func updateUI():
UI.updateUI() UI.updateUI()
......
...@@ -198,5 +198,4 @@ __meta__ = { ...@@ -198,5 +198,4 @@ __meta__ = {
} }
[node name="Sprite" type="Sprite" parent="Nana/Hitbox"] [node name="Sprite" type="Sprite" parent="Nana/Hitbox"]
scale = Vector2( 1, 1 )
texture = ExtResource( 4 ) texture = ExtResource( 4 )
[gd_scene load_steps=12 format=2] [gd_scene load_steps=12 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/banana under.png" type="Texture" id=1]
[ext_resource path="res://Scripts/Dialogue control/Dialogue Control - Neighbor's balcony.gd" type="Script" id=2] [ext_resource path="res://Scripts/Dialogue control/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]
...@@ -62,20 +62,22 @@ position = Vector2( 455.988, 220.863 ) ...@@ -62,20 +62,22 @@ position = Vector2( 455.988, 220.863 )
scale = Vector2( 0.829244, 0.829244 ) scale = Vector2( 0.829244, 0.829244 )
input_pickable = true input_pickable = true
script = ExtResource( 4 ) script = ExtResource( 4 )
__meta__ = {
"_edit_group_": true
}
interactable = true interactable = true
flavorText = "I can see Banana from here. So near yet so far." flavorText = "I can see Banana from here. So near yet so far."
[node name="Hitbox" type="CollisionShape2D" parent="Nana from afar"] [node name="h" 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( 2 ) shape = SubResource( 2 )
[node name="Hitbox" type="CollisionPolygon2D" parent="Nana from afar"]
position = Vector2( 15.5351, 43.8314 )
rotation = -2.15723
scale = Vector2( 0.278156, 0.278156 )
polygon = PoolVector2Array( 60.2, -171.3, 118.5, -177, 118.5, -168.6, 134.2, -149.5, 128.8, -138, 127.7, -138, 108.3, -99.3, 124.5, -98.6, 124.5, -87.9, 123.2, -44, 111.7, -44, 37.9, -55.4, 24.6, -47.7, 5, 41.4, 29.3, 66.9, 24.1, 79, 20.4, 79, -9.60001, 107, -11, 107, -2.7, 124.1, 38.5, 140.2, 38.5, 176, 28.5, 176, -26.5, 187.3, -26.5, 180.4, -87.5, 153.5, -87.5, 147.3, -116.5, 89.4, -116.5, 82, -120.1, 19.9, -154.2, -4, -149.8, -18, -144.4, -18, -122.5, -31.6, -122.5, -33, -98.1, -91, -91.5, -91, -11.6, -123.1, 18.5, -182.3, 18.5, -187, 29.2, -192.7 )
[node name="Sprite" type="Sprite" parent="Nana from afar/Hitbox"] [node name="Sprite" type="Sprite" parent="Nana from afar/Hitbox"]
position = Vector2( -0.158181, -0.0184715 ) rotation = -2.98023e-08
scale = Vector2( 0.101337, 0.101337 )
texture = ExtResource( 1 ) texture = ExtResource( 1 )
[node name="Balcony to neighbor\'s room" type="StaticBody2D" parent="."] [node name="Balcony to neighbor\'s room" type="StaticBody2D" parent="."]
......
...@@ -199,7 +199,7 @@ scale = Vector2( 0.0197574, 0.0197574 ) ...@@ -199,7 +199,7 @@ scale = Vector2( 0.0197574, 0.0197574 )
texture = SubResource( 7 ) texture = SubResource( 7 )
[node name="Pants" type="StaticBody2D" parent="."] [node name="Pants" type="StaticBody2D" parent="."]
position = Vector2( 99.5713, 491.212 ) position = Vector2( 128.755, 482.232 )
scale = Vector2( 0.8, 0.8 ) scale = Vector2( 0.8, 0.8 )
input_pickable = true input_pickable = true
script = ExtResource( 13 ) script = ExtResource( 13 )
...@@ -221,14 +221,14 @@ scale = Vector2( 0.0395079, 0.0395079 ) ...@@ -221,14 +221,14 @@ scale = Vector2( 0.0395079, 0.0395079 )
texture = ExtResource( 6 ) texture = ExtResource( 6 )
[node name="Shirt" type="StaticBody2D" parent="."] [node name="Shirt" type="StaticBody2D" parent="."]
position = Vector2( 227.393, 409.988 ) position = Vector2( 252.087, 439.172 )
input_pickable = true input_pickable = true
script = ExtResource( 13 ) script = ExtResource( 13 )
__meta__ = { __meta__ = {
"_edit_group_": true "_edit_group_": true
} }
retrievable = true retrievable = true
flavorText = "A deconstructed pile of clothes." flavorText = "All over the ground! Where did these come from?"
[node name="Hitbox" type="CollisionShape2D" parent="Shirt"] [node name="Hitbox" type="CollisionShape2D" parent="Shirt"]
position = Vector2( -1.78223, 0.549072 ) position = Vector2( -1.78223, 0.549072 )
...@@ -241,7 +241,7 @@ scale = Vector2( 0.0197574, 0.0197574 ) ...@@ -241,7 +241,7 @@ scale = Vector2( 0.0197574, 0.0197574 )
texture = ExtResource( 5 ) texture = ExtResource( 5 )
[node name="Sando" type="StaticBody2D" parent="."] [node name="Sando" type="StaticBody2D" parent="."]
position = Vector2( -209.019, 392.628 ) position = Vector2( 382.518, 428.547 )
rotation = -3.0456 rotation = -3.0456
scale = Vector2( 0.9, 0.9 ) scale = Vector2( 0.9, 0.9 )
input_pickable = true input_pickable = true
...@@ -250,7 +250,7 @@ __meta__ = { ...@@ -250,7 +250,7 @@ __meta__ = {
"_edit_group_": true "_edit_group_": true
} }
retrievable = true retrievable = true
flavorText = "A deconstructed pile of clothes." flavorText = "Oops, must have taken this one out of the basket sometime last night."
[node name="Hitbox" type="CollisionShape2D" parent="Sando"] [node name="Hitbox" type="CollisionShape2D" parent="Sando"]
position = Vector2( -3.5491, 1.06189 ) position = Vector2( -3.5491, 1.06189 )
...@@ -263,7 +263,7 @@ scale = Vector2( 0.0197574, 0.0197574 ) ...@@ -263,7 +263,7 @@ scale = Vector2( 0.0197574, 0.0197574 )
texture = SubResource( 11 ) texture = SubResource( 11 )
[node name="Towel" type="StaticBody2D" parent="."] [node name="Towel" type="StaticBody2D" parent="."]
position = Vector2( -67.9803, 464.817 ) position = Vector2( -39.9188, 486.144 )
rotation = 2.74191 rotation = 2.74191
input_pickable = true input_pickable = true
script = ExtResource( 13 ) script = ExtResource( 13 )
...@@ -271,7 +271,7 @@ __meta__ = { ...@@ -271,7 +271,7 @@ __meta__ = {
"_edit_group_": true "_edit_group_": true
} }
retrievable = true retrievable = true
flavorText = "A deconstructed pile of clothes." flavorText = "Goodness, what was I doing last night?"
[node name="Hitbox" type="CollisionShape2D" parent="Towel"] [node name="Hitbox" type="CollisionShape2D" parent="Towel"]
position = Vector2( -3.5491, 1.06189 ) position = Vector2( -3.5491, 1.06189 )
......
...@@ -26,6 +26,7 @@ func objInteraction(selected): # when an object is used on it ...@@ -26,6 +26,7 @@ func objInteraction(selected): # when an object is used on it
var flavor = control.interaction(inventory.get_item_text(selected), self.get_name()) var flavor = control.interaction(inventory.get_item_text(selected), self.get_name())
if inventory.get_item_text(selected) == "Bobby pins": # unlocking the door with a bobby pin if inventory.get_item_text(selected) == "Bobby pins": # unlocking the door with a bobby pin
dialogueBox.text = "I can't believe that actually worked?!" dialogueBox.text = "I can't believe that actually worked?!"
flavorText = ""
unlocked = true # can now go through the balcony door freely unlocked = true # can now go through the balcony door freely
inventory.remove_item(selected) inventory.remove_item(selected)
elif typeof(flavor) != 0: #checks if there's coded flavor text for this interaction elif typeof(flavor) != 0: #checks if there's coded flavor text for this interaction
...@@ -36,3 +37,4 @@ func objInteraction(selected): # when an object is used on it ...@@ -36,3 +37,4 @@ func objInteraction(selected): # when an object is used on it
func outerLock(): func outerLock():
unlocked = true unlocked = true
flavorText = ""
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0.png-24492bc91bf42242b8d007dd8c632a29.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Cutscenes/01 - Notepad intro/0.png"
dest_files=[ "res://.import/0.png-24492bc91bf42242b8d007dd8c632a29.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/5.png-e30c776cb2b5b08cbfeb2c072d4c9393.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Cutscenes/01 - Notepad intro/5.png"
dest_files=[ "res://.import/5.png-e30c776cb2b5b08cbfeb2c072d4c9393.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/6.png-c9b83e1ec874460e04c4f21ef7dacb3e.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Cutscenes/01 - Notepad intro/6.png"
dest_files=[ "res://.import/6.png-c9b83e1ec874460e04c4f21ef7dacb3e.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
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